Eclipse with ADT got crashed as opening an Android project

System: openSUSE 12.1 x64
uname -a -> Linux builder 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64 GNU/Linux
Eclipse 4.2.0 (Judo) with the lastest ADT plugin
android-sdk_r20.0.1-linux.tgz

I can create and build the anroid project, but it can’t be expanded in the package explorer. If doing that, the eclipse got crashed.
I removed the openjdk and gnu gcj and replaced it with oracle jdk “jdk-7u5-linux-x64.rpm”. the result is same.

the output message(cutted since the forum can’t post so many text) when crashing are:

*** glibc detected *** /usr/bin/java: free(): invalid pointer: 0x000000000262fb60 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x74c06)[0x7f8257f10c06]
/usr/java/jdk1.7.0_05/jre/lib/amd64/server/libjvm.so(+0x563385)[0x7f82576e0385]
/opt/eclipse/configuration/org.eclipse.osgi/bundles/193/2/.cp/libswt-pi-gtk-4233.so(Java_org_eclipse_swt_internal_gtk_OS__1g_1data_1input_1stream_1read_1line+0xe7)[0x7f824bf6f4dd]
[0x7f82536d9f70]
======= Memory map: ========
00400000-00401000 r-xp 00000000 08:03 156943 /usr/java/jdk1.7.0_05/jre/bin/java
00600000-00601000 rw-p 00000000 08:03 156943 /usr/java/jdk1.7.0_05/jre/bin/java
00601000-04940000 rw-p 00000000 00:00 0 [heap]
d0000000-d1e30000 rw-p 00000000 00:00 0
d1e30000-daaa0000 rw-p 00000000 00:00 0
daaa0000-de6da000 rw-p 00000000 00:00 0
de6da000-f0000000 rw-p 00000000 00:00 0
f0000000-f3e50000 rw-p 00000000 00:00 0
f3e50000-100000000 rw-p 00000000 00:00 0
7f82413d0000-7f82413e5000 r-xp 00000000 08:03 1305706 /lib64/libgcc_s.so.1
7f82413e5000-7f82415e4000 —p 00015000 08:03 1305706 /lib64/libgcc_s.so.1
7f82415e4000-7f82415e5000 r–p 00014000 08:03 1305706 /lib64/libgcc_s.so.1
7f82415e5000-7f82415e6000 rw-p 00015000 08:03 1305706 /lib64/libgcc_s.so.1
7f82415e6000-7f824164e000 r–s 00749000 08:03 1077631 /opt/android-sdk-linux/platforms/android-14/data/layoutlib.jar
7f824164e000-7f8241651000 —p 00000000 00:00 0
7f8241651000-7f824174f000 rw-p 00000000 00:00 0
7f824174f000-7f8241752000 —p 00000000 00:00 0
7f8241752000-7f8241850000 rw-p 00000000 00:00 0
7f8241850000-7f824188a000 r–p 00000000 08:03 1580153 /usr/share/fonts/truetype/DejaVuSansMono-BoldOblique.ttf
7f824188a000-7f82418c6000 r–p 00000000 08:03 1580154 /usr/share/fonts/truetype/DejaVuSansMono-Oblique.ttf
7f82418c6000-7f8241913000 r–p 00000000 08:03 1580152 /usr/share/fonts/truetype/DejaVuSansMono-Bold.ttf
7f8241913000-7f82419a9000 r–p 00000000 08:03 1580144 /usr/share/fonts/truetype/DejaVuSans-BoldOblique.ttf
7f82419a9000-7f82419ac000 —p 00000000 00:00 0
7f82419ac000-7f8241aaa000 rw-p 00000000 00:00 0
7f8241aaa000-7f8241abd000 r-xp 00000000 08:03 1462796 /usr/lib64/gio/modules/libgioremote-volume-monitor.so
7f8241abd000-7f8241cbd000 —p 00013000 08:03 1462796 /usr/lib64/gio/modules/libgioremote-volume-monitor.so
7f8241cbd000-7f8241cbe000 r–p 00013000 08:03 1462796 /usr/lib64/gio/modules/libgioremote-volume-monitor.so
7f8241cbe000-7f8241cbf000 rw-p 00014000 08:03 1462796 /usr/lib64/gio/modules/libgioremote-volume-monitor.so
7f8241cbf000-7f8241cce000 r-xp 00000000 08:03 1305855 /lib64/libudev.so.0.12.0
7f8241cce000-7f8241ecd000 —p 0000f000 08:03 1305855 /lib64/libudev.so.0.12.0
7f8241ecd000-7f8241ece000 r–p 0000e000 08:03 1305855 /lib64/libudev.so.0.12.0
7f8241ece000-7f8241ecf000 rw-p 0000f000 08:03 1305855 /lib64/libudev.so.0.12.0
7f8241ecf000-7f8246018000 r–p 00000000 08:03 1473297 /usr/share/icons/hicolor/icon-theme.cache
7f8246018000-7f824a13f000 r–p 00000000 08:03 149074 /usr/share/icons/gnome/icon-theme.cache
7f824a13f000-7f824a142000 —p 00000000 00:00 0
7f824a142000-7f824a240000 rw-p 00000000 00:00 0
7f824a256000-7f824a2a8000 r–p 00000000 08:03 1580155 /usr/share/fonts/truetype/DejaVuSansMono.ttf
7f824a2a8000-7f824a2eb000 r-xp 00000000 08:03 1305853 /lib64/libdbus-1.so.3.6.4
7f824a2eb000-7f824a4eb000 —p 00043000 08:03 1305853 /lib64/libdbus-1.so.3.6.4
7f824a4eb000-7f824a4ec000 r–p 00043000 08:03 1305853 /lib64/libdbus-1.so.3.6.4
7f824a4ec000-7f824a4ed000 rw-p 00044000 08:03 1305853 /lib64/libdbus-1.so.3.6.4
7f824a4ed000-7f824a504000 r-xp 00000000 08:03 1464522 /usr/lib64/libgvfscommon.so.0.0.0
7f824a504000-7f824a703000 —p 00017000 08:03 1464522 /usr/lib64/libgvfscommon.so.0.0.0
7f824a703000-7f824a704000 r–p 00016000 08:03 1464522 /usr/lib64/libgvfscommon.so.0.0.0
7f824a704000-7f824a705000 rw-p 00017000 08:03 1464522 /usr/lib64/libgvfscommon.so.0.0.0
7f824a705000-7f824a72f000 r-xp 00000000 08:03 1462797 /usr/lib64/gio/modules/libgvfsdbus.so
7f824a72f000-7f824a92e000 —p 0002a000 08:03 1462797 /usr/lib64/gio/modules/libgvfsdbus.so
7f824a92e000-7f824a92f000 r–p 00029000 08:03 1462797 /usr/lib64/gio/modules/libgvfsdbus.so
7f824a92f000-7f824a930000 rw-p 0002a000 08:03 1462797 /usr/lib64/gio/modules/libgvfsdbus.so
7f824a930000-7f824a931000 rw-p 00000000 00:00 0
7f824a94d000-7f824a9e3000 r–p 00000000 08:03 1580146 /usr/share/fonts/truetype/DejaVuSans-Oblique.ttf
7f824a9e3000-7f824aa0d000 r–s 0044e000 08:03 1075695 /opt/eclipse/plugins/org.eclipse.jdt.core_3.8.1.v20120531-0637.jar
7f824aa0d000-7f824aa11000 r–s 00024000 08:03 1076355 /opt/eclipse/plugins/org.eclipse.ui.console_3.5.100.v20120521-2012.jar





