Illegal instruction (SIGILL) occured!
Posted: Wed Apr 30, 2008 4:33 am
Hi all
I am having trouble compiling Linuxsampler and the respective libs and tools on a Kubuntu 7.10
Everything runs well, but when I start up Qsampler and load an instrument, the backend crashes with the below message.
I know that this illegal instruction comes from compiling with the wrong options for my CPU (which is according do /proc/cpuinfo a
vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 1343.222
)
Now first I tried to tell the config that it should compile for that CPU,
CXXFLAGS="-O3 -march=k6 -ffast-math -fomit-frame-pointer -funroll-loops" in the configure line in the debian/rules file and then compiling and building with
dpkg-buildpackage -rfakeroot -b exactly how you specified in the debian tutorial.
Unfortunately, this still produces the illegal instructions, so I removed the -march=k6 directive totally, including the other 3 (-ffast-math -fomit-frame-pointer -funroll-loops), leaving it with just -O3 but that produces the same result.
Could it be that the recompiling with the changed debian/rules file does not work, since I have to do a clean or autoclean? (since the config and some files have been written already)
If I don't specify any architecture, it should just assume I486 right? Unoptimized code, running on all that is I486 (or I386).
Would be glad for any pointers, can't wait to start fiddling around with linuxsampler.
Markus
---------crash log----------------------------------------
LinuxSampler 0.5.1
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2007 Christian Schoenebeck
Detected features: MMX
Creating Sampler...OK
Registered sampler engines: 'GIG'
Registered MIDI input drivers: ALSA
Registered audio output drivers: ALSA,JACK
Loading instrument editor plugins...OK
Registered instrument editors:
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed.
LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
Starting disk thread...OK
Scheduling '/home/browny/gig/Pipe Organ Full.gig' (Index=0) to be loaded in background (if not loaded yet).
Loading gig file '/home/browny/gig/Pipe Organ Full.gig'...OK
Loading gig instrument ('/home/browny/gig/Pipe Organ Full.gig',0)...>>> FATAL ERROR: Illegal instruction (SIGILL) occured! <<<
Showing stack trace...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Attaching to program: /usr/bin/linuxsampler, process 10840
Reading symbols from /usr/lib/linuxsampler/liblinuxsampler.so.1...done.
Loaded symbols for /usr/lib/linuxsampler/liblinuxsampler.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1213688112 (LWP 10840)]
[New Thread -1480688752 (LWP 10853)]
[New Thread -1481217136 (LWP 10852)]
[New Thread -1224795248 (LWP 10850)]
[New Thread -1216402544 (LWP 10849)]
[New Thread -1213690992 (LWP 10841)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /usr/lib/libgig.so.6...done.
Loaded symbols for /usr/lib/libgig.so.6
Reading symbols from /lib/libuuid.so.1...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /usr/lib/libjack-0.100.0.so.0...done.
Loaded symbols for /usr/lib/libjack-0.100.0.so.0
Reading symbols from /usr/lib/libasound.so.2...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0xffffe410 in __kernel_vsyscall ()
(gdb) Hangup detected on fd 0
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /usr/bin/linuxsampler, process 10840
Killing LinuxSampler...
Killed
I am having trouble compiling Linuxsampler and the respective libs and tools on a Kubuntu 7.10
Everything runs well, but when I start up Qsampler and load an instrument, the backend crashes with the below message.
I know that this illegal instruction comes from compiling with the wrong options for my CPU (which is according do /proc/cpuinfo a
vendor_id : AuthenticAMD
cpu family : 6
model : 4
model name : AMD Athlon(tm) Processor
stepping : 2
cpu MHz : 1343.222
)
Now first I tried to tell the config that it should compile for that CPU,
CXXFLAGS="-O3 -march=k6 -ffast-math -fomit-frame-pointer -funroll-loops" in the configure line in the debian/rules file and then compiling and building with
dpkg-buildpackage -rfakeroot -b exactly how you specified in the debian tutorial.
Unfortunately, this still produces the illegal instructions, so I removed the -march=k6 directive totally, including the other 3 (-ffast-math -fomit-frame-pointer -funroll-loops), leaving it with just -O3 but that produces the same result.
Could it be that the recompiling with the changed debian/rules file does not work, since I have to do a clean or autoclean? (since the config and some files have been written already)
If I don't specify any architecture, it should just assume I486 right? Unoptimized code, running on all that is I486 (or I386).
Would be glad for any pointers, can't wait to start fiddling around with linuxsampler.
Markus
---------crash log----------------------------------------
LinuxSampler 0.5.1
Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck
Copyright (C) 2005-2007 Christian Schoenebeck
Detected features: MMX
Creating Sampler...OK
Registered sampler engines: 'GIG'
Registered MIDI input drivers: ALSA
Registered audio output drivers: ALSA,JACK
Loading instrument editor plugins...OK
Registered instrument editors:
Starting LSCP network server (0.0.0.0:8888)...OK
LinuxSampler initialization completed.
LSCPServer: Client connection established on socket:4.
LSCPServer: Client connection established on socket:5.
Starting disk thread...OK
Scheduling '/home/browny/gig/Pipe Organ Full.gig' (Index=0) to be loaded in background (if not loaded yet).
Loading gig file '/home/browny/gig/Pipe Organ Full.gig'...OK
Loading gig instrument ('/home/browny/gig/Pipe Organ Full.gig',0)...>>> FATAL ERROR: Illegal instruction (SIGILL) occured! <<<
Showing stack trace...
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
Attaching to program: /usr/bin/linuxsampler, process 10840
Reading symbols from /usr/lib/linuxsampler/liblinuxsampler.so.1...done.
Loaded symbols for /usr/lib/linuxsampler/liblinuxsampler.so.1
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
[Thread debugging using libthread_db enabled]
[New Thread -1213688112 (LWP 10840)]
[New Thread -1480688752 (LWP 10853)]
[New Thread -1481217136 (LWP 10852)]
[New Thread -1224795248 (LWP 10850)]
[New Thread -1216402544 (LWP 10849)]
[New Thread -1213690992 (LWP 10841)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /usr/lib/libgig.so.6...done.
Loaded symbols for /usr/lib/libgig.so.6
Reading symbols from /lib/libuuid.so.1...done.
Loaded symbols for /lib/libuuid.so.1
Reading symbols from /usr/lib/libjack-0.100.0.so.0...done.
Loaded symbols for /usr/lib/libjack-0.100.0.so.0
Reading symbols from /usr/lib/libasound.so.2...done.
Loaded symbols for /usr/lib/libasound.so.2
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
0xffffe410 in __kernel_vsyscall ()
(gdb) Hangup detected on fd 0
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /usr/bin/linuxsampler, process 10840
Killing LinuxSampler...
Killed