[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#231438: locales fails to install due to locale-gen segfault

GOTO Masanori <gotom@debian.or.jp> writes:

>> > > localedef uses trampoline in its internal; it may conflict with
>> > > exec-shield like pax, please see:
>> > >
>> > >       http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=198099
>> > 
>> > Hmm, Red Hat _must_ have a patch for that by now....
>> They do.  I've attached a .dpatch below with the relevant patch
>> extracted from the latest Fedora .src.rpm.  I built and tested this on
>> i686-linux both with and without exec-shield and got someone else to
>> do the same.  (There are also no testsuite regressions.)
> Thanks for looking this bug and patch.  But XFree86 has also this kind
> of problem.

I hope XFree86 can eventually be fixed too, either by upstream
adopting Red Hat's patches, or by the Debian package doing so.

> Pax uses a file which lists program names to avoid this issue.

exec-shield doesn't have anything like this.

> So is this ok to apply this patch for glibc?

I think the patch is small, non-invasive and has been tested fairly
widely due to it's use in Fedora.

> Or should exec-shield users be aware "echo 0 >
> /proc/sys/kernel/exec-shield"?

That's not really a very nice option especially not when we can easily
just fix localedef to not segfault.


Reply to: