| Summary: | SIGSEGV in _G_OBJECT_TYPE during moveAbove | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Alex Bradley <a.bradley> | ||||||||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||||||||
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> | ||||||||||
| Severity: | normal | ||||||||||||
| Priority: | P3 | CC: | bokowski, john.arthorne, pinnamur | ||||||||||
| Version: | 3.6 | Flags: | bokowski:
review+
john.arthorne: review+ |
||||||||||
| Target Milestone: | 3.6 RC4 | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Linux | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Alex Bradley
Created attachment 170726 [details]
Test case that demonstrates the bug.
Created attachment 170727 [details]
Sample JVM crash report.
Created attachment 170740 [details]
Patch
This is bad. SWT is incorrectly trying to get the accesibility for the disposed label, due to which native crash is seen. The fix is to make sure SWT does not remove relation when the label control is disposed.
Silenio, I believe this is an important fix that should be released. Please review and post your comments.
Created attachment 170810 [details]
final patch
The patch above avoided the crash but left a relation to the disposed control.
This patch removes the relation before the widget is disposed.
Boris/John please review this for RC4. Reviewed together with Silenio. We think there might be a similar bug in the Cocoa code, but we'll treat it separately because it might not cause a crash. Based on review with Silenio and John. I confirmed that cocoa/carbon (which have similar code in Control.release(boolean) do not crash with this test case. The difference is that, in cocoa/carbon, the control does not have a reference to the label. I will open a bug to considered making similar changes in cocoa/carbon post 3.6. Fixed > 20100602 |