Bug 293439

Summary: Eclipse crashes every time when clicking on "Help -> Welcome"
Product: [openSUSE] openSUSE 11.1 Reporter: Felix Möller <felix>
Component: JavaAssignee: E-mail List <bnc-team-java>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None CC: alberto.passalacqua, bugzilla.novell, casualprogrammer, davidcanar, funtasyspace, registration, rombert, tschmidt, twm.mst
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: eclipse.png
eclipse welcome screen
welcome screen
screenshot
bug-buddy report on eclipse crash
output from terminal on issuing /usr/local/eclipse/eclipse

Description Felix Möller 2007-07-20 12:47:31 UTC
[Adding Stefan to CC: as I am not sure whether it might be Xorg intel driver related ...]

Eclipse crashes quiet often. It crashes every time I click on "Help -> Welcome".

In the .xsession-error there is the following:

/usr/share/eclipse/eclipse: line 8:  6054 Abgebrochen             /usr/share/eclipse/eclipse.bin -startup $STARTUP_JAR
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  19
  Minor opcode:  0
  Resource id:  0x3c0009c

or:
/usr/share/eclipse/eclipse: line 8:  6222 Abgebrochen             /usr/share/eclipse/eclipse.bin -startup $STARTUP_JAR
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  19
  Minor opcode:  0
  Resource id:  0x3c000a2

Versions:
java-1_6_0-sun-1.6.0.u1-9
eclipse-3.3-3
xorg-x11-server-7.2-100
Comment 1 Stefan Dirsch 2007-07-20 13:01:14 UTC
Created attachment 152181 [details]
eclipse.png

Looks different to me.
Comment 2 Felix Möller 2007-07-20 13:13:38 UTC
Stefan that is probably bug #290866 (comment #3). Java 1.6 was broken until factory update a few days ago. ;)
Comment 3 Felix Möller 2007-07-26 08:44:36 UTC
Created attachment 153147 [details]
eclipse welcome screen

The problem changed. I can now click "Help" -> "Welcome". But the background image is missing. See the attached screenshot.
Comment 4 Felix Möller 2007-08-04 01:20:13 UTC
It is crashing again:

/usr/share/eclipse/eclipse: line 8: 13435 Abgebrochen             /usr/share/eclipse/eclipse.bin -startup $STARTUP_JAR
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  19
  Minor opcode:  0
  Resource id:  0x36000a4
Comment 5 Stephan Heffner 2007-08-11 17:24:00 UTC
Same problem in a 10.3 Beta 1 installation using Eclipse 3.3 in combination with Java 1.5.0_12 or 1.6.0_02 (both amd64 editions).
Comment 6 Felix Möller 2007-08-12 12:32:03 UTC
my system is 32bit ... So the that does not seem to be the cause. Just out of interest what graphicscard do you have? Which driver are you using?

I have an "00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)" and i am using the "intel" driver.
Comment 7 Felix Möller 2007-08-12 12:40:17 UTC
Created attachment 156947 [details]
welcome screen

Eclipse crashes as soon as one enters the background image. (marked red on the screenshot). If I do not move my mouse inside the background image after clicking "help" -> "welcome" it does not crash.
Comment 8 Friederike Althen 2007-08-12 13:52:44 UTC
I have exactly the same problem, but I have an ATI-Card.
Comment 9 Felix Möller 2007-08-12 14:22:05 UTC
So is it a general eclipse bug? Does it work for anybody?

Stefan does your eclipse at least start by now? Can you reproduce the bug? Is there anything I might provide to get this fixed? 

I think eclipse is an important program therefore this is a major bug.
Comment 10 Stephan Heffner 2007-08-12 17:35:49 UTC
Eclipse starts. You can use other parts, but you can't use views based on or build on the browser integration. One example is the welcome screen. Same behaviour trying to open the integrated web browser within eclipse.

It's reproducable. Maybe it's a side effect of an error inside the browser integration using xulrunner. For example a broken plugin may cause a crash. But that's only my guess.
Comment 11 Stephan Heffner 2007-08-12 17:41:57 UTC
@Felix, you asked for my graphics device. It's: 01:00.0 VGA compatible controller: nVidia Corporation G70 [GeForce 7600 GT] (rev a1) (prog-if 00 [VGA]) and I'm using the nvidia driver.
Comment 12 Stefan Dirsch 2007-08-12 18:54:56 UTC
I'm sorry, but I'm not responsible for any Java bugs.
Comment 13 Robert Munteanu 2007-08-14 13:25:58 UTC
There is a bug cross-posted on the eclipse bugzilla related to this issue : https://bugs.eclipse.org/bugs/show_bug.cgi?id=199842
Comment 14 Robert Munteanu 2007-08-16 13:58:18 UTC
I am not going to pretend I understand too much of the mechanics involved, but here goes:

a) During an unrelated development session I tried to use selenium to invoke firefox from java. It failed with /usr/lib/firefox/firefox-bin: symbol lookup error: /usr/lib/firefox/firefox-bin: undefined symbol: JS_SaveFrameChain

b) I tried to gather information about JS_SaveFrameChain, and found out that it is contained in the Firefox source code (declared in js/src/api.h, downloaded from ftp.mozilla.org)

c) Looking at the source code from the provided xulrunner ( mozilla-xulrunner181-1.8.1.4-9 ) I found that the js/jsapi.h file did not include such a declaration.

It seems to be that this _might_ cause a capabilities mismatch between what eclipse expects and what mozilla offers.
Comment 15 Jörg Hermsdorf 2007-08-21 12:51:43 UTC
I installed the latest -archdep eclipse packages from FACTORY. If I open the welcome screen, the background image isn't displayed here either, but I can move the mouse and click into the welcome screen and eclipse won't crash. I did not experience any eclipse crashes so far on my system.

By the way, does anybody knows the difference between the -archdep and "non-archdep" packages? Seems to me, that they are redundant!? Was there a package renaming and the old ones were still left there?

my system: openSUSE 10.3 Beta1/post-Beta1, x86_64, ThinkPad T60p with ATI FireGL v5250.
Comment 16 Felix Möller 2007-08-21 13:33:39 UTC
It is still crashing every time for me: eclipse-3.3-21
Comment 17 Robert Munteanu 2007-08-21 16:07:58 UTC
Works fine with the ibm sdk (but not BEA JRockit), all cases of browser/javadoc do not cause errors:

robert@rm:~> /opt/ibm-java2-i386-50/bin/java -version
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pxi32devifx-20070806 (SR5a))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20070426 (JIT enabled)
J9VM - 20070420_12448_lHdSMR
JIT  - 20070419_1806_r8
GC   - 200704_19)
JCL  - 20070725
Comment 18 Felix Möller 2007-08-26 08:21:03 UTC
I downloaded the old eclipse 3.2.2 which is still working.

One may download a working eclipse at:
http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/eclipse/downloads/drops/R-3.2.2-200702121330/eclipse-SDK-3.2.2-linux-gtk.tar.gz
Comment 19 Grzegorz Kossakowski 2007-08-26 21:30:09 UTC
I can confirm that this bug is regression from openSUSE 10.2.

I heavily used Eclipse 3.3.0-I20070621-1340 with Java 1.6.0_01-b06 on openSUSE 10.2 for a while without experiencing any crashes.

Now it crashes in Welcome screen as for others but also in Java editor when hovering on yellow context window. You can easily reproduce this behaviour by pointing mouse no class name when yellow window appears hit F2 and point mouse on that window. Eclipse will crash.

Since it's very low level issue (there is no stacktrace or other info in Eclipse logs so it must be very low level) and it worked fine with openSUSE 10.2 I believe it is some fault on SUSE side.

I have ATI X1300 graphic card.
Comment 20 Grzegorz Kossakowski 2007-08-26 21:33:28 UTC
I forgot to add that I tested it on openSUSE 10.3 Beta2.

