segfault updating package openjdk-6-jre-headless

Bug #322353 reported by Mike Case
6
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

There are several bug reports related to crashes in this package, but all reports are quite old. I believe this is a new issue.

[Linux:yankovich-new-desktop ~]# sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up openjdk-6-jre-headless (6b12-0ubuntu6.1) ...
*** glibc detected *** /usr/lib/jvm/java-6-openjdk/bin/java: free(): invalid pointer: 0xb7621254 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7e733f4]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb7e75456]
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/libjvm.so[0xb797f301]
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/libjvm.so[0xb7942492]
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/libjvm.so[0xb7943c50]
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/libjvm.so[0xb7948075]
/usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/libjvm.so(JNI_CreateJavaVM+0x5c)[0xb77e4ebc]
/usr/lib/jvm/java-6-openjdk/bin/java(JavaMain+0x9e)[0x804a52e]
/lib/tls/i686/cmov/libpthread.so.0[0xb7f7250f]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7ee57ee]
...

Revision history for this message
Michele Mangili (mangilimic) wrote :

Moving this report to openjdk-6

Revision history for this message
Jacob (jlm-ublp) wrote :

I am seeing this, newly upon upgrading Hardy -> Intrepid. This botched my upgrade as it left all dependencies of openjdk-6-jre-headless in state "unconfigured", which I was only able to resolve by uninstalling openjdk-6-jre-headless, as every attempt to configure openjdk-6-jre-headless resulted in this crash. As OpenOffice is a dependent, that major package is uninstallable.

Revision history for this message
Dan Kegel (dank) wrote :

See https://bugzilla.novell.com/show_bug.cgi?id=414462
which says the app was trying to allocate too much memory
for your system.

To verify whether it's the same problem, could you reinstall the problem
package and try
$ java -version
to see if it fails, and
$ java -Xmx384m -version
to see if it succeeds?

https://bugs.launchpad.net/ubuntu/+source/openjdk-6/+bug/341397
is a possible dup.

Revision history for this message
Jacob (jlm-ublp) wrote :

java -version succeeds, reporting
java version "1.5.0"
gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-3ubuntu3)

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Attempted install of openjdk-6-jre-headless immediately following hit this bug and crashed.

Revision history for this message
Jacob (jlm-ublp) wrote :

Based on the Novell bug report, it looks like this is due to openjdk handling out-of-memory badly.
vmstat on my box reports:
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
 r b swpd free buff cache si so bi bo in cs us sy id wa
 0 0 0 236088 324496 820492 0 0 3 12 26 15 8 1 91 0

free reports:
             total used free shared buffers cached
Mem: 2063504 1835352 228152 0 325080 820500
-/+ buffers/cache: 689772 1373732
Swap: 0 0 0

Revision history for this message
Matthias Klose (doko) wrote :

I assume this is seen in intrepid?

Revision history for this message
Jacob (jlm-ublp) wrote :

Yes, it was in Intrepid that I encountered this bug. (Specifically while upgrading from Hardy to Intrepid.)

Arno Peters (awpeters)
Changed in openjdk-6 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.