Date: Mon, 13 May 2002 14:18:18 -0400 (EDT) From: Andrew Atrens <andrew_atrens@yahoo.ca> To: java@freebsd.org, marcel@freebsd.org Subject: linux-ibm-jdk-1.3.1[x] broken for non-root users on -stable Message-ID: <20020513181818.16354.qmail@web11305.mail.yahoo.com>
index | next in thread | raw e-mail
Hi All,
I'm running 4.5-stable (last updated on April 30) and am getting
SIGBUS's with the new linux-ibm-jdk1.3.1 port. The problem only
occurs when running as an ordinary user, when running the jvm
as root, there's no problem.
Both 1.3.1 and 1.3.1_1 both show the same behaviour. 1.3.0 on the
other hand, works fine.
I can duplicate the problem by simply -
$ type java
java is /usr/local/linux-ibm-jdk1.3.1/bin/java
$ java
Bus error
$ su
# type java
java is /usr/local/linux-ibm-jdk1.3.1/bin/java
# java
Usage: java [-options] class [args...]
(to execute a class)
or java -jar [-options] jarfile [args...]
(to execute a jar file)
where options include:
-cp -classpath <directories and zip/jar files separated by :>
set search path for application classes and resources
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version
-showversion print product version and continue
-? -help print this help message
-X print help on non-standard options
Here's a relevant snippet from linux_ktrace -
linux ibm jdk1.3.1_1 run as joe user -
26966 java RET read 0
26966 java CALL close(0x3)
26966 java RET close 0
26966 java CALL munmap(0x28063000,0x1000)
26966 java RET munmap 0
26966 java CALL linux_brk(0x805c000)
26966 java RET linux_brk 134594560/0x805c000
26966 java CALL linux_brk(0x806d000)
26966 java RET linux_brk 134664192/0x806d000
26966 java CALL linux_mmap(0xbfbff7e8)
26966 java RET linux_mmap 674906112/0x283a4000
26966 java CALL linux_mmap(0xbfbff6c4)
26966 java RET linux_mmap 1211777024/0x483a4000
26966 java CALL linux_times(0xbfbff824)
26966 java RET linux_times 10103143/0x9a2967
26966 java CALL linux_time(0)
26966 java RET linux_time 1021312595/0x3cdffe53
26966 java CALL linux_mmap(0xbfbff804)
26966 java RET linux_mmap 1211916288/0x483c6000
26966 java CALL linux_mmap(0xbfbff804)
26966 java RET linux_mmap 1220308992/0x48bc7000
26966 java CALL gettimeofday(0xbfbff82c,0)
26966 java RET gettimeofday 0
26966 java CALL linux_mmap(0xbfbff7f8)
26966 java RET linux_mmap 1228701696/0x493c8000
26966 java CALL linux_modify_ldt(0,0x283641cc,0x8)
26966 java RET linux_modify_ldt 8
26966 java CALL linux_modify_ldt(0x11,0xbfbff8ac,0x10)
26966 java RET linux_modify_ldt 8190/0x1ffe
26966 java CALL linux_sigaltstack(0xbfbff8ac,0x806ccf0)
26966 java RET linux_sigaltstack 0
26966 java PSIG SIGBUS SIG_DFL
26966 java NAMI "java.core"
linux ibm jdk1.3.1_1 run as root -
27019 java RET read 0
27019 java CALL close(0x3)
27019 java RET close 0
27019 java CALL munmap(0x28063000,0x1000)
27019 java RET munmap 0
27019 java CALL linux_brk(0x805c000)
27019 java RET linux_brk 134594560/0x805c000
27019 java CALL linux_brk(0x806d000)
27019 java RET linux_brk 134664192/0x806d000
27019 java CALL linux_mmap(0xbfbff7e8)
27019 java RET linux_mmap 674906112/0x283a4000
27019 java CALL linux_mmap(0xbfbff6c4)
27019 java RET linux_mmap 1211777024/0x483a4000
27019 java CALL linux_times(0xbfbff824)
27019 java RET linux_times 10119802/0x9a6a7a
27019 java CALL linux_time(0)
27019 java RET linux_time 1021312762/0x3cdffefa
27019 java CALL linux_mmap(0xbfbff804)
27019 java RET linux_mmap 1211916288/0x483c6000
27019 java CALL linux_mmap(0xbfbff804)
27019 java RET linux_mmap 1220308992/0x48bc7000
27019 java CALL gettimeofday(0xbfbff82c,0)
27019 java RET gettimeofday 0
27019 java CALL linux_mmap(0xbfbff7f8)
27019 java RET linux_mmap 1228701696/0x493c8000
27019 java CALL linux_modify_ldt(0,0x283641cc,0x8)
27019 java RET linux_modify_ldt 8
27019 java CALL linux_modify_ldt(0x11,0xbfbff8ac,0x10)
27019 java RET linux_modify_ldt 8190/0x1ffe
27019 java CALL linux_sigaltstack(0xbfbff8ac,0x806ccf0)
27019 java RET linux_sigaltstack 0
27019 java CALL mprotect(0xbfbc8000,0x1000,0)
27019 java RET mprotect 0
Any help/suggestions you folks can provide would be greatly
appreciated.
Cheers,
Andrew.
______________________________________________________________________
Games, Movies, Music & Sports! http://entertainment.yahoo.ca
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020513181818.16354.qmail>