7f8256f7c000-7f825717b000 —p 00056000 08:03 1305619 /lib64/libm-2.14.1.so
7f825717b000-7f825717c000 r–p 00055000 08:03 1305619 /lib64/libm-2.14.1.so
7f825717c000-7f825717d000 rw-p 00056000 08:03 1305619 /lib64/libm-2.14.1.so
7f825717d000-7f8257bbe000 r-xp 00000000 08:03 157007 /usr/java/jdk1.7.0_05/jre/lib/amd64/server/libjvm.so
7f8257bbe000-7f8257dbd000 —p 00a41000 08:03 157007 /usr/java/jdk1.7.0_05/jre/lib/amd64/server/libjvm.so
7f8257dbd000-7f8257e61000 rw-p 00a40000 08:03 157007 /usr/java/jdk1.7.0_05/jre/lib/amd64/server/libjvm.so
7f8257e61000-7f8257e9c000 rw-p 00000000 00:00 0
7f8257e9c000-7f8258021000 r-xp 00000000 08:03 1305611 /lib64/libc-2.14.1.so
7f8258021000-7f8258221000 —p 00185000 08:03 1305611 /lib64/libc-2.14.1.so
7f8258221000-7f8258225000 r–p 00185000 08:03 1305611 /lib64/libc-2.14.1.so
7f8258225000-7f8258226000 rw-p 00189000 08:03 1305611 /lib64/libc-2.14.1.so
7f8258226000-7f825822b000 rw-p 00000000 00:00 0
7f825822b000-7f825822d000 r-xp 00000000 08:03 1305617 /lib64/libdl-2.14.1.so
7f825822d000-7f825842d000 —p 00002000 08:03 1305617 /lib64/libdl-2.14.1.so
7f825842d000-7f825842e000 r–p 00002000 08:03 1305617 /lib64/libdl-2.14.1.so
7f825842e000-7f825842f000 rw-p 00003000 08:03 1305617 /lib64/libdl-2.14.1.so
7f825842f000-7f8258445000 r-xp 00000000 08:03 156962 /usr/java/jdk1.7.0_05/jre/lib/amd64/jli/libjli.so
7f8258445000-7f8258644000 —p 00016000 08:03 156962 /usr/java/jdk1.7.0_05/jre/lib/amd64/jli/libjli.so
7f8258644000-7f8258645000 rw-p 00015000 08:03 156962 /usr/java/jdk1.7.0_05/jre/lib/amd64/jli/libjli.so
7f8258645000-7f825865d000 r-xp 00000000 08:03 1305635 /lib64/libpthread-2.14.1.so
7f825865d000-7f825885c000 —p 00018000 08:03 1305635 /lib64/libpthread-2.14.1.so
7f825885c000-7f825885d000 r–p 00017000 08:03 1305635 /lib64/libpthread-2.14.1.so
7f825885d000-7f825885e000 rw-p 00018000 08:03 1305635 /lib64/libpthread-2.14.1.so
7f825885e000-7f8258862000 rw-p 00000000 00:00 0
7f8258862000-7f8258882000 r-xp 00000000 08:03 1305604 /lib64/ld-2.14.1.so
7f8258886000-7f8258889000 r–s 00011000 08:03 1076307 /opt/eclipse/plugins/org.eclipse.equinox.util_1.0.400.v20120522-2049.jar
7f8258889000-7f825888a000 r–s 00005000 08:03 1181041 /opt/eclipse/configuration/org.eclipse.osgi/bundles/231/2/.cp/libs/manifmerger.jar
7f825888a000-7f825888b000 r–s 00001000 08:03 1181036 /opt/eclipse/configuration/org.eclipse.osgi/bundles/231/2/.cp/libs/swtmenubar.jar
7f825888b000-7f825888d000 r–s 00007000 08:03 1181047 /opt/eclipse/configuration/org.eclipse.osgi/bundles/231/2/.cp/libs/rule_api.jar
7f825888f000-7f8258890000 r–s 00004000 08:03 1075713 /opt/eclipse/plugins/org.eclipse.cdt.core.linux.x86_64_5.2.0.201206111645.jar
7f8258890000-7f8258891000 r–s 00003000 08:03 1076693 /opt/eclipse/plugins/org.eclipse.e4.ui.di_0.10.1.v20120523-1955.jar
7f8258891000-7f8258893000 r–s 0000d000 08:03 1076671 /opt/eclipse/plugins/org.eclipse.jdt.compiler.tool_1.0.101.v20120522-1651.jar
7f8258893000-7f825889f000 rw-p 00000000 00:00 0
7f825889f000-7f8258953000 rw-p 00000000 00:00 0
7f8258953000-7f8258956000 —p 00000000 00:00 0
7f8258956000-7f8258a58000 rw-p 00000000 00:00 0
7f8258a58000-7f8258a59000 r–s 00004000 08:03 1076377 /opt/eclipse/plugins/org.eclipse.swt_3.100.0.v4233d.jar
7f8258a5a000-7f8258a5d000 r–s 00018000 08:03 1076833 /opt/eclipse/plugins/org.eclipse.equinox.common_3.6.100.v20120522-1841.jar
7f8258a5e000-7f8258a5f000 rw-p 00000000 00:00 0
7f8258a5f000-7f8258a64000 r–s 00088000 08:03 157065 /usr/java/jdk1.7.0_05/jre/lib/jsse.jar
7f8258a64000-7f8258a66000 r–s 0000b000 08:03 1076224 /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
7f8258a66000-7f8258a67000 r–p 00000000 08:03 523186 /usr/lib/locale/en_US.utf8/LC_NUMERIC
7f8258a67000-7f8258a68000 r–p 00000000 08:03 394387 /usr/lib/locale/en_US.utf8/LC_TIME
7f8258a68000-7f8258a69000 r–p 00000000 08:03 394386 /usr/lib/locale/en_US.utf8/LC_MONETARY
7f8258a69000-7f8258a6a000 r–p 00000000 08:03 523100 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES
7f8258a6a000-7f8258a6b000 r–p 00000000 08:03 523119 /usr/lib/locale/en_US.utf8/LC_PAPER
7f8258a6b000-7f8258a6c000 r–p 00000000 08:03 523136 /usr/lib/locale/en_US.utf8/LC_NAME
7f8258a6c000-7f8258a6d000 r–p 00000000 08:03 394383 /usr/lib/locale/en_US.utf8/LC_ADDRESS
7f8258a6d000-7f8258a6e000 r–p 00000000 08:03 523099 /usr/lib/locale/en_US.utf8/LC_TELEPHONE
7f8258a6e000-7f8258a6f000 r–p 00000000 08:03 523120 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT
7f8258a6f000-7f8258a76000 r–s 00000000 08:03 1454018 /usr/lib64/gconv/gconv-modules.cache
7f8258a76000-7f8258a77000 r–p 00000000 08:03 394384 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION
7f8258a77000-7f8258a7f000 rw-s 00000000 08:03 1075657 /tmp/hsperfdata_hugo/10395
7f8258a7f000-7f8258a80000 rw-p 00000000 00:00 0
7f8258a80000-7f8258a81000 —p 00000000 00:00 0
7f8258a81000-7f8258a82000 rw-p 00000000 00:00 0
7f8258a82000-7f8258a83000 r–p 00020000 08:03 1305604 /lib64/ld-2.14.1.so
7f8258a83000-7f8258a84000 rw-p 00021000 08:03 1305604 /lib64/ld-2.14.1.so
7f8258a84000-7f8258a85000 rw-p 00000000 00:00 0
7fff3e715000-7fff3e736000 rw-p 00000000 00:00 0 [stack]
7fff3e769000-7fff3e76a000 r-xp 00000000 00:00 0 [vdso]

