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

Bug 370065

Summary: Eclipse crashes when saving a file after running php webpage
Product: [Eclipse Project] Platform Reporter: Herbert Lang <kawaklx650>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: critical    
Priority: P3 CC: arunkumar.thondapu, eclipse.felipe, grant_gayed, kawaklx650, remy.suen
Version: 4.2Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Herbert Lang CLA 2012-01-29 08:30:56 EST
Build Identifier: 

*** glibc detected *** /usr/bin/java: double free or corruption (!prev): 0x0000000003fcc780 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x72656)[0x7fc6d99af656]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fc6d99b438c]
/home/jelzin/.eclipse/org.eclipse.platform_3.7.0_155965261/configuration/org.eclipse.osgi/bundles/252/1/.cp/libswt-pi-gtk-3738.so(Java_org_eclipse_swt_internal_gtk_OS__1g_1free+0xc)[0x7fc6c77958ba]
[0x7fc6d4b12191]
======= Memory map: ========
00400000-00408000 r-xp 00000000 fe:00 10748082                           /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java
00608000-00609000 rw-p 00008000 fe:00 10748082                           /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java
00ecf000-05eb7000 rw-p 00000000 00:00 0                                  [heap]
d8000000-de430000 rw-p 00000000 00:00 0 
de430000-e0b20000 ---p 00000000 00:00 0 
e0b20000-e8000000 rw-p 00000000 00:00 0 
e8000000-ec370000 rw-p 00000000 00:00 0 
ec370000-f8000000 rw-p 00000000 00:00 0 
f8000000-ff370000 rw-p 00000000 00:00 0 
ff370000-100000000 ---p 00000000 00:00 0 
7fc675d8f000-7fc675d92000 ---p 00000000 00:00 0 
7fc675d92000-7fc675e90000 rw-p 00000000 00:00 0 
7fc675e90000-7fc675ea1000 r-xp 00000000 fe:00 9570337                    /usr/lib/jni/libjnidispatch.so
7fc675ea1000-7fc6760a1000 ---p 00011000 fe:00 9570337                    /usr/lib/jni/libjnidispatch.so
7fc6760a1000-7fc6760a2000 rw-p 00011000 fe:00 9570337                    /usr/lib/jni/libjnidispatch.so
7fc6760a2000-7fc6760a5000 ---p 00000000 00:00 0 
7fc6760a5000-7fc6761a3000 rw-p 00000000 00:00 0 
7fc6761a3000-7fc6761a6000 ---p 00000000 00:00 0 
7fc6761a6000-7fc6762a4000 rw-p 00000000 00:00 0 
7fc6762a4000-7fc6762d2000 r-xp 00000000 fe:00 9179071                    /usr/lib/x86_64-linux-gnu/libbluray.so.1.1.0
7fc6762d2000-7fc6764d1000 ---p 0002e000 fe:00 9179071                    /usr/lib/x86_64-linux-gnu/libbluray.so.1.1.0
7fc6764d1000-7fc6764d2000 r--p 0002d000 fe:00 9179071                    /usr/lib/x86_64-linux-gnu/libbluray.so.1.1.0
7fc6764d2000-7fc6764d3000 rw-p 0002e000 fe:00 9179071                    /usr/lib/x86_64-linux-gnu/libbluray.so.1.1.0
7fc6764d3000-7fc6764d5000 r-xp 00000000 fe:00 10362923                   /lib/x86_64-linux-gnu/libutil-2.13.so
7fc6764d5000-7fc6766d4000 ---p 00002000 fe:00 10362923                   /lib/x86_64-linux-gnu/libutil-2.13.so
7fc6766d4000-7fc6766d5000 r--p 00001000 fe:00 10362923                   /lib/x86_64-linux-gnu/libutil-2.13.so
7fc6766d5000-7fc6766d6000 rw-p 00002000 fe:00 10362923                   /lib/x86_64-linux-gnu/libutil-2.13.so
7fc6766d6000-7fc6766e4000 r-xp 00000000 fe:00 10354982                   /lib/x86_64-linux-gnu/libudev.so.0.13.0
7fc6766e4000-7fc6768e3000 ---p 0000e000 fe:00 10354982                   /lib/x86_64-linux-gnu/libudev.so.0.13.0
7fc6768e3000-7fc6768e4000 r--p 0000d000 fe:00 10354982                   /lib/x86_64-linux-gnu/libudev.so.0.13.0
7fc6768e4000-7fc6768e5000 rw-p 0000e000 fe:00 10354982                   /lib/x86_64-linux-gnu/libudev.so.0.13.0
7fc676907000-7fc67691f000 r-xp 00000000 fe:00 9180721                    /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fc67691f000-7fc676b1f000 ---p 00018000 fe:00 9180721                    /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fc676b1f000-7fc676b20000 rw-p 00018000 fe:00 9180721                    /usr/lib/x86_64-linux-gnu/gvfs/libgvfscommon.so
7fc676b20000-7fc676b4b000 r-xp 00000000 fe:00 9180648                    /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7fc676b4b000-7fc676d4a000 ---p 0002b000 fe:00 9180648                    /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7fc676d4a000-7fc676d4c000 rw-p 0002a000 fe:00 9180648                    /usr/lib/x86_64-linux-gnu/gio/modules/libgvfsdbus.so
7fc676d4c000-7fc677bf2000 rw-p 00000000 00:00 0 
7fc677bf2000-7fc677c3f000 rw-p 00000000 00:00 0 
7fc677c3f000-7fc677d3f000 rw-p 00000000 00:00 0 
7fc677d3f000-7fc677d93000 rw-p 00000000 00:00 0 
7fc677d93000-7fc6784b8000 rw-p 00000000 00:00 0 
7fc6784b8000-7fc678540000 r--p 00000000 fe:00 9569161                    /usr/share/fonts/truetype/windowsfonts/ariali.ttf
7fc678540000-7fc6785ff000 r--p 00000000 fe:00 9569166                    /usr/share/fonts/truetype/windowsfonts/arial.ttf
7fc6786b6000-7fc6786ee000 rw-p 00000000 00:00 0 
7fc6786ee000-7fc6788ee000 rw-p 00000000 00:00 0 
7fc6788ee000-7fc6788ef000 ---p 00000000 00:00 0 
7fc6788ef000-7fc6790ef000 rw-p 00000000 00:00 0 
7fc6790ef000-7fc6794ef000 rw-p 00000000 00:00 0 
7fc6794ef000-7fc6794f0000 ---p 00000000 00:00 0 
7fc6794f0000-7fc679cf0000 rw-p 00000000 00:00 0 
7fc679cf0000-7fc679cf1000 ---p 00000000 00:00 0 
7fc679cf1000-7fc67a4f1000 rw-p 00000000 00:00 0 
7fc67a4f1000-7fc67a4f2000 ---p 00000000 00:00 0 
7fc67a4f2000-7fc6ba4f2000 rwxp 00000000 00:00 0 
7fc6ba4f2000-7fc6ba4f3000 ---p 00000000 00:00 0 
7fc6ba4f3000-7fc6ba5f3000 rw-p 00000000 00:00 0 
7fc6ba5f3000-7fc6ba5f4000 ---p 00000000 00:00 0 
7fc6ba5f4000-7fc6badf4000 rw-p 00000000 00:00 0 
7fc6badf4000-7fc6badf8000 r-xp 00000000 fe:00 10363161                   /lib/libuuid.so.1.3.0
7fc6badf8000-7fc6baff7000 ---p 00004000 fe:00 10363161                   /lib/libuuid.so.1.3.0
7fc6baff7000-7fc6baff8000 rw-p 00003000 fe:00 10363161                   /lib/libuuid.so.1.3.0
7fc6baff8000-7fc6bb00f000 r-xp 00000000 fe:00 9176472                    /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fc6bb00f000-7fc6bb20e000 ---p 00017000 fe:00 9176472                    /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fc6bb20e000-7fc6bb20f000 rw-p 00016000 fe:00 9176472                    /usr/lib/x86_64-linux-gnu/libICE.so.6.3.0
7fc6bb20f000-7fc6bb213000 rw-p 00000000 00:00 0 
7fc6bb213000-7fc6bb21a000 r-xp 00000000 fe:00 9176474                    /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fc6bb21a000-7fc6bb419000 ---p 00007000 fe:00 9176474                    /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fc6bb419000-7fc6bb41a000 rw-p 00006000 fe:00 9176474                    /usr/lib/x86_64-linux-gnu/libSM.so.6.0.1
7fc6bb41a000-7fc6bb479000 r-xp 00000000 fe:00 9176476                    /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7fc6bb479000-7fc6bb679000 ---p 0005f000 fe:00 9176476                    /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7fc6bb679000-7fc6bb67f000 rw-p 0005f000 fe:00 9176476                    /usr/lib/x86_64-linux-gnu/libXt.so.6.0.0
7fc6bb67f000-7fc6bc7ee000 r-xp 00000000 fe:00 8651327                    /usr/lib/libicudata.so.48.1.1
7fc6bc7ee000-7fc6bc9ed000 ---p 0116f000 fe:00 8651327                    /usr/lib/libicudata.so.48.1.1
7fc6bc9ed000-7fc6bc9ee000 rw-p 0116e000 fe:00 8651327                    /usr/lib/libicudata.so.48.1.1
7fc6bc9ee000-7fc6bcb46000 r-xp 00000000 fe:00 8652764                    /usr/lib/libicuuc.so.48.1.1
7fc6bcb46000-7fc6bcd46000 ---p 00158000 fe:00 8652764                    /usr/lib/libicuuc.so.48.1.1
7fc6bcd46000-7fc6bcd57000 rw-p 00158000 fe:00 8652764                    /usr/lib/libicuuc.so.48.1.1


