Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 320931

Summary: JVM crash when expanding tree items in project explorer
Product: [Eclipse Project] Platform Reporter: Alex Richardson <alex.richardson>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: alex.richardson, pinnamur, remy.suen, thatnitind
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Alex Richardson CLA 2010-07-26 12:44:03 EDT
Build Identifier: 20100617-1415

I get the follwoing backtrace when Eclipse crashes: 

PATH=/usr/java/latest/bin/:$PATH /home/alex/Eclipse/eclipse-c++/eclipse
*** glibc detected *** /usr/java/latest/bin/java: free(): invalid pointer: 0x0000000041710710 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x73226)[0x7f00db441226]
/usr/java/jdk1.6.0_21/jre/lib/amd64/server/libjvm.so(+0x5f0579)[0x7f00daf16579]
/usr/java/jdk1.6.0_21/jre/lib/amd64/server/libjvm.so(+0x419faf)[0x7f00dad3ffaf]
/home/alex/Eclipse/eclipse-c++/configuration/org.eclipse.osgi/bundles/203/1/.cp/libswt-pi-gtk-3650.so(Java_org_eclipse_swt_internal_gtk_OS__1g_1data_1input_1stream_1read_1line+0xe7)[0x7f008e221a9e]
[0x7f00d6d60c88]
======= Memory map: ========
40000000-40009000 r-xp 00000000 08:06 797190                             /usr/java/jdk1.6.0_21/bin/java
40108000-4010a000 rwxp 00008000 08:06 797190                             /usr/java/jdk1.6.0_21/bin/java
4010a000-451a6000 rwxp 00000000 00:00 0                                  [heap]
7f0086a68000-7f0086a75000 r-xp 00000000 08:06 525428                     /lib64/libudev.so.0.8.2
7f0086a75000-7f0086c74000 ---p 0000d000 08:06 525428                     /lib64/libudev.so.0.8.2
7f0086c74000-7f0086c75000 r-xp 0000c000 08:06 525428                     /lib64/libudev.so.0.8.2
7f0086c75000-7f0086c76000 rwxp 0000d000 08:06 525428                     /lib64/libudev.so.0.8.2
7f0086c76000-7f0086c8e000 r-xp 00000000 08:06 142400                     /usr/lib64/libgvfscommon.so.0.0.0
7f0086c8e000-7f0086e8d000 ---p 00018000 08:06 142400                     /usr/lib64/libgvfscommon.so.0.0.0
7f0086e8d000-7f0086e8e000 r-xp 00017000 08:06 142400                     /usr/lib64/libgvfscommon.so.0.0.0
7f0086e8e000-7f0086e8f000 rwxp 00018000 08:06 142400                     /usr/lib64/libgvfscommon.so.0.0.0
7f0086e8f000-7f0086eb9000 r-xp 00000000 08:06 416877                     /usr/lib64/gio/modules/libgvfsdbus.so
7f0086eb9000-7f00870b8000 ---p 0002a000 08:06 416877                     /usr/lib64/gio/modules/libgvfsdbus.so
7f00870b8000-7f00870b9000 r-xp 00029000 08:06 416877                     /usr/lib64/gio/modules/libgvfsdbus.so
7f00870b9000-7f00870ba000 rwxp 0002a000 08:06 416877                     /usr/lib64/gio/modules/libgvfsdbus.so
7f00870ba000-7f00870bb000 rwxp 00000000 00:00 0 
7f00870bb000-7f00870be000 r-xp 00000000 08:06 532014                     /lib64/libgpg-error.so.0.5.0
7f00870be000-7f00872bd000 ---p 00003000 08:06 532014                     /lib64/libgpg-error.so.0.5.0
7f00872bd000-7f00872be000 r-xp 00002000 08:06 532014                     /lib64/libgpg-error.so.0.5.0
7f00872be000-7f00872bf000 rwxp 00003000 08:06 532014                     /lib64/libgpg-error.so.0.5.0
7f00872bf000-7f00872c4000 r-xp 00000000 08:06 138317                     /usr/lib64/libogg.so.0.6.0
7f00872c4000-7f00874c4000 ---p 00005000 08:06 138317                     /usr/lib64/libogg.so.0.6.0
7f00874c4000-7f00874c5000 r-xp 00005000 08:06 138317                     /usr/lib64/libogg.so.0.6.0
7f00874c5000-7f00874c6000 rwxp 00006000 08:06 138317                     /usr/lib64/libogg.so.0.6.0
7f00874c6000-7f00874f2000 r-xp 00000000 08:06 142284                     /usr/lib64/libvorbis.so.0.4.3
7f00874f2000-7f00876f1000 ---p 0002c000 08:06 142284                     /usr/lib64/libvorbis.so.0.4.3
7f00876f1000-7f00876f2000 r-xp 0002b000 08:06 142284                     /usr/lib64/libvorbis.so.0.4.3
7f00876f2000-7f00876f3000 rwxp 0002c000 08:06 142284                     /usr/lib64/libvorbis.so.0.4.3
7f00876f3000-7f00876f7000 r-xp 00000000 08:06 524508                     /lib64/libuuid.so.1.3.0
7f00876f7000-7f00878f6000 ---p 00004000 08:06 524508                     /lib64/libuuid.so.1.3.0
7f00878f6000-7f00878f7000 r-xp 00003000 08:06 524508                     /lib64/libuuid.so.1.3.0
7f00878f7000-7f00878f8000 rwxp 00004000 08:06 524508                     /lib64/libuuid.so.1.3.0
7f00878f8000-7f008796e000 r-xp 00000000 08:06 538340                     /lib64/libgcrypt.so.11.5.2
7f008796e000-7f0087b6e000 ---p 00076000 08:06 538340                     /lib64/libgcrypt.so.11.5.2
7f0087b6e000-7f0087b6f000 r-xp 00076000 08:06 538340                     /lib64/libgcrypt.so.11.5.2
7f0087b6f000-7f0087b72000 rwxp 00077000 08:06 538340                     /lib64/libgcrypt.so.11.5.2
7f0087b72000-7f0087b79000 r-xp 00000000 08:06 137052                     /usr/lib64/libgailutil.so.18.0.1
7f0087b79000-7f0087d78000 ---p 00007000 08:06 137052                     /usr/lib64/libgailutil.so.18.0.1
7f0087d78000-7f0087d79000 r-xp 00006000 08:06 137052                     /usr/lib64/libgailutil.so.18.0.1
7f0087d79000-7f0087d7a000 rwxp 00007000 08:06 137052                     /usr/lib64/libgailutil.so.18.0.1
7f0087d7a000-7f0087d83000 r-xp 00000000 08:06 146788                     /usr/lib64/libltdl.so.7.2.1
7f0087d83000-7f0087f82000 ---p 00009000 08:06 146788                     /usr/lib64/libltdl.so.7.2.1
7f0087f82000-7f0087f83000 r-xp 00008000 08:06 146788                     /usr/lib64/libltdl.so.7.2.1
7f0087f83000-7f0087f84000 rwxp 00009000 08:06 146788                     /usr/lib64/libltdl.so.7.2.1
7f0087f84000-7f0087f8b000 r-xp 00000000 08:06 148227                     /usr/lib64/libvorbisfile.so.3.3.2
7f0087f8b000-7f008818b000 ---p 00007000 08:06 148227                     /usr/lib64/libvorbisfile.so.3.3.2
7f008818b000-7f008818c000 r-xp 00007000 08:06 148227                     /usr/lib64/libvorbisfile.so.3.3.2
7f008818c000-7f008818d000 rwxp 00008000 08:06 148227                     /usr/lib64/libvorbisfile.so.3.3.2
7f008818d000-7f0088192000 r-xp 00000000 08:06 135534                     /usr/lib64/libORBitCosNaming-2.so.0.1.0
7f0088192000-7f0088392000 ---p 00005000 08:06 135534                     /usr/lib64/libORBitCosNaming-2.so.0.1.0
7f0088392000-7f0088393000 r-xp 00005000 08:06 135534                     /usr/lib64/libORBitCosNaming-2.so.0.1.0
7f0088393000-7f0088394000 rwxp 00006000 08:06 135534                     /usr/lib64/libORBitCosNaming-2.so.0.1.0
7f0088394000-7f008851c000 r-xp 00000000 08:06 538199                     /lib64/libcrypto.so.1.0.0
7f008851c000-7f008871c000 ---p 00188000 08:06 538199                     /lib64/libcrypto.so.1.0.0
7f008871c000-7f0088735000 r-xp 00188000 08:06 538199                     /lib64/libcrypto.so.1.0.0
7f0088735000-7f008873f000 rwxp 001a1000 08:06 538199                     /lib64/libcrypto.so.1.0.0
7f008873f000-7f0088743000 rwxp 00000000 00:00 0 
7f0088743000-7f00887a3000 r-xp 00000000 08:06 139029                     /usr/lib64/libORBit-2.so.0.1.0




The problematic function seems to be Java_org_eclipse_swt_internal_gtk_OS__1g_1data_1input_1stream_1read_1line

GTK version is 2.21 (but same happened with 2.20). I hope this bug can be fixed soon since I can not work at all with Eclipse now.

Reproducible: Always

Steps to Reproduce:
1. Start Eclipse
2. Expand any project (sometimes expanding the project works, but the it crashes at the second level)
3. Crash
Comment 1 Remy Suen CLA 2010-07-26 12:53:26 EDT
Possibly related to bug 320487.
Comment 2 Alex Richardson CLA 2010-07-26 14:38:37 EDT
(In reply to comment #1)
> Possibly related to bug 320487.

It seems you are right, the crashes do not occur when I run Eclipse in an LXDE session.
Comment 3 Praveen CLA 2010-07-28 06:14:16 EDT

*** This bug has been marked as a duplicate of bug 320487 ***