Am 02.08.2012 13:16, schrieb lonelyflyer:
> *** glibc detected *** /usr/bin/java: free(): invalid pointer:
> 0x000000000262fb60 ***

Looks like a bug in that eclipse version, you should report it to their
bug tracker.

You can try if the workaround


export MALLOC_CHECK_=0

is possible (I am not sure with the current glibc versions if that way
to disable the check is still supported).


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10

Hi, martin_helm,
Just tried ‘MALLOC_CHECK’, but nothing changed.

I tested it in another OpenSUSE system and got the same result.
But under a Fedora 17, it works fine. So, maybe, at least it is partially related to openSUSE.

Am 03.08.2012 03:06, schrieb lonelyflyer:
> Just tried ‘MALLOC_CHECK’, but nothing changed.

It is MALLOC_CHECK_ not MALLOC_CHECK, nonetheless this kind of bugs
happened far too often with eclipse in different versions on to be
openSUSE specific.
Look for example (beside a whole bunch of similar ones) on this
https://bugs.eclipse.org/bugs/show_bug.cgi?id=320487
(this was for Helios)

Please report it, otherwise it will never be fixed.

There was a similar crash last year with another different workaround
which I cannot remember right now, if I remember I will post, so that
you can try.

Compare the versions of Java, glibc and also the desktop environment for
example on the system which does not crash to your openSUSE system where
it crashes.


PC: oS 12.1 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.8.4 | GeForce GT 420
ThinkPad E320: oS 12.1 x86_64 | i3@2.30GHz | 8GB | KDE 4.8.4 | HD 3000
eCAFE 800: oS 12.1 i586 | AMD Geode LX 800@500MHz | 512MB | KDE 3.5.10