Bug 294068 - Eclipse does not start from directory containing a hash sign (#) on Linux
Summary: Eclipse does not start from directory containing a hash sign (#) on Linux
Status: CLOSED DUPLICATE of bug 3109
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 4.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-03 09:51 EST by Josef CLA
Modified: 2009-11-03 11:17 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josef CLA 2009-11-03 09:51:18 EST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.15) Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15
Build Identifier: 

I've downloaded the RCP version of the latest Eclipse (Galileo SR1) for Linux and extracted it to /tmp/eclipse. Runs without problems.

Afterwards I've moved the folder to /tmp/e#clipse just for the heck of it. Eclipse now refuses to start with the following message:

JVM terminated. Exit code=13
-Dosgi.requiredJavaVersion=1.5
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Djava.class.path=/tmp/e#clipse/plugins
...

Within this message the path is still correct. However, using strace(1) I found out that it tries to stat/open files in the directory with the hash sign removed. The first such occurrence is when it looks for the file .eclipseproduct.

stat64("/tmp/eclipse/.eclipseproduct", 0xbfdde978) = -1 ENOENT (No such file or directory)

Interestingly, Eclipse seems to work well when the path is modified in other ways such as writing it in cyrillic letters (/tmp/еклипсе), so it doesn't seem to be related to the bug described at http://bugs.debian.org/552334. I wonder what sort of sanitising method might be erroneously called on the path, e.g. in the context of safe shell quoting, to let the removal of the hash sign happen.

Reproducible: Always

Steps to Reproduce:
1. Run Eclipse from directory without hash sign
2. Run Eclipse from directory with hash sign
3. Profit!
Comment 1 DJ Houghton CLA 2009-11-03 11:17:47 EST
Known issue. Listed in the README.

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