| Summary: | SWT segfaults on throwing exception from a KeyEvent handler | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | mik01aj <mik01aj> | ||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||
| Status: | RESOLVED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | lshanmug, pinnamur, Silenio_Quarti | ||||
| Version: | 4.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Please attach the dump file. Created attachment 174949 [details]
error dump
This looks similar to bug#285749 Crash in pango_layout_new() because pending exception in callin. *** This bug has been marked as a duplicate of bug 322222 *** |
Build Identifier: M20090917-0800 public class A { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); List list = new List(shell, SWT.BORDER); list.addKeyListener(new KeyListener() { @Override public void keyReleased(KeyEvent e) { System.out.println("released"); throw new RuntimeException(); } @Override public void keyPressed(KeyEvent e) { System.out.println("pressed"); throw new RuntimeException(); } }); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } } Reproducible: Always Steps to Reproduce: 1. Run the above code 2. Press any key