Tux Guitar

Help

  Forums : Help
Subject Segfault on Gentoo/PPC



Author Message
kr1st0
Post: Dec 16th 2008 at 11:41 PM

Hi, I'd love to try tuxguitar on my machine, but I get a segmentation fault both with the precompiled archive and with the binaries generated via ebuild in java-overlay.

Thank for any help,
M.

####
Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
Handler1=0FAEFE00 Handler2=0FA21BC0
R0=00000000 R1=48850B38 R2=48859930 R3=48850B40
R4=00000000 R5=00000008 R6=48850B68 R7=00000020
R8=FFFFFFC0 R9=FFFFFFE0 R10=00000000 R11=0FE8D344
R12=48002484 R13=1007DF00 R14=105AFC00 R15=0E3C4550
R16=0E44F2CC R17=105AF868 R18=48851010 R19=1043BC28
R20=00000000 R21=00000000 R22=00000000 R23=48850BB8
R24=48850B40 R25=105B8600 R26=00000108 R27=0EBB8510
R28=48850BB8 R29=00000100 R30=0EC09E14 R31=00000001
NIP=0E9C8F40 MSR=0200D032 ORIG_GPR3=00000056 CTR=00000000
LINK=0E9C8F40 XER=2000000B CCR=28002428 MQ=00000000
TRAP=00000300 DAR=00000134 dsisr=40000000 RESULT=00000000
Module=/usr/lib/libgtk-x11-2.0.so.0
Module_base_address=0E7DF000
Target=2_40_20081105_025433_bHdSMr (Linux 2.6.24-gentoo-r3)
CPU=ppc (1 logical CPUs) (0x3f0db000 RAM)
----------- Stack Backtrace -----------
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9prt24.so [0xfa15054]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfaeed90]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfaefb54]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9prt24.so [0xfa234d4]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfaefee0]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9prt24.so [0xfa21d00]
[0x100350]
[(nil)]
/usr/lib/libgtk-x11-2.0.so.0 [0xe9cddcc]
/usr/lib/libgtk-x11-2.0.so.0 [0xe9ce370]
/usr/lib/libgtk-x11-2.0.so.0 [0xe9ce720]
/usr/lib/libgtk-x11-2.0.so.0 [0xe9ce934]
/usr/lib/libgtk-x11-2.0.so.0 [0xe9ce500]
/usr/lib/libgtk-x11-2.0.so.0 [0xe9ce720]
/usr/lib/libgtk-x11-2.0.so.0 [0xe9ce934]
/usr/lib/libgtk-x11-2.0.so.0(gtk_rc_reparse_all_for_settings+0xe4) [0xe9ced14]
/usr/lib/libgtk-x11-2.0.so.0(gtk_settings_get_for_screen+0xf0) [0xe9ed90c]
/usr/lib/libgtk-x11-2.0.so.0 [0xea02a74]
/usr/lib/libgobject-2.0.so.0(g_type_create_instance+0x560) [0xe42c90c]
/usr/lib/libgobject-2.0.so.0 [0xe410764]
/usr/lib/libgobject-2.0.so.0(g_object_newv+0x250) [0xe40ea7c]
/usr/lib/libgobject-2.0.so.0(g_object_new_valist+0x27c) [0xe40f4f0]
/usr/lib/libgobject-2.0.so.0(g_object_new+0xa8) [0xe40f74c]
/usr/lib/libgtk-x11-2.0.so.0(gtk_style_new+0x30) [0xea02704]
/usr/lib/libgtk-x11-2.0.so.0(gtk_widget_get_default_style+0x50) [0xeab62a8]
/usr/lib/libgtk-x11-2.0.so.0 [0xeab636c]
/usr/lib/libgobject-2.0.so.0(g_type_create_instance+0x3f8) [0xe42c7a4]
/usr/lib/libgobject-2.0.so.0 [0xe410764]
/usr/lib/libgobject-2.0.so.0(g_object_newv+0x250) [0xe40ea7c]
/usr/lib/libgobject-2.0.so.0(g_object_new_valist+0x27c) [0xe40f4f0]
/usr/lib/libgobject-2.0.so.0(g_object_new+0xa8) [0xe40f74c]
/usr/lib/libgtk-x11-2.0.so.0(gtk_window_new+0x40) [0xeacf070]
/usr/lib/libswt-pi-gtk-3347.so(Java_org_eclipse_swt_internal_gtk_OS__1gtk_1window_1new+0x28) [0xec5e81c]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb0a2f0]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb048a8]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb04748]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9prt24.so [0xfa234d4]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb0495c]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb066c4]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb00ed0]
/usr/lib/jvm/ibm-jdk-bin-1.6/bin/java [0x10001cd0]
/lib/libpthread.so.0 [0xffccac0]
/lib/libc.so.6(clone+0x84) [0xfee3ef0]
---------------------------------------
JVMDUMP006I Elaborazione evento dump "gpf", dettaglio "" - Attendere.
JVMDUMP007I JVM richiede il dump di System utilizzando '/home/mik/core.20081217.003209.19718.0001.dmp'
JVMDUMP010I Dump System scritto su /home/mik/core.20081217.003209.19718.0001.dmp
JVMDUMP007I JVM richiede il dump di Snap utilizzando '/home/mik/Snap.20081217.003209.19718.0002.trc'
JVMDUMP010I Dump Snap scritto su /home/mik/Snap.20081217.003209.19718.0002.trc
JVMDUMP007I JVM richiede il dump di Java utilizzando '/home/mik/javacore.20081217.003209.19718.0003.txt'
JVMDUMP010I Dump Java scritto su /home/mik/javacore.20081217.003209.19718.0003.txt
JVMDUMP013I Evento dump elaborato "gpf", dettaglio "".


Back to Top
 
kr1st0
Post: Dec 16th 2008 at 11:43 PM

JDK version 1.6.0.3 (you could guess from the log :P)
Tuxguitar version 1.0


Back to Top
 
Julian
Post: Dec 19th 2008 at 10:35 AM

Hi, it's very hard to understand what happen there...
it seems that SWT can't make a new window
but i don't know if the problem is on SWT, or if it's on GTK.
Can you try replace SWT files for an older version ? ( 3.2 )


Back to Top
 
kr1st0
Post: Dec 21st 2008 at 1:01 AM

I tried to upgrade to 3.4, but if I unmerge 3.3.1.1 tuxguitar simply tells me there's no swt package installed.
Don't know exactly if there's a way to switch swt version with java-config.
I'll try 3.2 as soon as possible.


Back to Top
 
Julian
Post: Dec 21st 2008 at 11:09 AM

Try edit the launcher script /usr/bin/tuxguitar if you got it from your distribudion.. or TuxGuitar-Folder/tuxguitar if you got official version..
see on the script, where "swt.jar" is used.. make sure the path is pointing to your new 3.4 version.


Back to Top
 
kr1st0
Post: Dec 21st 2008 at 12:58 PM

Ok, edited /usr/share/tuxguitar/package.env so that it points to swt-3.4 instead of swt-3, now it gives the same error of the first post.
Later I'll try 3.2

Thanks,
M.

PS: what if it's GTK's fault?


Back to Top
 
kr1st0
Post: Jan 5th 2009 at 11:09 PM

This is what happens with swt 3.2

Exception in thread "main" java.lang.NoClassDefFoundError: org.eclipse.swt.widgets.Layout
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at org.herac.tuxguitar.gui.TGMain.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Layout
at java.net.URLClassLoader.findClass(URLClassLoader.java:419)
at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:320)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
... 4 more

Anyway, I installed it manually, so I could have made some mistakes...

M.


Back to Top
 
Julian
Post: Jan 6th 2009 at 11:33 AM

There is something wrong with this swt installation.
"java.lang.NoClassDefFoundError: org.eclipse.swt.widgets.Layout"
It is because swt not found.

make sure on the launcher script, that swt.jar is right setted at classpath.
make sure that the file exists, and it's not a "broken" link.


Back to Top
 
Julian
Post: Jan 7th 2009 at 10:46 AM

I'm thinking that maybe it's a jni headers problem.
you have IBM java, but maybe SWT native libraries was compiled with GCJ headers.
can you test install java from GCJ libraries and run tuxguitar with it ?


Back to Top
 
kr1st0
Post: Feb 2nd 2009 at 11:31 AM

You were right, there was a wrong CLASSPATH in swt-3.2 package.env.
Here is the output (which looks a lot like the former one)

Unhandled exception
Type=Segmentation error vmState=0x00000000
J9Generic_Signal_Number=00000004 Signal_Number=0000000b Error_Value=00000000 Signal_Code=00000001
Handler1=0FAEFE00 Handler2=0FA21BC0
R0=0EA4CF40 R1=48850B48 R2=48859930 R3=48850B50
R4=00000000 R5=00000018 R6=48850B68 R7=00000000
R8=48850B50 R9=1055A7D8 R10=00000000 R11=0FE8D344
R12=44002484 R13=1007DF00 R14=10551D00 R15=0E448550
R16=0E4D32CC R17=10551500 R18=48851020 R19=10147E28
R20=00000000 R21=00000000 R22=00000000 R23=48850BC8
R24=48850B50 R25=1055A7F8 R26=00000108 R27=0EC3C510
R28=48850BC8 R29=00000100 R30=0EC8DE14 R31=00000001
NIP=0EA4CF40 MSR=0200D032 ORIG_GPR3=00000059 CTR=0FE8D344
LINK=0EA4CF40 XER=2000000B CCR=24002488 MQ=00000000
TRAP=00000300 DAR=00000134 dsisr=40000000 RESULT=00000000
Module=/usr/lib/libgtk-x11-2.0.so.0
Module_base_address=0E863000
Target=2_40_20081105_025433_bHdSMr (Linux 2.6.24-gentoo-r3)
CPU=ppc (1 logical CPUs) (0x3f0db000 RAM)
----------- Stack Backtrace -----------
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9prt24.so [0xfa15054]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfaeed90]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfaefb54]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9prt24.so [0xfa234d4]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfaefee0]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9prt24.so [0xfa21d00]
[0x100350]
[(nil)]
/usr/lib/libgtk-x11-2.0.so.0 [0xea51dcc]
/usr/lib/libgtk-x11-2.0.so.0 [0xea52370]
/usr/lib/libgtk-x11-2.0.so.0 [0xea52720]
/usr/lib/libgtk-x11-2.0.so.0 [0xea52934]
/usr/lib/libgtk-x11-2.0.so.0 [0xea52500]
/usr/lib/libgtk-x11-2.0.so.0 [0xea52720]
/usr/lib/libgtk-x11-2.0.so.0 [0xea52934]
/usr/lib/libgtk-x11-2.0.so.0(gtk_rc_reparse_all_for_settings+0xe4) [0xea52d14]
/usr/lib/libgtk-x11-2.0.so.0(gtk_settings_get_for_screen+0xf0) [0xea7190c]
/usr/lib/libgtk-x11-2.0.so.0 [0xea86a74]
/usr/lib/libgobject-2.0.so.0(g_type_create_instance+0x560) [0xe4b090c]
/usr/lib/libgobject-2.0.so.0 [0xe494764]
/usr/lib/libgobject-2.0.so.0(g_object_newv+0x250) [0xe492a7c]
/usr/lib/libgobject-2.0.so.0(g_object_new_valist+0x27c) [0xe4934f0]
/usr/lib/libgobject-2.0.so.0(g_object_new+0xa8) [0xe49374c]
/usr/lib/libgtk-x11-2.0.so.0(gtk_style_new+0x30) [0xea86704]
/usr/lib/libgtk-x11-2.0.so.0(gtk_widget_get_default_style+0x50) [0xeb3a2a8]
/usr/lib/libgtk-x11-2.0.so.0 [0xeb3a36c]
/usr/lib/libgobject-2.0.so.0(g_type_create_instance+0x3f8) [0xe4b07a4]
/usr/lib/libgobject-2.0.so.0 [0xe494764]
/usr/lib/libgobject-2.0.so.0(g_object_newv+0x250) [0xe492a7c]
/usr/lib/libgobject-2.0.so.0(g_object_new_valist+0x27c) [0xe4934f0]
/usr/lib/libgobject-2.0.so.0(g_object_new+0xa8) [0xe49374c]
/usr/lib/libgtk-x11-2.0.so.0(gtk_window_new+0x40) [0xeb53070]
/usr/lib/libswt-pi-gtk-3236.so(Java_org_eclipse_swt_internal_gtk_OS__1gtk_1window_1new+0x14) [0xece48f0]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb0a2f0]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb048a8]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb04748]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9prt24.so [0xfa234d4]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb0495c]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb066c4]
/opt/ibm-jdk-bin-1.6.0.3/jre/lib/ppc/libj9vm24.so [0xfb00ed0]
/usr/lib/jvm/ibm-jdk-bin-1.6/bin/java [0x10001cd0]
/lib/libpthread.so.0 [0xffccac0]
/lib/libc.so.6(clone+0x84) [0xfee3ef0]
---------------------------------------
JVMDUMP006I Elaborazione evento dump "gpf", dettaglio "" - Attendere.
JVMDUMP007I JVM richiede il dump di System utilizzando '/home/mik/core.20090202.122641.3867.0001.dmp'
JVMDUMP010I Dump System scritto su /home/mik/core.20090202.122641.3867.0001.dmp
JVMDUMP007I JVM richiede il dump di Snap utilizzando '/home/mik/Snap.20090202.122641.3867.0002.trc'
JVMDUMP010I Dump Snap scritto su /home/mik/Snap.20090202.122641.3867.0002.trc
JVMDUMP007I JVM richiede il dump di Java utilizzando '/home/mik/javacore.20090202.122641.3867.0003.txt'
JVMDUMP010I Dump Java scritto su /home/mik/javacore.20090202.122641.3867.0003.txt
JVMDUMP013I Evento dump elaborato "gpf", dettaglio "".


