I've tested all your propositions and this is the result:
- ldd command with and without LD_ASSUME_KERNEL=2.x.x show me this library list:
[root]# ldd /opt/IBMJava2-131/jre/bin/exe/java
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00c74000)
libnsl.so.1 => /lib/libnsl.so.1 (0x0293e000)
libdl.so.2 => /lib/libdl.so.2 (0x00b49000)
libc.so.6 => /lib/tls/libc.so.6 (0x009ea000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x009d2000)
- echo "0" >/proc/sys/kernel/exec-shield
echo "0" >/proc/sys/kernel/exec-shield-randomize
Don't change anything
- Finally when I ran directly the java.exe (without using the wrapper), I have this error:
[root]# /opt/IBMJava2-131/jre/bin/exe/java
Unable to find xhpi, path used libjava.so/libxhpi.so
Could not create the Java virtual machine.
Regards
Pascal
Jakub Jelinek <jakub@xxxxxxxxxx>
Envoyé par : fedora-list-admin@xxxxxxxxxx 13.11.2003 13:49
|
Pour : fedora-list@xxxxxxxxxx cc : Objet : Re: Re: Re: Re: Re: [ibm jdk 1.3.1] Segmentation fault with Fedora core 1 |
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
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-list