After restarting eclipse I get the following error message:



java.lang.NullPointerException
        at org.eclipse.dltk.internal.core.index.sql.h2.H2DbFactory.<init>(H2DbFactory.java:50)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
        at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
        at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
        at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
        at org.eclipse.dltk.core.index.sql.DbFactory.getInstance(DbFactory.java:54)
        at org.eclipse.dltk.internal.core.index.sql.SqlIndexer.<init>(SqlIndexer.java:53)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at java.lang.Class.newInstance0(Class.java:372)
        at java.lang.Class.newInstance(Class.java:325)
        at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:184)
        at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:905)
        at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)
        at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:55)
        at org.eclipse.dltk.internal.core.index2.IndexerManager.getIndexer(IndexerManager.java:77)
        at org.eclipse.dltk.internal.core.index2.SourceModulesRequest.run(SourceModulesRequest.java:54)
        at org.eclipse.dltk.core.search.indexing.AbstractJob.execute(AbstractJob.java:76)
        at org.eclipse.dltk.internal.core.search.processing.JobManager.run(JobManager.java:467)
        at java.lang.Thread.run(Thread.java:679)
!SESSION 2012-01-29 14:20:47.744 -----------------------------------------------
eclipse.buildId=I20110613-1736
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.core.resources 2 10035 2012-01-29 14:20:51.146
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

!ENTRY org.eclipse.osgi 2 1 2012-01-29 14:20:57.457
!MESSAGE NLS unused message: CodeAssistPreferencePage_showStub in: org.eclipse.php.internal.ui.PHPUIMessages




When I close the message and try to restart eclipse one more time it works again.

Reproducible: Always

Steps to Reproduce:
1. I run my php-project as a "php webpage" (with PDT)
2. the internal browser appears with my webpage and every thing works as it should
3. I'm closing the internal browser
4. clicking on save symbol
5. eclipse crashes, changes are not saved
Comment 1 Grant Gayed CLA 2013-06-26 11:16:54 EDT
Your PDT is based on Eclipse/SWT 3.7.  Can you try your case with the latest PDT release (I think being released today)?  I ask because you would be able to verify it much quicker than we could, and Eclipse/SWT has had many bug fixes in the last two years that could make it stop crashing.
Comment 2 Arun Thondapu CLA 2013-08-01 06:57:45 EDT
Closing the bug as 'WORKSFORME' as there has been no response to the request from comment 1. Please feel free to re-open it in case you're still seeing the bug with the latest PDT and Eclipse/SWT (4.3) versions.