Re: Re: Re: Re: Re: [ibm jdk 1.3.1] Segmentation fault with Fedora core 1

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

 



On Thu, Nov 13, 2003 at 12:39:29PM +0000, M A Young wrote:
> On Thu, 13 Nov 2003, Jakub Jelinek wrote:
> 
> > On Thu, Nov 13, 2003 at 09:12:02AM +0100, pascal.rapaz@xxxxxxxx wrote:
> > > Yes!
> > >
> > > But I'm very surprised because the LD_ASSUME_KERNEL=2.2.5 must desactive
> > > the nptl option and that work fine in RH 9.0 but not in Fedora Core.
> > > Moreover this option is part of the Fedroa release notes.
> >
> > LD_ASSUME_KERNEL=2.2.5 works, just run:
> >
> > LD_ASSUME_KERNEL=2.2.5 ldd someprog
> > LD_ASSUME_KERNEL=2.4.19 ldd someprog
> > ldd someprog
> >
> > and see what libraries are used (should be /lib/libc.so.6 in the first case,
> > /lib/i686/libc.so.6 in second and /lib/tls/libc.so.6 in third).
> >
> > Some buggy JDKs don't work even with LinuxThreads, or just with one
> > of LinuxThreads alternatives (non-FLOATING_STACKS (2.2.5)
> > or FLOATING_STACKS (2.4.19)).
> 
> The other thing that can cause problems is exec-shield (though if it does
> there is probably a fault in the program). Try
> echo "0" >/proc/sys/kernel/exec-shield
> echo "0" >/proc/sys/kernel/exec-shield-randomize
> and see if your program runs.

In that case:
echo "0" >/proc/sys/kernel/exec-shield-randomize
perl -pi -e 's/PRELINK_OPTS=-mR/PRELINK_OPTS="-mR --no-exec-shield"/' \
  /etc/sysconfig/prelink
touch /var/lib/misc/prelink.force
/etc/cron.daily/prelink

On prelinked system, turning off exec shield randomization will help
you only a little bit, you need to tell prelink to put libraries
at  0x40000000 .. 0x50000000 addresses.

/proc/sys/kernel/exec-shield shouldn't make a difference I think,
as the JDK certainly doesn't have PT_GNU_STACK program header entry.

	Jakub




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux