Bug#351729: (no subject)

2006-02-08 Thread Michael Koch
severity 351729 minor
thanks


Hello Alexander,

> I believe the "bug" is resolved with this. Do you know a way to work around 
> this issue? I don't want to mount /home executable. Do I have an influence on 
> where those things are written to? Why does Eclipse write Shared Libraries 
> and so on to /home?

I don't call this "resolved", I call this "analyzed". The OSGi part of
Eclipse unpacks the native SWT libraries somewhere where it thinks it
cat load the library. It's not possible to load native libraries from
inside jars. So it writes them to a configuration site. The default
writable configuration site is in

$HOME/.eclipse/org.eclipse.platform_$(VERSION)/configuration

A solution to this solution would be to unpack the SWT jars and provide
them as a directory tree. We think about this for a longer time already.
Unfortunately it is not that easy to implement. I downgrade this to a
minor bug for now so we dont forget about it.


Cheers,
Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#351729: (no subject)

2006-02-08 Thread Alexander Bahlo
Am Mittwoch, 8. Februar 2006 15:59 schrieb Michael Koch:
> Can it be that you use an extra partition for /home and this partition
> is mounted with "noexec" ? You can easily check this with executing
> "mount" on the command line.

Yes, this is true. Of course, /home ought to be mounted read-only. I don't 
expect anything executable there which is not a virus.

Ok, I didn't expect that this has influence on mapping of a Shared Object and 
that it has the effect that ldd writes this library is not a dynamic 
executable.

I believe the "bug" is resolved with this. Do you know a way to work around 
this issue? I don't want to mount /home executable. Do I have an influence on 
where those things are written to? Why does Eclipse write Shared Libraries 
and so on to /home?

Regards,
Alexander.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#351729: (no subject)

2006-02-08 Thread Michael Koch
On Tue, Feb 07, 2006 at 01:35:33AM +0100, Alexander Bahlo wrote:
> Package: libswt3.1-gtk-jni
> Version: 3.1.1-8
> Subject: libswt3.1-gtk-jni: libswt-pi-gtk-3139.so cannot be mapped and 
> refuses Eclipse to start
> Severity: grave
> Justification: renders package unusable
> 
> When starting Eclipse, after showing the splash screen a small error
> window appears and refers to the log. Then, Eclipse quits. Unfortunately
> since I don't do other programming in Java this is the only thing I can
> tell at the moment.
> The following is the content of ~/workspace/.metadata/.log:
> 
> !SESSION 2006-02-06 20:10:15.997
> ---
> eclipse.buildId=M20050929-0840
> java.fullversion=GNU libgcj 4.0.3 20060121 (prerelease) (Debian
> 4.0.2-7j1)
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
> Command-line arguments:  -os linux -ws gtk -arch x86
> 
> !ENTRY org.eclipse.osgi 2006-02-06 20:10:18.931
> !MESSAGE Application error
> !STACK 1
> java.lang.UnsatisfiedLinkError:
> /home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.osgi/bundles/4/1/.cp/libswt-pi-gtk-3139.so:
> /home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.osgi/bundles/4/1/.cp/libswt-pi-gtk-3139.so:
> Fehler beim Mappen des Shared Objects: Die Operation ist nicht erlaubt

Can it be that you use an extra partition for /home and this partition
is mounted with "noexec" ? You can easily check this with executing
"mount" on the command line.


Cheers,
Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/



Bug#351729: (no subject)

2006-02-08 Thread Michael Koch
Hello Alexander,


After thinking a bit more about your problem and rereading your bug
report I more and more get the feeling that this is no Eclipse bug but
Eclipse triggers it.

The error message makes me suspicious:

Fehler beim Mappen des Shared Objects: Die Operation ist nicht erlaubt

(Error when mapping a shared object: this operation is not permitted.)

What kernel are you running? How much free memory do you have before
starting up Eclipse? How much memory (with swap) in total?


Cheers,
Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#351729: (no subject)

2006-02-07 Thread Michael Koch
retitle 351729 libswt-pi-gtk-3139.so cannot be mapped and refuses Eclipse to 
start
thanks


Give the bug report a real title.


Cheers,
Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#351729: (no subject)

2006-02-07 Thread Alexander Bahlo
Hello Michael,

Michael Koch schrub am Dienstag, 7. Februar 2006 10:37:
> ldd
> /home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.os
>gi/bundles/4/1/.cp/libswt-pi-gtk-3139.so

The following is the result:

$ ldd 
/home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.osgi/bundles/4/1/.cp/libswt-pi-gtk-3139.so
not a dynamic executable

BUT:

$ dlocate libswt-pi-gtk-3139.so
libswt3.1-gtk-jni: /usr/lib/jni/libswt-pi-gtk-3139.so

$ ldd /usr/lib/jni/libswt-pi-gtk-3139.so
linux-gate.so.1 =>  (0xe000)
libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb7c5b000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0xb7c57000)
libXtst.so.6 => /usr/X11R6/lib/libXtst.so.6 (0xb7c52000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7b1b000)
libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb7b05000)
libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb7a83000)
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0xb7a7f000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb7a76000)
libXi.so.6 => /usr/X11R6/lib/libXi.so.6 (0xb7a6e000)
libXinerama.so.1 => /usr/X11R6/lib/libXinerama.so.1 (0xb7a6b000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0xb7a5d000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0xb7991000)
libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb798a000)
libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb7953000)
libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb793a000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0xb790)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0xb78fc000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb78f7000)
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0xb7872000)
libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb7829000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7803000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb77f)
/lib/ld-linux.so.2 (0x8000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb77c)
libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb77b7000)
libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb7792000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7725000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7711000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb76eb000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb76cb000)

So, one could argue to remove the library under $HOME/.eclipse/
This doesn't solve the issue. Before filing the bug report I have
removed the content of ~/.eclipse and everything below and re-run
eclipse with the same, in the bug report stated issue.

Regards,
Alex.
-- 
Wie man sein Kind nicht nennen sollte: 
  Al Kohol 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#351729: (no subject)

2006-02-07 Thread Michael Koch
On Tue, Feb 07, 2006 at 01:35:33AM +0100, Alexander Bahlo wrote:
> Package: libswt3.1-gtk-jni
> Version: 3.1.1-8
> Subject: libswt3.1-gtk-jni: libswt-pi-gtk-3139.so cannot be mapped and 
> refuses Eclipse to start
> Severity: grave
> Justification: renders package unusable
> 
> When starting Eclipse, after showing the splash screen a small error
> window appears and refers to the log. Then, Eclipse quits. Unfortunately
> since I don't do other programming in Java this is the only thing I can
> tell at the moment.
> The following is the content of ~/workspace/.metadata/.log:
> 
> !SESSION 2006-02-06 20:10:15.997
> ---
> eclipse.buildId=M20050929-0840
> java.fullversion=GNU libgcj 4.0.3 20060121 (prerelease) (Debian
> 4.0.2-7j1)
> BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
> Command-line arguments:  -os linux -ws gtk -arch x86
> 
> !ENTRY org.eclipse.osgi 2006-02-06 20:10:18.931
> !MESSAGE Application error
> !STACK 1
> java.lang.UnsatisfiedLinkError:
> /home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.osgi/bundles/4/1/.cp/libswt-pi-gtk-3139.so:
> /home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.osgi/bundles/4/1/.cp/libswt-pi-gtk-3139.so:
> Fehler beim Mappen des Shared Objects: Die Operation ist nicht erlaubt

That is really strange. I cannot reproduce this here.

Can you please try to run ldd on libswt-pi-gtk-3139.so and look for
unresolved dependencies?

ldd 
/home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.osgi/bundles/4/1/.cp/libswt-pi-gtk-3139.so


Cheers,
Michael
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/



Bug#351729: (no subject)

2006-02-06 Thread Alexander Bahlo
Package: libswt3.1-gtk-jni
Version: 3.1.1-8
Subject: libswt3.1-gtk-jni: libswt-pi-gtk-3139.so cannot be mapped and refuses 
Eclipse to start
Severity: grave
Justification: renders package unusable

