| Summary: | [Widgets] [GTK2.18] JVM crash when call Control.moveAbove(Control control) | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Ryan Xu <xuruoyu1979> | ||||||||||
| Component: | SWT | Assignee: | Lakshmi P Shanmugam <lshanmug> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | eclipse.felipe, martin.gutschelhofer, mober.at+eclipse, remy.suen, Silenio_Quarti | ||||||||||
| Version: | 3.5.2 | Flags: | eclipse.felipe:
review+
Silenio_Quarti: review+ |
||||||||||
| Target Milestone: | 3.6.1 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux | ||||||||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=287307 | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Ryan Xu
Created attachment 174940 [details]
A snippet can reproduce this issue
This snippet can reproduce this issue under ubuntu 10.04 (GTK+ 2.20.1) with eclipse >= 3.5.2
Created attachment 174942 [details] The log file of JVM From the log file of JVM, the exception happend in the native call gdk_window_restack, this function call is added after eclipse 3.5.2(tag 3557). See bug 287307. Created attachment 174943 [details]
A simple patch of moveAbove()
Add one line to detect if the sibling control is the same control.
Lakshmi, do you have GTK 2.18 ? Can you confirm the crash and release fix ? It looks pretty easy. Created attachment 174982 [details]
Patch
I can reproduce the crash on my machine.
The patch prevents the crash.
Added similar check in Control.moveBelow() too, though it doesn't crash it'll avoid the call to setZOrder().
CQ:WIND00223995 Fixed in HEAD > 20100726 . (In reply to comment #7) > Fixed in HEAD > 20100726 Hi,Lakshmi Do we have any plan to backport this fix to 3.6? Regards Hi Felipe, can this go for 3.6.1? Yes Fixed in 3.6.1 branch. |