Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45595 - sun-jdk cores under gentoo-sources 2.4.25
Summary: sun-jdk cores under gentoo-sources 2.4.25
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-24 05:46 UTC by Peter Keeler
Modified: 2004-04-06 15:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel config from original bug submitter (config-2.4.25,26.54 KB, text/plain)
2004-03-30 12:14 UTC, Peter Keeler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Keeler 2004-03-24 05:46:26 UTC
When I upgraded my kernel from gentoo-sources 2.4.22-r7 to 2.4.25 I was unable to run jedit or ant 1.5.4-r1 due to the VM core dumping. The JDK seemed to be able to compile and run very simple programs, but anything at all complex would kill it. I tried reverting to my old kernel, and my java worked perfectly. I tried unmerging ant and sun-jdk under the new kernel, then re-emerging them and the problem occurred again.

Reproducible: Always
Steps to Reproduce:
Under a gentoo-sources 2.4.25 kernel:
1. emerge sun-jdk
2. emerge dev-java/ant
3. core dump

Actual Results:  
Unexpected Signal : 11 occurred at PC=0x462B8236
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:

Dynamic libraries:
00000000-00000000 r-xp 00000000 03:03 1368689    /opt/sun-jdk-1.4.2.03/bin/java
00000000-00000000 rw-p 00005000 03:03 1368689    /opt/sun-jdk-1.4.2.03/bin/java
00000000-00000000 r-xp 00000000 03:03 164508     /lib/ld-2.3.2.so
00000000-00000000 rw-p 00013000 03:03 164508     /lib/ld-2.3.2.so
00000000-00000000 r-xp 00000000 03:03 1369172   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/native_threads/libhpi.so
00000000-00000000 rw-p 00007000 03:03 1369172   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/native_threads/libhpi.so
00000000-00000000 rw-s 00000000 03:03 167162     /tmp/hsperfdata_scion/26471
00000000-00000000 r--s 00000000 03:03 1369155   
/opt/sun-jdk-1.4.2.03/jre/lib/ext/dnsns.jar
00000000-00000000 r-xp 00000000 03:03 164346     /lib/libpthread-0.10.so
00000000-00000000 rw-p 0000d000 03:03 164346     /lib/libpthread-0.10.so
00000000-00000000 r-xp 00000000 03:03 164509     /lib/libdl-2.3.2.so
00000000-00000000 rw-p 00001000 03:03 164509     /lib/libdl-2.3.2.so
00000000-00000000 r-xp 00000000 03:03 164365     /lib/libc-2.3.2.so
00000000-00000000 rw-p 0012b000 03:03 164365     /lib/libc-2.3.2.so
00000000-00000000 r-xp 00000000 03:03 1369176   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/client/libjvm.so
00000000-00000000 rw-p 003f9000 03:03 1369176   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/client/libjvm.so
00000000-00000000 r-xp 00000000 03:03 164364     /lib/libnsl-2.3.2.so
00000000-00000000 rw-p 00011000 03:03 164364     /lib/libnsl-2.3.2.so
00000000-00000000 r-xp 00000000 03:03 164507     /lib/libm-2.3.2.so
00000000-00000000 rw-p 00020000 03:03 164507     /lib/libm-2.3.2.so
00000000-00000000 r-xp 00000000 03:03 1369165   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/libverify.so
00000000-00000000 rw-p 0000f000 03:03 1369165   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/libverify.so
00000000-00000000 r-xp 00000000 03:03 1369181   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/libjava.so
00000000-00000000 rw-p 0001f000 03:03 1369181   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/libjava.so
00000000-00000000 r-xp 00000000 03:03 1369170   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/libzip.so
00000000-00000000 rw-p 00013000 03:03 1369170   
/opt/sun-jdk-1.4.2.03/jre/lib/i386/libzip.so
00000000-00000000 r--s 00000000 03:03 1369288   
/opt/sun-jdk-1.4.2.03/jre/lib/rt.jar
00000000-00000000 r--s 00000000 03:03 1369247   
/opt/sun-jdk-1.4.2.03/jre/lib/sunrsasign.jar
00000000-00000000 r--s 00000000 03:03 1369223   
/opt/sun-jdk-1.4.2.03/jre/lib/jsse.jar
00000000-00000000 r--s 00000000 03:03 1369294   
/opt/sun-jdk-1.4.2.03/jre/lib/jce.jar
00000000-00000000 r--s 00000000 03:03 1369286   
/opt/sun-jdk-1.4.2.03/jre/lib/charsets.jar
00000000-00000000 r--p 00000000 03:03 164567     /usr/lib/locale/locale-archive
00000000-00000000 r--s 00000000 03:03 1369156   
/opt/sun-jdk-1.4.2.03/jre/lib/ext/sunjce_provider.jar
00000000-00000000 r--s 00000000 03:03 1369157   
/opt/sun-jdk-1.4.2.03/jre/lib/ext/ldapsec.jar
00000000-00000000 r--s 00000000 03:03 1369158   
/opt/sun-jdk-1.4.2.03/jre/lib/ext/localedata.jar
00000000-00000000 r--s 00000000 03:03 1356910    /usr/share/ant/lib/ant.jar
00000000-00000000 r--s 00000000 03:03 1356911    /usr/share/ant/lib/optional.jar

