[Pkg-octave-devel] Bug#874208: octave: audiodevinfo makes octave segfault when jackd is running
Peter P.
peterparker at fastmail.com
Thu Sep 7 16:08:40 UTC 2017
* Mike Miller <mtmiller at debian.org> [2017-09-06 18:55]:
> On Wed, Sep 06, 2017 at 16:10:25 +0200, Peter P. wrote:
> > The backtrace I provided was already with /usr/bin/octave --no-gui. I hope a
> > 'stack trace' is the same thing as a 'backtrace', at least gdb's help
> > text tells me so.
>
> But 'octave --no-gui' is not the same thing as 'octave-cli'. I would
> like to see the backtrace with this crash occurring in 'octave-cli'.
>
> This backtrace:
>
> > (gdb) bt
> > #0 0x00007fffd8328bf0 in jack_thread_touch_stack () at thread.c:112
> > #1 0x00007fffd8328fb9 in jack_thread_proxy (varg=0x7fffd44cfa80) at thread.c:128
> > #2 0x00007ffff44ee494 in start_thread () at /lib/x86_64-linux-gnu/libpthread.so.0
> > #3 0x00007ffff4232abf in clone () at /lib/x86_64-linux-gnu/libc.so.6
>
> is not very helpful because it only shows a jack thread running, there
> is nothing there about what Octave is doing.
>
> Please try with 'octave-cli', with octave dbgsym packages installed as
> well, and use 'thread apply all bt' in gdb to be sure to capture all
> running threads.
Thanks for the clear instructions Mike, here it is:
~$ gdb --args octave-cli
[...]
Reading symbols from octave-cli...Reading symbols from /usr/lib/debug/.build-id/a7/beba93cf5339eac11d645050513a47c65388a8.debug...done.
done.
(gdb) run
Starting program: /usr/bin/octave-cli
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
GNU Octave, version 4.2.1
[...]
octave:1> audiodevinfo()
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:867:(find_matching_chmap) Found no matching channel map
[New Thread 0x7fffdfb4f700 (LWP 18685)]
[New Thread 0x7fffdf34e700 (LWP 18688)]
Thread 3 "octave-cli" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffdf34e700 (LWP 18688)]
0x00007fffdff19bf0 in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0
(gdb) thread apply all bt
Thread 3 (Thread 0x7fffdf34e700 (LWP 18688)):
#0 0x00007fffdff19bf0 in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0
#1 0x00007fffdff19fb9 in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0
#2 0x00007ffff49f8494 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007ffff473cabf in clone () from /lib/x86_64-linux-gnu/libc.so.6
Thread 2 (Thread 0x7fffdfb4f700 (LWP 18685)):
#0 0x00007ffff49fe15f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fffdff15b5f in ?? () from /usr/lib/x86_64-linux-gnu/libjack.so.0
#2 0x00007ffff49f8494 in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#3 0x00007ffff473cabf in clone () from /lib/x86_64-linux-gnu/libc.so.6
Thread 1 (Thread 0x7ffff7f9c940 (LWP 18601)):
#0 0x00007ffff49fe15f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fffdff1462b in jack_activate () from /usr/lib/x86_64-linux-gnu/libjack.so.0
#2 0x00007fffe045068f in PaJack_Initialize () from /usr/lib/x86_64-linux-gnu/libportaudio.so.2
#3 0x00007fffe0440553 in Pa_Initialize () from /usr/lib/x86_64-linux-gnu/libportaudio.so.2
#4 0x00007fffe067fac4 in Faudiodevinfo (args=...) at libinterp/dldfcn/audiodevinfo.cc:114
#5 0x00007ffff72497ab in octave_builtin::do_multi_index_op(int, octave_value_list const&, std::__cxx11::list<octave_lvalue, std::allocator<octave_lvalue> > const*) () from /usr/lib/x86_64-linux-gnu/liboctinterp.so.4
#6 0x00007ffff72485ae in octave_builtin::subsref(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::list<octave_value_list, std::allocator<octave_value_list> > const&, int, std::__cxx11::list<octave_lvalue, std::allocator<octave_lvalue> > const*) () from /usr/lib/x86_64-linux-gnu/liboctinterp.so.4
#7 0x00007ffff72490f0 in octave_builtin::subsref(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::list<octave_value_list, std::allocator<octave_value_list> > const&, int) ()
from /usr/lib/x86_64-linux-gnu/liboctinterp.so.4
#8 0x00007ffff7354e0c in octave_value::subsref(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::list<octave_value_list, std::allocator<octave_value_list> > const&, int) ()
from /usr/lib/x86_64-linux-gnu/liboctinterp.so.4
#9 0x00007ffff7354ebd in octave_value::subsref(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::list<octave_value_list, std::allocator<octave_value_list> > const&, int, std::__cxx11::list<octave_lvalue, std::allocator<octave_lvalue> > const*) () from /usr/lib/x86_64-linux-gnu/liboctinterp.so.4
#10 0x00007ffff74122e5 in tree_index_expression::rvalue(int, std::__cxx11::list<octave_lvalue, std::allocator<octave_lvalue> > const*) () from /usr/lib/x86_64-linux-gnu/liboctinterp.so.4
#11 0x00007ffff7413cdf in tree_index_expression::rvalue(int) () from /usr/lib/x86_64-linux-gnu/liboctinterp.so.4
More information about the Pkg-octave-devel
mailing list