Bug 354593

Summary: X Shared Memory related bug in eclipse triggered by X.Org security update
Product: [openSUSE] openSUSE 10.3 Reporter: ettore marchetti <ettore.marchetti>
Component: JavaAssignee: E-mail List <bnc-team-java>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: meissner, mikedl, security-team, sndirsch
Version: Final   
Target Milestone: ---   
Hardware: i686   
OS: openSUSE 10.3   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description ettore marchetti 2008-01-17 21:20:12 UTC
eclipse (I tried the IDE for Java developers and the eclipse classic 3.3.1.1, recent download) does not start.
It worked fine until yesterday. Today I installed the recommended updates of opensuse (3 updates, dating from today or maw 2 days ago) and since then eclipse fails to start. The programs gets up to run (the central large icon appears) but shuts down a few seconds later, with the following error msg
./eclipse -vmargs -Xmx64M -Xms64M (note, not giving parameters yields the same result)
The program 'Eclipse' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 452 error_code 11 request_code 144 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Please let me know if you need more info. And if you cannot reproduce the problem, in which case I will try reinstalling opensuse or other.
Thanks in advance
Ettore Marchetti
Comment 1 Mike Ladwig 2008-01-18 11:28:35 UTC
I'm pretty sure this is related to yesterday's xorg-x11-Xnest update, because the same thing happened here.  Anyone know how to backout that patch?
Comment 2 Stefan Dirsch 2008-01-18 12:54:02 UTC
Can you still reproduce this issue when starting Xnest/Xephyr with option 
"-extension MIT-SHM" ? 

If you can't eclipse/Java suffers from the same bug as xine-ui <= 0.99.4 (Bug #353529) and vlc 0.8.6d (Bug #354615).
Comment 3 Stefan Dirsch 2008-01-18 14:06:48 UTC
>From: Mike <mladwig@comcast.net>
>To: sndirsch@novell.com
>Subject: [Bug 354593] eclipse does not start - after opensuse 10.3 update
>Date: Fri, 18 Jan 2008 08:10:29 -0500
>
>I don't use Xnest/Xephyr (at least not knowingly) -- just the normal xorg
>server.   I don't know how to respond to this request, but if you tell me
>I'll try.

Xnest -extension MIT-SHM :1 & sleep 1; DISPLAY=:1 twm
< press left mouse button --> Xterm >
run 'eclipse'

>Is there a way to back out the patch?  I don't want to have to wipe and
>reinstall over this, but I have to be able to work...

Install xorg-x11-server from your DVD.
Comment 4 Stefan Dirsch 2008-01-18 14:29:52 UTC
I can't reproduce this issue with eclipse 3.3, neither with Xnest (does not provide MIT-SHM extension) nor with Xephyr (which *does* provide MIT-SHM extension) on openSUSE 11.0 Alpha1 with all X.Org security patches applied.
Same applies to regular Xorg Xserver.
Comment 5 Stefan Dirsch 2008-01-18 14:31:29 UTC
Still waiting for feedback (see comment #2 and comment #3) by Mike.
Comment 6 Mike Ladwig 2008-01-18 15:26:10 UTC
I cannot reproduce the problem using Xnest.
Comment 7 Stefan Dirsch 2008-01-18 16:01:24 UTC
Xnest doesn't provide the MIT-SHM extension. Anyway, I now can reproduce the issue with Xephyr with MIT-SHM enabled on openSUSE 10.3. When disabling it (with "-extension MiT-SHM") eclipse works. This means that it's related to the same security patch as Bug #353529 and Bug #354615.
Comment 8 Stefan Dirsch 2008-01-18 18:15:55 UTC
I finally figured out that the problem does *not* occur on x86_64. Looks like it only occurs on i386.
Comment 9 Stefan Dirsch 2008-01-18 18:23:31 UTC
Luckily trivial Java programs (ATW Hello World example) are not affected. Java programs like jedit and Limewire work as well.
Comment 10 Stefan Dirsch 2008-01-18 21:32:10 UTC

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