This bug makes Eclipse almost impossible to work with so I think severity should be raised.
Comment 21 Felix Möller 2007-08-27 08:14:22 UTC
(In reply to comment #18 from Felix Möller)
> I downloaded the old eclipse 3.2.2 which is still working.
I have to correct this. Eclipse 3.2.2 is crashing very often too, but it crashes at other places. :-(

Upgrading the version to beta2.
Comment 22 Felix Möller 2007-08-27 08:58:53 UTC
There is another report of eclipse crashing but seems to be a different one: bug #304703
Comment 23 Felix Möller 2007-08-28 19:34:07 UTC
aj: do you maybe know who could be added to this bug to get it solved? There are several eclipse startup and crash bugs open now but no solution seems to be in sight.
Comment 24 Sonja Krause-Harder 2007-08-29 09:29:04 UTC
Please always leave bnc-team-java@forge.provo.novell.com in Cc when reassigning java bugs, thanks.
Comment 25 Felix Möller 2007-08-30 16:01:56 UTC
Doing ...

# ulimit -c unlimited
# /usr/share/eclipse/eclipse.bin -startup /usr/share/eclipse/plugins/org.eclipse.equinox.launcher_1.0.0.v20070606.jar
# gdb /usr/share/eclipse/eclipse.bin ./core.*
[...]
(gdb) bt

gives me:
Core was generated by `/usr/share/eclipse/eclipse.bin -startup /usr/share/eclipse/plugins/org.eclipse.'.
Program terminated with signal 6, Aborted.
#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb7923835 in raise () from /lib/libc.so.6
#2  0xb7925121 in abort () from /lib/libc.so.6
#3  0xb796041b in ?? () from /lib/libc.so.6
#4  0x095e6789 in ?? ()
#5  0x095e6788 in ?? ()
#6  0x00000009 in ?? ()
#7  0xb7a27ff4 in ?? () from /lib/libc.so.6
#8  0x095e6788 in ?? ()
#9  0xb7a0ddbb in ?? () from /lib/libc.so.6
#10 0xbfbe906c in ?? ()
#11 0xb796477a in ?? () from /lib/libc.so.6
#12 0x00000001 in ?? ()
#13 0xb7a27ff4 in ?? () from /lib/libc.so.6
#14 0x00000000 in ?? ()
Comment 26 Felix Möller 2007-09-02 17:56:14 UTC
https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/128232 for some people Eclipse crashes on Ubuntu too.
Comment 27 Felix Möller 2007-09-02 18:53:13 UTC
I just rebuilt gtk with:
"by adding "&& tooltipsdata" to the if statement on line 213 of gtk/gtktooltips.c in gtk+, this no longer segfaults eclipse"

But sadly this does not help at all for this bug.
Comment 28 Felix Möller 2007-09-05 15:19:01 UTC
With todays factory the backtrace might be a little more useful:

Program terminated with signal 6, Aborted.
#0  0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0  0xffffe410 in __kernel_vsyscall ()
#1  0xb79d18f5 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0xb79d31e1 in *__GI_abort () at abort.c:88
#3  0xb7a0e4db in malloc_printerr (action=2, str=0xb7abbe7b "free(): invalid pointer", ptr=0x1b26) at malloc.c:5892
#4  0xb7a10125 in *__GI___libc_free (mem=0x80756d8) at malloc.c:3586
#5  0xb73de665 in �� () from /usr/lib/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.0.v20070606/eclipse_1017a.so
#6  0x080492e7 in ?? ()
#7  0x00000003 in ?? ()
#8  0xbfe20d54 in ?? ()
#9  0x00000000 in ?? ()
Comment 29 Jörg Hermsdorf 2007-09-07 16:52:32 UTC
After upgrading to Beta3 I experience constant eclipse crashes. I don't know if this exactly correlates with this bug here, but I have the similar error messages like posted in comment #1 and always get the same error dialog as posted in comment #2.

I don't know how to reproduce the crash it just happens after some time working with eclipse. The only regularity I can observe is, that each time eclipse crashed it was just about to popup the content assistant (for code completion). I disabled the "Content Assist" feature (Preferences -> Java -> Editor -> Content Assist -> Advanced) and did not experience any crash for several hours now. Of course, working with "Content Assist" disabled is no solution! :(
Comment 30 Grzegorz Kossakowski 2007-09-07 17:32:26 UTC
Hello Jörg Hermsdorf.

Have you tried instructions that I put in comment #19? I'm just downloading openSUSE 10.3 Beta3 so I cannot test myself.

Have you considered voting for this issue?
Comment 31 Felix Möller 2007-09-07 23:03:31 UTC
The upstream bug suggested this might be an issue of xulrunner. Therefore I am CC:ing Michael Wolf (maw@suse.de) who did the last changes to xulrunner.

Michael could this be an issue of xulrunner? Anything we may test?
Comment 32 Jörg Hermsdorf 2007-09-08 08:59:22 UTC
Grzegorz,
I just tried your instructions from comment #19 and it indeed causes eclipse to crash, but not every time. Sometimes eclipse crashes immediately after I pressed F2, sometimes I can use F2 50 times before eclipse crashes. 
Comment 33 Jörg Hermsdorf 2007-09-08 09:23:59 UTC
Hm, this could be indeed a xulrunner issue, I removed the xulrunner package from my system and did not experience any eclipse crash since then so far. The welcome page shows content again (it was completely empty (grey) before) and the code completion/help popups don't seem to crash eclipse any longer either.
Comment 34 Grzegorz Kossakowski 2007-09-08 09:36:15 UTC
Jörg,

Could you give exact instructions how to remove xulrunner so I can test it as well?

Does removing xulrunner has some side effects? Could removal break something?
Comment 35 Felix Möller 2007-09-08 09:45:00 UTC
Created attachment 162843 [details]
screenshot

Just did an:

# rpm -e mozilla-xulrunner181 --nodeps

and now eclipse does not crash on clicking help->about.

Thanks!
Comment 36 Felix Möller 2007-09-08 09:47:29 UTC
> Could you give exact instructions how to remove xulrunner so I can test it as
> well?
> 
> Does removing xulrunner has some side effects? Could removal break something?
Try removing it with rpm -e and look at the dependencies. On my system just evolution depended on it. So I removed it. ;)

Michael: Why is the background image of eclipse missing after removing xulrunner?
Comment 37 Grzegorz Kossakowski 2007-09-08 15:08:21 UTC
After removing xulrunner Eclipse does not crash any more but it's not a solution, at all. Xulrunner provides integration with Mozilla browser for internal Browser component that is used in number of Java applications, including Eclipse itself.

After removing xulrunner, there are limitations in use of components that depend on internal browser like Mylyn plug-in. Another significant example is Azureus that makes extensive use of internal browser and also crashes, see bug #308462.
Comment 38 Christian Prause 2007-09-08 20:01:36 UTC
Same here. After removing xulrunner (mozilla-xulrunner181) Eclipse does not
crash anymore on Help -> Welcome (+Mouse Over)

On my system classpath-webplugin depended on xulrunner but not eclipse.

My packages:
eclipse-scripts-3.3-35
eclipse-archdep-gtk2-3.3-35
eclipse-platform-3.3-35
eclipse-archdep-platform-3.3-35
eclipse-subversive-1.1.0.M7-120
eclipse-3.3-35

removed:
mozilla-xulrunner181-1.8.1.4-19
and because of dependency:
classpath-webplugin-0.95-5

Comment 39 Stephan Kulow 2007-09-14 08:47:56 UTC
*** Bug 308462 has been marked as a duplicate of this bug. ***
Comment 40 Robert Munteanu 2007-09-18 18:03:30 UTC
On upgrading to the latest 10.3 pre-release, the browser view works, as well as the other components.

Not sure what really made it work, here are the updated versions:

OS: openSUSE 10.3 (i586) Beta3plus
Kernel: Linux rm 2.6.22.5-18-default #1 SMP 2007/09/13 11:40:13 UTC i686 i686 i386 GNU/Linux
Eclipse: I20070621-1340
GTK: gtk2-2.11.6-26

Browser-related packages:
mozilla-xulrunner181-1.8.1.4-26
MozillaFirefox-2.0.0.6-20
Comment 41 Felix Möller 2007-09-18 18:17:15 UTC
It is working here too:

# rpm -q mozilla-xulrunner181 eclipse-platform MozillaFirefox
mozilla-xulrunner181-1.8.1.4-26
eclipse-platform-3.3-45
MozillaFirefox-2.0.0.6-20
Comment 42 Sonja Krause-Harder 2007-09-19 09:00:10 UTC
The latest gtk changes might have fixed it.

Confirmed with (soon to be announced) RC1, closing for now, please reopen if necessary. Thanks.
Comment 43 Felix Möller 2007-11-02 17:40:14 UTC
sorry i have to reopen this bug. On current factory eclipse crashes again.
Comment 44 Casual J. Programmer 2007-11-14 23:52:29 UTC
There seems to be some mix-up with eclipse packaging. When installing with yast two locations are populated: /usr/share/eclipse and /usr/lib/eclipse which doesn't seem right comparing it to manual installation from eclipse.org

When installing from eclipse.org to /usr/share or /usr/local everything is fine, except the help system is not operable with the symptoms described above.

When activating Help/Welcome and then moving the cursor over the welcome page bug-buddy is triggered and a message appears in the terminal stating:

/usr/lib/gecko: No such file or directory

As far as I can see gecko is some kind of Netscape rendering engine which is used in all sorts of browsers, hence the reference to xulrunner. Only it seems that xulrunner doesn't behave as eclipse expects gecko to.

Otherwise eclipse seems to work fine and it has its own package management, so there is no need for having all that stuff in the repository except for a base package.

Attaching the bug-buddy report below.








Comment 45 Casual J. Programmer 2007-11-14 23:54:32 UTC
Created attachment 183440 [details]
bug-buddy report on eclipse crash
Comment 46 Casual J. Programmer 2007-12-01 17:00:23 UTC
After fiddling with all sorts of settings according to eclipse/readme/readme_eclipse.html, which in turn points to ttp://www.eclipse.org/swt/faq.php#browserplatforms where some information on browser integration is given:

Q: Which platforms support the SWT Browser?
    A: The SWT Browser is currently available on the following platforms:

       1. Windows (Internet Explorer 5 and above)
       2. Mac (Panther OS X 10.3 and above. Safari-based)
       3. Linux GTK and Linux Motif (XULRunner-1.8.0.1 and above, Firefox 1.0 and above, Mozilla 1.4 GTK2 and above)
          The following Linux distributions meet the Mozilla/Firefox requirements for using the Browser widget:
              * RedHat Enterprise Linux 3
              * SuSE 9
          Older Linux distributions may require a supported version of Mozilla to be installed. (instructions)
       4. Photon

Q: What do I need to run the SWT Browser inside Eclipse on Linux/GTK or Linux/Motif?
    A: You need one of the following:

        * Mozilla 1.4 GTK2 - 1.6 GTK2 can be used with Eclipse 3.0 and newer.
        * Mozilla 1.4 GTK2 - 1.7.8 GTK2 can be used with Eclipse 3.1 and newer.
        * Mozilla 1.4 GTK2 - 1.7.12 GTK2 can be used with Eclipse 3.2 and newer.
        * Firefox can be used with Eclipse 3.1 and newer (Linux only), provided that it has been compiled with linkable Gecko libraries. It is important to note that Firefox downloads from mozilla.org currently do not satisfy this criteria, but Firefox installations that are included in major Linux distributions often do in the absence of a XULRunner installation. Attempting to use a statically-linked Firefox install will display the error message "No more handles [NS_InitEmbedding...error -2147221164]".
        * XULRunner 1.8.0.1 - 1.8.1.x can be used with Eclipse 3.3 and newer


    The version of Mozilla or Firefox installed on your system varies with your Linux distribution.
    The following Linux distributions meet the Mozilla requirements for using the Browser widget.

        * RedHat Enterprise Linux 3
        * Suse 9


    The following Linux distributions meet the Firefox requirements for using the Browser widget.

        * RedHat Enterprise Linux 4
          Note that you may need to set the environment variable MOZILLA_FIVE_HOME to the folder containing your Firefox install. e.g. setenv MOZILLA_FIVE_HOME /usr/lib/firefox-1.0.4

it turns out, that when running eclipse as root the problem from comment #0 is gone completely.



Comment 47 Felix Möller 2007-12-16 23:29:13 UTC
(In reply to comment #46 from Casual J. Programmer)
> it turns out, that when running eclipse as root the problem from comment #0 is
> gone completely.
I investigated somemore today and found out. That it is crashing when becoming root via "su -c" but not when becoming root via "su"... 

# rpm -q mozilla-xulrunner181 eclipse
mozilla-xulrunner181-1.8.1.4-52
eclipse-3.3-78
Comment 48 Felix Möller 2007-12-16 23:30:27 UTC
Whoops it should read when becoming su via _"su -"_ it crashes.

So it has something to do with the environment ...
Comment 49 Casual J. Programmer 2008-02-29 10:15:40 UTC
There is a difference, though:

When running from a terminal as user and moving the cursor into the welcome page area a bug buddy report is triggered and the terminal states:

/usr/lib/gecko: No such file or directory.

While running as "su -" the terminal simply states "Aborted"




Comment 50 Casual J. Programmer 2008-02-29 14:02:24 UTC
Also:

When booting and logging in as user, running /usr/local/eclipse/eclipse and moving cursor over the welcome screen will crash with bug-buddy report and stating /usr/lib/gecko no such file or directory.

If then issuing "su someotheruser" running /usr/local/eclipse/eclipse will perform without problems.

If, in turn, from someotheruser, issuing "su user" running /usr/local/eclipse/eclipse runs flawlessly as well.


user@workstation6l:> env

LC_PAPER=de_DE.UTF-8
LESSKEY=/etc/lesskey.bin
INFODIR=/usr/local/info:/usr/share/info:/usr/info
NNTPSERVER=news
MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man
SSH_AGENT_PID=7406
LC_MONETARY=de_DE.UTF-8
HOSTNAME=workstation6l
XKEYSYMDB=/usr/share/X11/XKeysymDB
MALLOC_CHECK_=2
GPG_AGENT_INFO=/tmp/gpg-Icm9Fb/S.gpg-agent:4065:1
SHELL=/bin/bash
TERM=xterm
HOST=workstation6l
DESKTOP_STARTUP_ID=
HISTSIZE=1000
XDG_SESSION_COOKIE=1b30b4bf7d694a62962a1400473d5b54-1204291497.435686-998563631
PROFILEREAD=true
TMPDIR=/tmp
GTK_RC_FILES=/etc/gtk/gtkrc:/home/user/.gtkrc-1.2-gnome2
MORE=-sl
WINDOWID=41943093
LC_NUMERIC=de_DE.UTF-8
QTDIR=/usr/lib/qt3
XSESSION_IS_UP=yes
GTK_MODULES=gnomebreakpad
USER=user
GROFF_NO_SGR=yes
JRE_HOME=/usr/lib/jvm/jre
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
DESKTOP_LAUNCH=gnome-open
XNLSPATH=/usr/share/X11/nls
ENV=/etc/bash.bashrc
SSH_AUTH_SOCK=/tmp/ssh-KTLYh7337/agent.7337
HOSTTYPE=i386
SESSION_MANAGER=local/workstation6l:/tmp/.ICE-unix/7337
USERNAME=user
FROM_HEADER=
PAGER=less
CSHEDIT=emacs
XDG_CONFIG_DIRS=/etc/xdg
MINICOM=-c on
MAIL=/var/spool/mail/user
PATH=/home/user/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
DESKTOP_SESSION=gnome
LC_MESSAGES=en_US.UTF-8
CPU=i686
JAVA_BINDIR=/usr/lib/jvm/jre/bin
LC_COLLATE=en_US.UTF-8
GDM_XSERVER_LOCATION=local
INPUTRC=/home/user/.inputrc
PWD=/home/user
JAVA_HOME=/usr/lib/jvm/jre
XMODIFIERS=@im=local
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8
PYTHONSTARTUP=/etc/pythonstart
GDMSESSION=gnome
SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass
TEXINPUTS=:/home/user/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
ICEAUTHORITY=/home/user/.ICEauthority
MALLOC_PERTURB_=D
SHLVL=1
QT_SYSTEM_DIR=/usr/share/desktop-data
HOME=/home/user
LESS_ADVANCED_PREPROCESSOR=no
OSTYPE=linux
LS_OPTIONS=-N --color=tty -T 0
GNOME_DESKTOP_SESSION_ID=Default
XCURSOR_THEME=Industrial
WINDOWMANAGER=/usr/bin/gnome
GTK_PATH=/usr/local/lib/gtk-2.0:/usr/lib/gtk-2.0
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
LOGNAME=user
LESS=-M -I
MACHTYPE=i686-suse-linux
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-nwLLVRufu4,guid=142d01203c359afb4f61bc8547c807a9
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/etc/opt/kde3/share:/opt/kde3/share
LC_CTYPE=en_US.UTF-8
LESSOPEN=lessopen.sh %s
INFOPATH=/usr/local/info:/usr/share/info:/usr/info
WINDOWPATH=7:7:7:7:7:7
DISPLAY=:0.0
XAUTHLOCALHOSTNAME=workstation6l
LESSCLOSE=lessclose.sh %s %s
LC_TIME=de_DE.UTF-8
G_BROKEN_FILENAMES=1
JAVA_ROOT=/usr/lib/jvm/jre
COLORTERM=gnome-terminal
XAUTHORITY=/home/user/.Xauthority
_=/usr/bin/env

user@workstation6l:~> su someotheruser
Password: 
someotheruser@workstation6l:/home/user> env
LESSKEY=/etc/lesskey.bin
LC_PAPER=de_DE.UTF-8
MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man
NNTPSERVER=news
INFODIR=/usr/local/info:/usr/share/info:/usr/info
SSH_AGENT_PID=7406
HOSTNAME=workstation6l
LC_MONETARY=de_DE.UTF-8
XKEYSYMDB=/usr/share/X11/XKeysymDB
GPG_AGENT_INFO=/tmp/gpg-Icm9Fb/S.gpg-agent:4065:1
DESKTOP_STARTUP_ID=
HOST=workstation6l
TERM=xterm
SHELL=/bin/bash
PROFILEREAD=true
XDG_SESSION_COOKIE=1b30b4bf7d694a62962a1400473d5b54-1204291497.435686-998563631
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/home/user/.gtkrc-1.2-gnome2
LC_NUMERIC=de_DE.UTF-8
WINDOWID=41943093
MORE=-sl
QTDIR=/usr/lib/qt3
XSESSION_IS_UP=yes
GTK_MODULES=gnomebreakpad
JRE_HOME=/usr/lib/jvm/jre
GROFF_NO_SGR=yes
USER=someotheruser
DESKTOP_LAUNCH=gnome-open
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
XNLSPATH=/usr/share/X11/nls
ENV=/etc/bash.bashrc
HOSTTYPE=i386
SSH_AUTH_SOCK=/tmp/ssh-KTLYh7337/agent.7337
FROM_HEADER=
USERNAME=user
SESSION_MANAGER=local/workstation6l:/tmp/.ICE-unix/7337
PAGER=less
CSHEDIT=emacs
XDG_CONFIG_DIRS=/etc/xdg
MINICOM=-c on
DESKTOP_SESSION=gnome
PATH=/home/user/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
MAIL=/var/spool/mail/user
CPU=i686
LC_MESSAGES=en_US.UTF-8
JAVA_BINDIR=/usr/lib/jvm/jre/bin
GDM_XSERVER_LOCATION=local
LC_COLLATE=en_US.UTF-8
PWD=/home/user
INPUTRC=/home/user/.inputrc
XMODIFIERS=@im=local
JAVA_HOME=/usr/lib/jvm/jre
LANG=en_US.UTF-8
PYTHONSTARTUP=/etc/pythonstart
GDM_LANG=en_US.UTF-8
GDMSESSION=gnome
SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass
MALLOC_PERTURB_=D
ICEAUTHORITY=/home/user/.ICEauthority
TEXINPUTS=:/home/user/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
HOME=/home/someotheruser
QT_SYSTEM_DIR=/usr/share/desktop-data
SHLVL=2
OSTYPE=linux
LESS_ADVANCED_PREPROCESSOR=no
XCURSOR_THEME=Industrial
GNOME_DESKTOP_SESSION_ID=Default
LS_OPTIONS=-N --color=tty -T 0
WINDOWMANAGER=/usr/bin/gnome
GTK_PATH=/usr/local/lib/gtk-2.0:/usr/lib/gtk-2.0
MACHTYPE=i686-suse-linux
LESS=-M -I
LOGNAME=someotheruser
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
CVS_RSH=ssh
LC_CTYPE=en_US.UTF-8
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/etc/opt/kde3/share:/opt/kde3/share
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-nwLLVRufu4,guid=142d01203c359afb4f61bc8547c807a9
LESSOPEN=lessopen.sh %s
WINDOWPATH=7:7:7:7:7:7
INFOPATH=/usr/local/info:/usr/share/info:/usr/info
DISPLAY=:0.0
XAUTHLOCALHOSTNAME=workstation6l
LC_TIME=de_DE.UTF-8
LESSCLOSE=lessclose.sh %s %s
G_BROKEN_FILENAMES=1
XAUTHORITY=/home/someotheruser/.xauthT0vrKD
COLORTERM=gnome-terminal
JAVA_ROOT=/usr/lib/jvm/jre
_=/usr/bin/env
someotheruser@workstation6l:/home/user> su user
Password: 
user@workstation6l:~> env
LC_PAPER=de_DE.UTF-8
LESSKEY=/etc/lesskey.bin
INFODIR=/usr/local/info:/usr/share/info:/usr/info
NNTPSERVER=news
MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man
SSH_AGENT_PID=7406
LC_MONETARY=de_DE.UTF-8
HOSTNAME=workstation6l
XKEYSYMDB=/usr/share/X11/XKeysymDB
GPG_AGENT_INFO=/tmp/gpg-Icm9Fb/S.gpg-agent:4065:1
SHELL=/bin/bash
TERM=xterm
HOST=workstation6l
DESKTOP_STARTUP_ID=
HISTSIZE=1000
XDG_SESSION_COOKIE=1b30b4bf7d694a62962a1400473d5b54-1204291497.435686-998563631
PROFILEREAD=true
GTK_RC_FILES=/etc/gtk/gtkrc:/home/user/.gtkrc-1.2-gnome2
MORE=-sl
WINDOWID=41943093
LC_NUMERIC=de_DE.UTF-8
QTDIR=/usr/lib/qt3
XSESSION_IS_UP=yes
GTK_MODULES=gnomebreakpad
USER=user
GROFF_NO_SGR=yes
JRE_HOME=/usr/lib/jvm/jre
LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
DESKTOP_LAUNCH=gnome-open
XNLSPATH=/usr/share/X11/nls
ENV=/etc/bash.bashrc
SSH_AUTH_SOCK=/tmp/ssh-KTLYh7337/agent.7337
HOSTTYPE=i386
SESSION_MANAGER=local/workstation6l:/tmp/.ICE-unix/7337
USERNAME=user
FROM_HEADER=
PAGER=less
CSHEDIT=emacs
XDG_CONFIG_DIRS=/etc/xdg
MINICOM=-c on
MAIL=/var/spool/mail/user
PATH=/home/user/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
DESKTOP_SESSION=gnome
LC_MESSAGES=en_US.UTF-8
CPU=i686
JAVA_BINDIR=/usr/lib/jvm/jre/bin
LC_COLLATE=en_US.UTF-8
GDM_XSERVER_LOCATION=local
INPUTRC=/home/user/.inputrc
PWD=/home/user
JAVA_HOME=/usr/lib/jvm/jre
XMODIFIERS=@im=local
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8
PYTHONSTARTUP=/etc/pythonstart
GDMSESSION=gnome
SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass
TEXINPUTS=:/home/user/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
ICEAUTHORITY=/home/user/.ICEauthority
MALLOC_PERTURB_=D
SHLVL=3
QT_SYSTEM_DIR=/usr/share/desktop-data
HOME=/home/user
LESS_ADVANCED_PREPROCESSOR=no
OSTYPE=linux
LS_OPTIONS=-N --color=tty -T 0
GNOME_DESKTOP_SESSION_ID=Default
XCURSOR_THEME=Industrial
WINDOWMANAGER=/usr/bin/gnome
GTK_PATH=/usr/local/lib/gtk-2.0:/usr/lib/gtk-2.0
G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
LOGNAME=user
LESS=-M -I
MACHTYPE=i686-suse-linux
CVS_RSH=ssh
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-nwLLVRufu4,guid=142d01203c359afb4f61bc8547c807a9
XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/etc/opt/kde3/share:/opt/kde3/share
LC_CTYPE=en_US.UTF-8
LESSOPEN=lessopen.sh %s
INFOPATH=/usr/local/info:/usr/share/info:/usr/info
WINDOWPATH=7:7:7:7:7:7
DISPLAY=:0.0
XAUTHLOCALHOSTNAME=workstation6l
LESSCLOSE=lessclose.sh %s %s
LC_TIME=de_DE.UTF-8
G_BROKEN_FILENAMES=1
JAVA_ROOT=/usr/lib/jvm/jre
COLORTERM=gnome-terminal
XAUTHORITY=/home/user/.xauthlYQOHt
_=/usr/bin/env

I can't really make out differences in env, but, maybe, I just looked to long at this...




Comment 51 Casual J. Programmer 2008-02-29 14:19:27 UTC
Interestingly enough, if you boot and log in as root ( which you never, ever should do... ) then fire up a terminal and "su user" and invoke /usr/local/eclipse/eclipse you will get: 

No protocol specified
No protocol specified

(eclipse:9110): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(eclipse:9110): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TY
PE_CHECK_INSTANCE (instance)' failed

(eclipse:9110): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_
SCREEN (screen)' failed

(eclipse:9110): Gtk-WARNING **: Screen for GtkWindow not set; you must always se
t
a screen for a GtkWindow before using the window

(eclipse:9110): Gtk-WARNING **: Screen for GtkWindow not set; you must always se
t
a screen for a GtkWindow before using the window
.
.
.

full output see attachment eclipse.txt
Comment 52 Casual J. Programmer 2008-02-29 14:20:45 UTC
Created attachment 197881 [details]
output from terminal on issuing /usr/local/eclipse/eclipse
Comment 53 Casual J. Programmer 2008-03-02 17:27:20 UTC
The following works nicely:

Login as cjp, su cjp, start eclipse.

Why this should be so ? No idea.

Regarding the environment I did the following:

cjp@workstation6l:~> env > cjp1.txt
cjp@workstation6l:~> su cjp
Password: 
cjp@workstation6l:~> env > cjp2.txt
cjp@workstation6l:~> diff
diff: missing operand after `diff'
diff: Try `diff --help' for more information.
cjp@workstation6l:~> diff Naur cjp1.txt cjp2.txt
diff: extra operand `cjp2.txt'
diff: Try `diff --help' for more information.
cjp@workstation6l:~> diff -Naur cjp1.txt cjp2.txt
--- cjp1.txt	2008-03-02 17:51:33.000000000 +0100
+++ cjp2.txt	2008-03-02 17:51:57.000000000 +0100
@@ -1,85 +1,83 @@
 LESSKEY=/etc/lesskey.bin
-INFODIR=/usr/local/info:/usr/share/info:/usr/info
-NNTPSERVER=news
 MANPATH=/usr/local/man:/usr/share/man
+NNTPSERVER=news
+INFODIR=/usr/local/info:/usr/share/info:/usr/info
 SSH_AGENT_PID=15135
 HOSTNAME=workstation6l
 XKEYSYMDB=/usr/share/X11/XKeysymDB
-MALLOC_CHECK_=2
-SHELL=/bin/bash
-TERM=xterm
-HOST=workstation6l
 DESKTOP_STARTUP_ID=
-HISTSIZE=1000
-XDG_SESSION_COOKIE=5fd4f5f5363ddae9bb8085f547ca7814-1204474745.930258-1692153046
+HOST=workstation6l
+TERM=xterm
+SHELL=/bin/bash
 PROFILEREAD=true
-TMPDIR=/tmp
+XDG_SESSION_COOKIE=5fd4f5f5363ddae9bb8085f547ca7814-1204474745.930258-1692153046
+HISTSIZE=1000
 GTK_RC_FILES=/etc/gtk/gtkrc:/home/cjp/.gtkrc-1.2-gnome2
-MORE=-sl
 WINDOWID=14680483
+MORE=-sl
 QTDIR=/usr/lib/qt3
 XSESSION_IS_UP=yes
 GTK_MODULES=gnomebreakpad
-USER=cjp
-GROFF_NO_SGR=yes
 JRE_HOME=/usr/lib/jvm/jre
-LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
+GROFF_NO_SGR=yes
+USER=cjp
 DESKTOP_LAUNCH=gnome-open
+LS_COLORS=no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
 XNLSPATH=/usr/share/X11/nls
 ENV=/etc/bash.bashrc
-GNOME_KEYRING_SOCKET=/tmp/keyring-wm9RXc/socket
-SSH_AUTH_SOCK=/tmp/ssh-pUvn15068/agent.15068
 HOSTTYPE=i386
-SESSION_MANAGER=local/workstation6l:/tmp/.ICE-unix/15068
-USERNAME=cjp
+SSH_AUTH_SOCK=/tmp/ssh-pUvn15068/agent.15068
+GNOME_KEYRING_SOCKET=/tmp/keyring-wm9RXc/socket
 FROM_HEADER=
+USERNAME=cjp
+SESSION_MANAGER=local/workstation6l:/tmp/.ICE-unix/15068
 PAGER=less
 CSHEDIT=emacs
 XDG_CONFIG_DIRS=/etc/xdg
 MINICOM=-c on
-MAIL=/var/spool/mail/cjp
-PATH=/home/cjp/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
 DESKTOP_SESSION=gnome
+PATH=/home/cjp/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
+MAIL=/var/spool/mail/cjp
 CPU=i686
 JAVA_BINDIR=/usr/lib/jvm/jre/bin
 GDM_XSERVER_LOCATION=local
-INPUTRC=/home/cjp/.inputrc
 PWD=/home/cjp
-JAVA_HOME=/usr/lib/jvm/jre
+INPUTRC=/home/cjp/.inputrc
 XMODIFIERS=@im=local
-LANG=en_US.UTF-8
+JAVA_HOME=/usr/lib/jvm/jre
 GNOME_KEYRING_PID=15064
-GDM_LANG=en_US.UTF-8
+LANG=en_US.UTF-8
 PYTHONSTARTUP=/etc/pythonstart
+GDM_LANG=en_US.UTF-8
 GDMSESSION=gnome
-TEXINPUTS=:/home/cjp/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
-ICEAUTHORITY=/home/cjp/.ICEauthority
 MALLOC_PERTURB_=D
-SHLVL=1
-QT_SYSTEM_DIR=/usr/share/desktop-data
+ICEAUTHORITY=/home/cjp/.ICEauthority
+TEXINPUTS=:/home/cjp/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
 HOME=/home/cjp
-LESS_ADVANCED_PREPROCESSOR=no
+QT_SYSTEM_DIR=/usr/share/desktop-data
+SHLVL=2
 OSTYPE=linux
-LS_OPTIONS=-N --color=tty -T 0
-GNOME_DESKTOP_SESSION_ID=Default
+LESS_ADVANCED_PREPROCESSOR=no
 XCURSOR_THEME=Industrial
+GNOME_DESKTOP_SESSION_ID=Default
+LS_OPTIONS=-N --color=tty -T 0
 WINDOWMANAGER=/usr/bin/gnome
 GTK_PATH=/usr/local/lib/gtk-2.0:/usr/lib/gtk-2.0
-G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
-LOGNAME=cjp
-LESS=-M -I
 MACHTYPE=i686-suse-linux
+LESS=-M -I
+LOGNAME=cjp
+G_FILENAME_ENCODING=@locale,UTF-8,ISO-8859-15,CP1252
 CVS_RSH=ssh
-DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-AJAVDtqs3F,guid=b1aa3e3edc50dc565da075b247cad37a
 XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/etc/opt/kde3/share:/opt/kde3/share
+DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-AJAVDtqs3F,guid=b1aa3e3edc50dc565da075b247cad37a
 LESSOPEN=lessopen.sh %s
-INFOPATH=/usr/local/info:/usr/share/info:/usr/info
 WINDOWPATH=7:7:7:7
+INFOPATH=/usr/local/info:/usr/share/info:/usr/info
 DISPLAY=:0.0
 XAUTHLOCALHOSTNAME=workstation6l
 LESSCLOSE=lessclose.sh %s %s
 G_BROKEN_FILENAMES=1
-JAVA_ROOT=/usr/lib/jvm/jre
+XAUTHORITY=/home/cjp/.xauth4Kfx8Y
 COLORTERM=gnome-terminal
-XAUTHORITY=/home/cjp/.Xauthority
+JAVA_ROOT=/usr/lib/jvm/jre
 _=/usr/bin/env
cjp@workstation6l:~> exit
exit
cjp@workstation6l:~> env | sort > cjp1.txt
cjp@workstation6l:~> su cjp
Password: 
cjp@workstation6l:~> env | sort > cjp2.txt
cjp@workstation6l:~> diff -Naur cjp1.txt cjp2.txt
--- cjp1.txt	2008-03-02 17:55:44.000000000 +0100
+++ cjp2.txt	2008-03-02 17:56:10.000000000 +0100
@@ -45,7 +45,6 @@
 LS_OPTIONS=-N --color=tty -T 0
 MACHTYPE=i686-suse-linux
 MAIL=/var/spool/mail/cjp
-MALLOC_CHECK_=2
 MALLOC_PERTURB_=D
 MANPATH=/usr/local/man:/usr/share/man
 MINICOM=-c on
@@ -61,12 +60,11 @@
 QT_SYSTEM_DIR=/usr/share/desktop-data
 SESSION_MANAGER=local/workstation6l:/tmp/.ICE-unix/15068
 SHELL=/bin/bash
-SHLVL=1
+SHLVL=2
 SSH_AGENT_PID=15135
 SSH_AUTH_SOCK=/tmp/ssh-pUvn15068/agent.15068
 TERM=xterm
 TEXINPUTS=:/home/cjp/.TeX:/usr/share/doc/.TeX:/usr/doc/.TeX
-TMPDIR=/tmp
 USER=cjp
 USERNAME=cjp
 _=/usr/bin/env
@@ -74,7 +72,7 @@
 WINDOWMANAGER=/usr/bin/gnome
 WINDOWPATH=7:7:7:7
 XAUTHLOCALHOSTNAME=workstation6l
-XAUTHORITY=/home/cjp/.Xauthority
+XAUTHORITY=/home/cjp/.xauthgYriIU
 XCURSOR_THEME=Industrial
 XDG_CONFIG_DIRS=/etc/xdg
 XDG_DATA_DIRS=/usr/local/share:/usr/share:/usr/share/gdm:/etc/opt/kde3/share:/opt/kde3/share

Comment 54 Casual J. Programmer 2008-03-02 17:39:44 UTC
As it turns out export MALLOC_CHECK_="" does the trick. 

As http://www.gnu.org/software/libtool/manual/libc/Heap-Consistency-Checking.html points out:

"Another possibility to check for and guard against bugs in the use of malloc, realloc and free is to set the environment variable MALLOC_CHECK_. When MALLOC_CHECK_ is set, a special (less efficient) implementation is used which is designed to be tolerant against simple errors, such as double calls of free with the same argument, or overruns of a single byte (off-by-one bugs). Not all such errors can be protected against, however, and memory leaks can result. If MALLOC_CHECK_ is set to 0, any detected heap corruption is silently ignored; if set to 1, a diagnostic is printed on stderr; if set to 2, abort is called immediately. This can be useful because otherwise a crash may happen much later, and the true cause for the problem is then very hard to track down."

So I set MALLOC_CHECK_=1 and, while eclipse runs properly, get flooded with:

*** glibc detected *** /media/WS6L-Extern1/Downloads/eclipse/eclipse: free(): invalid pointer: 0x0b182928 ***
*** glibc detected *** /media/WS6L-Extern1/Downloads/eclipse/eclipse: free(): invalid pointer: 0x0b18a488 ***
*** glibc detected *** /media/WS6L-Extern1/Downloads/eclipse/eclipse: free(): invalid pointer: 0x0b18a2d0 ***
*** glibc detected *** /media/WS6L-Extern1/Downloads/eclipse/eclipse: free(): invalid pointer: 0x0b167cc0 ***
*** glibc detected *** /media/WS6L-Extern1/Downloads/eclipse/eclipse: free(): invalid pointer: 0x0b3a0410 ***
*** glibc detected *** /media/WS6L-Extern1/Downloads/eclipse/eclipse: free(): invalid pointer: 0x0b3a04f0 ***

What gives ?
Comment 55 Felix Möller 2008-03-02 18:24:54 UTC
Thanks alot for looking into this Casual J. Programmer. Sadly this bug does not get much attention, so we might try to contact upstream again.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=199842

I do not have an spare time in the next two weeks, but after that I am going to look deeply into this again.
Comment 56 Casual J. Programmer 2008-03-07 10:17:07 UTC
It seems to be fixed upstream, see https://bugs.eclipse.org/bugs/show_bug.cgi?id=209428
Comment 57 Sonja Krause-Harder 2008-04-22 09:10:09 UTC
Assigning back to java team.
Comment 58 David Canar 2008-04-25 08:17:55 UTC
This is still an issue on Opensuse 11 beta 1 64 bits. As stated in comment #54 setting MALLOC_CHECK_=1 "fixes" the problem but prints those nasty comments:

*** glibc detected *** /usr/bin/java: free(): invalid pointer: 0x00000000037ec270 ***
*** glibc detected *** /usr/bin/java: free(): invalid pointer: 0x00000000037df3f0 ***
*** glibc detected *** /usr/bin/java: free(): invalid pointer: 0x0000000001615d20 ***
*** glibc detected *** /usr/bin/java: free(): invalid pointer: 0x00000000054a2d30 ***
*** glibc detected *** /usr/bin/java: free(): invalid pointer: 0x00000000012e3ce0 ***
*** glibc detected *** /usr/bin/java: free(): invalid pointer: 0x000000000169ed40 ***
*** glibc detected *** /usr/bin/java: free(): invalid pointer: 0x0000000000a74dc0 ***
Comment 59 Felix Möller 2008-04-25 09:46:59 UTC
It is fixed when using the official eclipse snapshot:

Eclipse SDK

Version: 3.4.0
Build id: I20080330-1350

I read on the factory-mailinglist some days ago that anosek has packaged eclipse finally. Hopefully this problem will be solved eventually ... Sad.
Comment 60 Jörg Hermsdorf 2008-04-25 10:40:07 UTC
The situation is currently still the same as on openSUSE 10.3 (except the security warning I reported in bug #383702), if you uninstall xulrunner, eclipse no longer crashes. The problem is, that MozillaFirefox seems to depend on xulrunner on openSUSE 11.0. So if you unistall xulrunner, firefox is removed too. Maybe this is a package dependency bug?
Comment 61 Casual J. Programmer 2008-05-04 08:46:38 UTC
*** Bug 351907 has been marked as a duplicate of this bug. ***
Comment 62 Jörg Hermsdorf 2008-07-02 22:41:40 UTC
Has this issue been silently fixed by now? I don't experience this bug on openSUSE 11.0 any longer!
Comment 63 Alberto Passalacqua 2008-07-03 04:26:47 UTC
I don't experience it anymore in 11.0 too.

Regards,
Alberto
Comment 64 Felix Möller 2008-08-09 16:12:30 UTC
I just tested on openSUSE 11.1 factory and it still crashes. Upstream is still working fine ...
Comment 66 Ales Nosek 2008-09-04 12:02:32 UTC
This bug was already fixed by upstream. Closing.
Comment 67 Felix Möller 2008-09-04 12:46:08 UTC
I know that this has been fixed upstream for a long time but sadly factory still does not have updated packages in its repo.

ftp://ftp.gwdg.de/pub/opensuse/distribution/SL-OSS-factory/inst-source/suse/i586/
[FILE] eclipse-archdep-3.3-195.i586.rp> Aug 31 20:20     40k
[FILE] eclipse-archdep-gtk2-3.3-195.i5> Aug 31 20:20   1502k
[FILE] eclipse-archdep-jdt-3.3-195.i58> Aug 31 20:20  26807k
[FILE] eclipse-archdep-pde-3.3-195.i58> Aug 31 20:20   8260k
[FILE] eclipse-archdep-platform-3.3-19> Aug 31 20:20     50k
[FILE] eclipse-archdep-platform-common> Aug 31 20:20  67879k
[FILE] eclipse-archdep-scripts-3.3-195> Aug 31 20:20      6k
[FILE] eclipse-archdep-source-3.3-195.> Aug 31 20:20  29592k

They are still 3.3 as the ones I tried a month ago. So please update to upstream 3.4.

Thanks.
Comment 68 Michal Vyskocil 2008-09-04 14:30:42 UTC
Hi, Ales has submitted the packages with Eclipse 3.4 into BETA (an internal testing branch of openSUSE) and the packages will be available in Factory later.

The Eclipse 3.4 is now available in home:anosek[1]

[1] http://download.opensuse.org/repositories/home:/anosek/openSUSE_Factory/