Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 153176 - Eclipse crash w/ noexec-mounted /home
Summary: Eclipse crash w/ noexec-mounted /home
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Development Tools Team
Depends on:
Reported: 2006-10-28 13:34 UTC by David Saro
Modified: 2008-03-16 23:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description David Saro 2006-10-28 13:34:00 UTC
User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.2 (like Gecko)
Build Identifier: 

My Eclipse Crash with the message that I should look in the 
~/workspace/.metadata/.log for more Information. The content I attached below.

Many hours ago ;-) I located the Problem. The standard configuration of 
mountpoints with no specification  seems to be noexec. This is a good thing 
against unintentional execution in my home directory.
Now I must change this for Eclipse and it works fine.

I don't know if native code must execute in my home directoy, but if there 
another way I would prefered it.


Reproducible: Always

Steps to Reproduce:
1.Start Eclipse 3.2.1

Actual Results:  
My Eclipse Crash with the message that I should look in the 
~/workspace/.metadata/.log for more Information. The content I attached below.

Expected Results:  
Eclipse should start normally.

Content of .log

java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY org.eclipse.osgi 2 1 2006-10-28 15:50:10.530
!MESSAGE NLS missing message: fileInitializer_missingFileName in: 

!ENTRY org.eclipse.osgi 4 0 2006-10-28 15:50:11.231
!MESSAGE Application error
java.lang.UnsatisfiedLinkError: /home/pose/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/55/1/.cp/ /home/pose/.eclipse/org.eclipse.platform_3.2.0/configuration/org.eclipse.osgi/bundles/55/1/.cp/ 
failed to map segment from shared object: Operation not permitted
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(
	at java.lang.ClassLoader.loadLibrary(
	at java.lang.Runtime.loadLibrary0(
	at java.lang.System.loadLibrary(
	at org.eclipse.swt.internal.Library.loadLibrary(
	at org.eclipse.swt.internal.gtk.OS.<clinit>(
	at org.eclipse.swt.internal.Converter.wcsToMbcs(
	at org.eclipse.swt.internal.Converter.wcsToMbcs(
	at org.eclipse.swt.widgets.Display.<clinit>(
	at org.eclipse.ui.internal.Workbench.createDisplay(
	at org.eclipse.ui.PlatformUI.createDisplay(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.lang.reflect.Method.invoke(
	at org.eclipse.core.launcher.Main.invokeFramework(
	at org.eclipse.core.launcher.Main.basicRun(
	at org.eclipse.core.launcher.Main.main(
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2006-10-28 15:30:39 UTC
/home mounted noexec?
Comment 2 David Saro 2006-10-28 16:10:29 UTC
(In reply to comment #1)
> /home mounted noexec?

Yes. I have a seperatly partition for /home.
When in the /etc/fstab the option "exec" is not present, eclipse don't start, because the standard configuration is noexec.
I think many people have a seperatly partition for /home. And I think all of these can't start eclipse in this Version, until they don't change the fstab configuration.

Here the definition from the manpage:

noexec - Do  not allow direct execution of any binaries on the mounted file system.

Eclipse is almost written in Java, but a little part of it is written in a OS dependent language. Because that Eclipse means:
        failed to map segment from shared object: Operation not permitted
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)

Eclipse makes a copy of the in the home directory. I don't know why.
I think Eclipse try to execute native code in the home directory.

But this is not permited in the standard configuration.

You know what I mean?
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-10-28 16:16:49 UTC
> The standard configuration of mountpoints with no specification  seems to 
> to be noexec

No, not really.

Not a Gentoo-specific issue, if you think it's a bug, then report it upstream.
Comment 4 Carsten Lohrke (RETIRED) gentoo-dev 2006-10-28 16:39:40 UTC
David: Uh, I should actually read your bug report, instead just having a look at the error output. Didn't realize that you found the problem already. :)

For Eclipse the problem is that it consists of bunch of jars and it can't load the libraries from inside of them. Don't know if Eclipse can be configured to pick up the libraries, if they were installed plain in the first place.
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2006-10-28 16:40:56 UTC
Like to hear maintainers voice. :)
Comment 6 Josh Nichols (RETIRED) gentoo-dev 2006-10-30 13:00:33 UTC
This certainly looks like an upstream issue. Could you please file a bug upstream, and post a reference to it on this bug?

After that, I can pass it along linux-distro mailing list for Eclipse (where we work on maintaining Eclipse on the various distros), as this is likely to be present on other distributions as well.
Comment 7 David Saro 2006-10-30 15:08:38 UTC

now I see that is already posted a bug like this on the Eclipse Bugzilla.

It seems that the eclipse project is not interested to change that.
Comment 8 Josh Nichols (RETIRED) gentoo-dev 2006-11-06 05:48:04 UTC
You may want to open a feature request, ie for a way to use eclipse with noexec mounted home dir, and make reference to that bug.
Comment 9 Jean-Noël Rivasseau (RETIRED) gentoo-dev 2008-03-11 09:06:46 UTC
Closing, as it's an upstream problem. You may want to check Eclipse-3.3 but I believe the problem is still there since you mentioned upstream was not interested in implementing this feature.
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2008-03-16 23:08:41 UTC
(In reply to comment #9)
> Closing, as it's an upstream problem.

Then resolve it as that please.
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2008-03-16 23:09:19 UTC
Suffices when users resolve bug reports incorrectly.