Heap at VM Abort:
Heap
 def new generation   total 576K, used 325K [0x48360000, 0x48400000, 0x48840000)
  eden space 512K,  63% used [0x48360000, 0x483b1568, 0x483e0000)
  from space 64K,   0% used [0x483e0000, 0x483e0000, 0x483f0000)
  to   space 64K,   0% used [0x483f0000, 0x483f0000, 0x48400000)
 tenured generation   total 1408K, used 0K [0x48840000, 0x489a0000, 0x4c360000)
   the space 1408K,   0% used [0x48840000, 0x48840000, 0x48840200, 0x489a0000)
 compacting perm gen  total 4096K, used 1143K [0x4c360000, 0x4c760000, 0x50360000)
   the space 4096K,  27% used [0x4c360000, 0x4c47ded0, 0x4c47e000, 0x4c760000)

Local Time = Wed Mar 24 05:27:50 2004
Elapsed Time = 0
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode)
#
# An error report file has been saved as hs_err_pid26471.log.
# Please refer to the file for further information.
#
/usr/bin/ant: line 89: 26471 Aborted                 "$JAVACMD" -classpath
"$LOCALCLASSPATH" -Dant.home="${ANT_HOME}" $ANT_OPTS org.apache.tools.ant.Main
$ANT_ARGS "$@"


Expected Results:  
Ant should have bootstrapped and compiled itself properly.

scion@praetor evergreen $ emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.25-gentoo)
=================================================================
System uname: 2.4.25-gentoo i686 Pentium III (Coppermine)
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium3 -funroll-loops -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -funroll-loops -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache fixpackages sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.ccccom.com ftp://gentoo.ccccom.com
ftp://gentoo.mirrors.pair.com/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif gphoto2 gpm
gtk gtk2 imlib jpeg kde libg++ libwww mad mikmod motif mozilla mpeg mysql
ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl png pnp postgres python
qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd truetype usb x86
xml2 xmms xv zlib"
Comment 1 Iain McGinniss 2004-03-28 05:23:19 UTC
I too have this same problem. I've been discussing it on the gentoo forums, I did not think it was a kernel issue (others suggested it might be a glibc issue, but this seems unlikely now that I have tried using the same glibc as those who have it working). 

The forum topic is at:
http://forums.gentoo.org/viewtopic.php?t=153928
Comment 2 Iain McGinniss 2004-03-28 06:58:43 UTC
I have just upgraded my kernel to development-sources-2.6.5-rc2, and the problem has now disappeared. So, the problem is definitely something to do with the gentoo-sources-2.4.25 kernel.
Comment 3 Peter Keeler 2004-03-30 12:14:29 UTC
Created attachment 28391 [details]
kernel config from original bug submitter

This is the configuration of my gentoo-sources 2.4.25 kernel that makes Java
core. 
Sorry for not including it in the original bug report. Hopefully it's useful.

I should add that I experienced identical core dumps on two separate machines:
a
Dell Latitude CPx/J and a Pentium 233/MMX with minimal additional hardware. It
seems from the forums that many people are having the same trouble.
Comment 4 Bob Johnson (RETIRED) gentoo-dev 2004-03-30 12:31:20 UTC
can you try with grsecurity disabled?
Comment 5 Peter Keeler 2004-03-30 13:01:42 UTC
I just installed a new gentoo-sources 2.4.25 kernel with grsec disabled on my laptop, and Ant seems to work fine now. That seems to be the problem, then.
Comment 6 Joshua Brindle (RETIRED) gentoo-dev 2004-04-05 20:09:06 UTC
anything in dmesg after this happens?
Comment 7 Peter Keeler 2004-04-06 00:41:58 UTC
Just this was in my dmesg after ant core dumped, in a 2.4.25 kernel with grsec set to medium:

grsec: signal 11 sent to (java:5288) UID(1000) EUID(1000), parent (ant:1837) UID(1000) EUID(1000)
grsec: signal 6 sent to (java:5288) UID(1000) EUID(1000), parent (ant:1837) UID(1000) EUID(1000)
Comment 8 solar (RETIRED) gentoo-dev 2004-04-06 15:20:10 UTC
You need to chpax/paxctl your java bins. 
This kinda falls under a know issue with java*

If your using EI_PAX flags then try chpax -zsp /path/to/java/bin/*
If you compiled with PT_PAX support then try paxctl -sp /path/to/java/bins/*

99% chance this bug can be closed as INVALID
Comment 9 Bob Johnson (RETIRED) gentoo-dev 2004-04-06 15:30:20 UTC
please follow Solars (grsecurity gentoo maintainer) recommendations