When starting Eclipse, after showing the splash screen a small error
window appears and refers to the log. Then, Eclipse quits. Unfortunately
since I don't do other programming in Java this is the only thing I can
tell at the moment.
The following is the content of ~/workspace/.metadata/.log:

!SESSION 2006-02-06 20:10:15.997
---
eclipse.buildId=M20050929-0840
java.fullversion=GNU libgcj 4.0.3 20060121 (prerelease) (Debian
4.0.2-7j1)
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=de_DE
Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY org.eclipse.osgi 2006-02-06 20:10:18.931
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError:
/home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.osgi/bundles/4/1/.cp/libswt-pi-gtk-3139.so:
/home/alex/.eclipse/org.eclipse.platform_3.1.1/configuration/org.eclipse.osgi/bundles/4/1/.cp/libswt-pi-gtk-3139.so:
Fehler beim Mappen des Shared Objects: Die Operation ist nicht erlaubt
   at java.lang.Runtime._load(java.lang.String, boolean) 
(/usr/lib/libgcj.so.6.0.0)
   at java.lang.Runtime.loadLibrary(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
   at java.lang.System.loadLibrary(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
   at org.eclipse.swt.internal.Library.loadLibrary(java.lang.String) (Unknown 
Source)
   at org.eclipse.swt.internal.gtk.OS.() (Unknown Source)
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
   at org.eclipse.swt.internal.Converter.wcsToMbcs(java.lang.String, char[], 
boolean) (Unknown Source)
   at org.eclipse.swt.internal.Converter.wcsToMbcs(java.lang.String, 
java.lang.String, boolean) (Unknown Source)
   at org.eclipse.swt.widgets.Display.() (Unknown Source)
   at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
   at org.eclipse.ui.internal.Workbench.createDisplay() (Unknown Source)
   at org.eclipse.ui.PlatformUI.createDisplay() (Unknown Source)
   at org.eclipse.ui.internal.ide.IDEApplication.createDisplay() (Unknown 
Source)
   at org.eclipse.ui.internal.ide.IDEApplication.run(java.lang.Object) (Unknown 
Source)
   at 
org.eclipse.core.internal.runtime.PlatformActivator$1.run(java.lang.Object) 
(Unknown Source)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lang.Object) 
(Unknown Source)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lang.String[], 
java.lang.Runnable) (Unknown Source)
   at java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) 
(/usr/lib/libgcj.so.6.0.0)
   at org.eclipse.core.launcher.Main.invokeFramework(java.lang.String[], 
java.net.URL[]) (Unknown Source)
   at org.eclipse.core.launcher.Main.basicRun(java.lang.String[]) (Unknown 
Source)
   at org.eclipse.core.launcher.Main.run(java.lang.String[]) (Unknown Source)
   at org.eclipse.core.launcher.Main.main(java.lang.String[]) (Unknown Source)
   at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)


-- System Information:
Debian Release: testing/unstable
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages libswt3.1-gtk-jni depends on:
ii  libatk1.0-0               1.10.3-1       The ATK accessibility toolkit
ii  libc6                     2.3.5-12.1     GNU C Library: Shared libraries an
ii  libcairo2                 1.0.2-3        The Cairo 2D vector graphics libra
ii  libgcc1                   1:4.0.2-8      GCC support library
ii  libgcj6-awt               4.0.2-7j1      AWT peer runtime libraries for use
ii  libglib2.0-0              2.8.6-1        The GLib library of C routines
ii  libgnome2-0               2.12.0.1-5     The GNOME 2 library - runtime file
ii  libgnomeui-0              2.12.0-2       The GNOME 2 libraries (User Interf
ii  libgnomevfs2-0            2.12.2-5       GNOME virtual file-system (runtime
ii  libgtk2.0-0               2.8.10-1       The GTK+ graphical user interface 
ii  libstdc++6                4.0.2-8        The GNU Standard C++ Library v3
ii  libswt3.1-gtk-java        3.1.1-8        Fast and rich GUI toolkit for Java
ii  libxtst6                  6.9.0.dfsg.1-4 X Window System event recording an

libswt3.1-gtk-jni recommends no packages.

-- no debconf information