Community
Participate
Working Groups
Build Identifier: I20100608-0911 Eclipse 3.6: If you try to import a "File System" into a project by copy/pasting a filepath(e.g.: /home/directory/file.txt) first in the From: text field and then also the same path in the Browse dialogue' s Location: text field, Eclipse will crash without any warning or error after clicking the OK button. Reproducible: Always Steps to Reproduce: 1. Create a project(e.g. a java project) 2. Do, Import -> General -> File System 3. Copy/Paste a filepath, e.g.: /home/directory/file.txt (not a directorypath) to the "From:" text field 4. Click Browse 5. paste the same filepath to the "Location:" text field 6. click OK -> Eclipse crashes
Created attachment 176758 [details] stacktrace produced with gdb
Created attachment 176762 [details] Screenshot of "Import File System" dialog CQ:WIND00226880 The trick here is that our user pasted a *file name* where the dialog expected a *folder name* - see attached screenshot. I reproduced this on RHEL 5.3 (Tikanga) x86_64. rpm -q shows: gtk2-2.10.4-20.el5 gtk+-1.2.10-56.el5 glib2-2.12.3-2.fc6 glib-1.2.10-20.el5 Eclipse dies with a SIGABRT, not even a hs_err*.log is created.
The same problem can be reproduced in the "Select Workspace" dialog: 1. Launch Eclipse 2. As workspace location, paste "/folk/mober/WRTest/bar.txt" 3. Press Browse button 4. In "Browse for folder" location field, paste "/folk/mober/WRTest/bar.txt" 5. Press OK --> Eclipse crashes with SIGABRT. I noticed that the crash only occurs when the "browse for folder" dialog is already initialized with a file name instead of a folder (step 2). So while GTK may be the culprit for the crash, it may be easy to fix the issue on the SWT / Eclipse side by ensuring that the "browse for folder" dialog is always initialized with a valid folder and never a file name.
Created attachment 176763 [details] A slightly better backtrace Here is a backtrace I got on RHEL5 with Eclipse SDK M20100728-0800 as follows: /jre/1.5.0_11/bin/java -jar org.eclipse.equinox.launcher_1.1.0.v20100507.jar gdb /jre/1.5.0_11/bin/java 4925 (gdb) cont Program received signal SIGABRT, Aborted. 0xffffe410 in __kernel_vsyscall () (gdb) bt
On Ubuntu 9.04, I could not see this issue - pressing OK with the filename pasted just does nothing. Our Ubuntu host has libgtk2.0-bin version 2.16.1-0ubuntu2 I still think though it would be prudent to ensure that a "Select folder" dialog is not initialized with a file name.
Hi All :) I just reproduced this using Eclipse 3.7, can we get a technical comment from platform.swt about the issue, is this an issue you can acknowledge, what's the time frame for a fix, how can we best help? TIA, Ciao, hh
Arun, Bogdan, can you guys reproduce this problem ?
I tried to reproduce this on RHEL 6 (32) and Ubuntu 11 (64) with no dice. I'll try to track down a RHEL5 64 bit machine to test on.
(In reply to comment #8) > I tried to reproduce this on RHEL 6 (32) and Ubuntu 11 (64) with no dice. I'll > try to track down a RHEL5 64 bit machine to test on. Thanks Boghdan! :) I've seen this on my RH5.3(64), newer system might not react so drastically to the problem... Helmut
I can't reproduce this issue.