Bug 177 - qsampler segfaults at startup
Summary: qsampler segfaults at startup
Status: CLOSED FIXED
Alias: None
Product: QSampler
Classification: Unclassified
Component: qsampler (show other bugs)
Version: SVN Trunk
Hardware: PC Linux
: P5 blocker
Assignee: Rui Nuno Capela
URL:
Depends on:
Blocks:
 
Reported: 2012-02-28 21:07 CET by Vit Kavan
Modified: 2013-05-31 20:38 CEST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vit Kavan 2012-02-28 21:07:26 CET
New installation of Gentoo (x86_64) with qsampler-9999 (0.2.2 behaves the same)

> qsampler 
Segmentation fault

> dmesg
[ 1867.753036] qsampler[26108] general protection ip:7f872fb2253b sp:7fffbd507200 error:0 in libQtGui.so.4.7.4[7f872f457000+a54000]

or 

qsampler[26111]: segfault at 2b0 ip 00007f9a4ff9353b sp 00007fff19d88cb0 error 4 in libQtGui.so.4.7.4[7f9a4f8c8000+a54000]
Comment 1 Vit Kavan 2012-04-05 22:08:19 CEST
hi, is there any progress?
Comment 2 audio-mobster 2012-04-11 19:23:40 CEST
I compiled qsampler with debug USE flag, all I can give you is this:


qsampler -v
Warning: no translation found for 'de_DE' locale: /usr/share/locale/qsampler_de_DE.qm
Qt: 4.8.1
libgig: 3.3.0
liblscp: 0.5.6
Qsampler: 0.2.2

 Reading symbols from /usr/bin/qsampler...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/qsampler 
[Thread debugging using libthread_db enabled]
Warning: no translation found for 'de_DE' locale: /usr/share/locale/qsampler_de_DE.qm
[New Thread 0x7fffecbd5700 (LWP 31593)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff73b6b88 in QAbstractItemView::currentIndex() const ()
   from /usr/lib64/qt4/libQtGui.so.4


strace qsampler -s

recvfrom(6, 0x207a1a4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
recvfrom(6, 0x207a1a4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
sendto(10, "LIST MIDI_INSTRUMENT_MAPS\r\n", 27, 0, NULL, 0) = 27
select(11, [10], NULL, NULL, {1, 0})    = 1 (in [10], left {0, 999996})
recvfrom(10, "\r\n", 1023, 0, NULL, NULL) = 2
open("/home/uli/.cursors/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/uli/.cursors/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/uli/.icons/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/uli/.icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cursors/xorg-x11/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cursors/xorg-x11/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cursors/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cursors/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/icons/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/pixmaps/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/pixmaps/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/cursors/xorg-x11/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/cursors/xorg-x11/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/cursors/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/cursors/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/xorg-x11/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/xorg-x11/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/icons/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/default/cursors/wait", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/uli/.cursors/default/cursors/watch", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/uli/.cursors/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/uli/.icons/default/cursors/watch", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/uli/.icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cursors/xorg-x11/default/cursors/watch", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cursors/xorg-x11/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cursors/default/cursors/watch", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/cursors/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/icons/default/cursors/watch", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/pixmaps/default/cursors/watch", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/local/share/pixmaps/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/cursors/xorg-x11/default/cursors/watch", O_RDONLY) = 12
fstat(12, {st_mode=S_IFREG|0644, st_size=126096, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f88638ec000
read(12, "Xcur\20\0\0\0\0\0\1\0\30\0\0\0\2\0\375\377\30\0\0\0000\1\0\0\2\0\375\377"..., 4096) = 4096
lseek(12, 0, SEEK_SET)                  = 0
read(12, "Xcur\20\0\0\0\0\0\1\0\30\0\0\0\2\0\375\377\30\0\0\0000\1\0\0\2\0\375\377"..., 4096) = 4096
lseek(12, 4096, SEEK_SET)               = 4096
read(12, "\33\33\33\377\210\210\210\377\226\226\226\320\0\0\0M\0\0\0\23\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
lseek(12, 8192, SEEK_SET)               = 8192
lseek(12, 8192, SEEK_SET)               = 8192
read(12, "\224\224\224\377jjj\377+++\377\323\323\323\371UUUz\0\0\0\v\0\0\0\1\0\0\0\0"..., 4096) = 4096
lseek(12, 12288, SEEK_SET)              = 12288
lseek(12, 12288, SEEK_SET)              = 12288
read(12, "\0\0\0\1\0\0\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
lseek(12, 16384, SEEK_SET)              = 16384
read(12, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
lseek(12, 20480, SEEK_SET)              = 20480
close(12)                               = 0
munmap(0x7f88638ec000, 4096)            = 0
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{";\3\7\0\v\0\240\3\0\0\0\0\2\0\226\1&\4\252\0\6\0B\2\23\4\26\0\214\3\n\0"..., 14660}, {"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 2304}, {"", 0}], 3) = 16964
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{"<\3\2\0001\0\240\3\224\4\5\0002\0\240\0030\0\240\3&\0\0\0\0\0\0\0006\3\2\0"..., 2764}, {NULL, 0}, {"", 0}], 3) = 2764
recvfrom(6, 0x207a1a4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
sendto(10, "LIST MIDI_INSTRUMENTS ALL\r\n", 27, 0, NULL, 0) = 27
select(11, [10], NULL, NULL, {1, 0})    = 1 (in [10], left {0, 999939})
recvfrom(10, "\r\n", 1023, 0, NULL, NULL) = 2
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{"\2\3\4\0\4\0\240\3\0@\0\0\27\0\240\3\2\0\4\0\4\0\240\3\0@\0\0\27\0\240\3"..., 112}, {NULL, 0}, {"", 0}], 3) = 112
recvfrom(6, 0x207a1a4, 4096, 0, 0, 0)   = -1 EAGAIN (Resource temporarily unavailable)
--- {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x80000000708} (Segmentation fault) ---
+++ killed by SIGSEGV +++
Speicherzugriffsfehler
Comment 3 audio-mobster 2012-04-11 19:32:00 CEST
The same with:

Qt: 4.8.1
libgig: 3.3.0
liblscp: 0.5.6
Qsampler: 0.2.2.1
Comment 4 audio-mobster 2012-04-11 20:19:26 CEST
Same behavior:
Qt: 4.8.1
libgig: 3.3.0.cvs1
liblscp: 0.5.6.2
Qsampler: 0.2.2.1
LinuxSampler 1.0.0.cvs10
Comment 5 elboulangero 2012-11-20 21:47:50 CET
Compiling qsampler from svn works for me, as mentioned here:
https://bugs.linuxsampler.org/cgi-bin/show_bug.cgi?id=150

For compilation, see:
http://qsampler.sourceforge.net/qsampler-downloads.html#SVN
Comment 6 Christian Schoenebeck 2013-05-31 20:38:40 CEST
Assming this has been resolved, closing this report now. Feel free to reopen it in case the problem still exists for you.