Back to Top
 
kr1st0
Post: Feb 3rd 2009 at 2:51 PM

[quote]can you test install java from GCJ libraries and run tuxguitar with it ?[/quote]

How? (I'm sorry but I need a little more help here)


Back to Top
 
Julian
Post: Feb 3rd 2009 at 9:03 PM

GCJ, is a GNU Compiler for Java ( a GCC extension )
it also include an interpreter named "gij" (gnu interpreter for java)

and you can install it as a java alternative.
the problem is that i don't have idea about gentoo, so can't help at all about how install it.

under Debian (or derivated distributions) there is a virtual package
"java-gcj-compat" that install all dependencies ( gcj, libgcj, gij, etc.. )
so later you can run java apps with it.

on tuxguitar case if you have the default launcher (or if gentoo package have support for it)
you can do:

export JAVA_HOME=/usr/lib/jvm/java-gcj/jre
tuxguitar

and tuxguitar should start with GCJ.
to make sure about, you can exec "tuxguitar -i" that will show you the JVM (java virtual machine) used.

if the tuxguitar launcher of your package don't support JAVA_HOME env var, just try to edit it /usr/bin/tuxguitar with any text editor
and replace "java" command to "/where_gcj_java_is/java"


Back to Top
 
kr1st0
Post: Feb 4th 2009 at 2:21 AM

I know how to install gcj (it's a matter of USE flags in gcc), I wasn't sure about its use.
Thanks for the info, I'll test it tomorrow.

M.


Back to Top
 
kr1st0
Post: Feb 11th 2009 at 12:05 AM

Installing gcj-jdk got trickier than expected. I have a half messed up installation now, but your suggestions proved right: tuxguitar starts, but I can't see any icon/splashscreen/gfx

M.


Back to Top
 
Julian
Post: Feb 11th 2009 at 9:58 AM

I try to understand it..
let me see please.. does it start, but you don't see icons..
do you see those icons as "white rectangles" ???

If yes, the issue should be on the launcher script:

* make sure that "share/" folder is at classpath.

* and make sure that "tuxguitar.share.path" is setted:
-Dtuxguitar.share.path="/where_is/share/"


Back to Top
 
kr1st0
Post: Feb 12th 2009 at 1:38 AM

@Julian

exactly like that :)

share folder is in CLASSPATH in package.env, but I'm not sure were to add tuxguitar.share.path=/path: I tried in /usr/bin/tuxguitar but got no result.

BTW, menus are messed up too. Items appear as menuname.item (eg. file.open)

M.


Back to Top
 
Julian
Post: Feb 12th 2009 at 9:40 AM

> Items appear as menuname.item (eg. file.open)
Yes, these are the translation files that are missing.

It's all on share folder (icons, translations, plugins, etc).

> share folder is in CLASSPATH in package.env
Can you show me /usr/bin/tuxgutiar ?

Or, let me please now where are:
java (from GCJ)
swt.jar
libswt*.so
tuxguitar.jar
share/ (of tuxguitar, not of your GNU system)

with these paths, i can give you a command to run it.
something like:

java -cp tuxguitar.jar:/usr/share/swt.jar:share/ -Djava.library.path=/usr/lib/jni -Dtuxguitar.share.path=share/ org.herac.tuxguitar.gui.TGMain


Back to Top
 
shtrom
Post: Sep 27th 2009 at 10:46 PM

Just a randon thought. I'm having the same problem here (TuxGuitar 1.0 on a PPC Gentoo with ibm-jdk-bin 1.6.0.5), using TiMidity++ as the synthetizer. It works fine with the Java synthetizer, though.

Neither the Real Time Sequencer or TuxGuitar's internal one make any change when using TiMidity++. The part which makes me doubt is that I managed to make it work nice with TiMidity++ yesterday, but since then, using it repeatedly crash TuxGuitar with a very similar log.

Hint: As TuxGuitar wouldn't restart after changing the synthetizer, it is necessary to remove directory ~/,tuxguitar-1.0/ (or, I suppose, fiddle with the configuration files inside this directory, I couldn't be bothered).


Back to Top