#598849 ardour: Ardour Segfaults while using Behringer BCF2000 with mackieprotocol

Package:
ardour
Source:
ardour
Description:
the digital audio workstation
Submitter:
Stijn Declercq
Date:
2017-09-19 22:09:11 UTC
Severity:
normal
#598849#5
Date:
2010-10-02 16:17:31 UTC
From:
To:
Hi,

When I want to use my Behringer BCF2000 Ardour crashed with segmentationfault.
It only crashes when i'm using the mackie-protocol in Ardour

It crashes when I' moving the faders after couple of seconds.

I've run Ardour with strace, and i've got this message.

read(5, 0x1723924, 4096) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}, {fd=11, events=POLLIN}, {fd=12, events=POLLIN}, {fd=3, events=POLL    IN}], 6, 38[fc] MackiePort::handle_midi_any needs 3 bytes, but received [fc]
[b0 65 00] control for rotary [b0 65 00] is null
<unfinished ...>
+++ killed by SIGSEGV +++
Segmentatiefout

#598849#10
Date:
2010-10-04 09:14:44 UTC
From:
To:
Hi!

Could you rerun your crashing setup from gdb and provide us with a
backtrace?

In a terminal, go like this:

  $ export GTK_PATH=/usr/lib/ardour2${GTK_PATH:+:$GTK_PATH}
  $ export LD_LIBRARY_PATH=/usr/lib/ardour2${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
  $ gdb /usr/lib/ardour2/ardour-2.8.11
  (gdb) run

When it crashes, say "thread apply all bt", that's the output we need.


If you cannot run ardour from gdb (it might have problems matching the
realtime deadlines), create a core instead:

  $ ulimit -c unlimited
  $ ardour2
  [crash, should give you a file core.something in your CWD]
  $ export GTK_PATH=/usr/lib/ardour2${GTK_PATH:+:$GTK_PATH}
  $ export LD_LIBRARY_PATH=/usr/lib/ardour2${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
  $ gdb --core=XXX
  (gdb) thread apply all bt

If this doesn't work, try the first method but start jackd without
realtime priorities.


TIA

#598849#15
Date:
2010-10-04 15:16:14 UTC
From:
To:
Op Mon, 4 Oct 2010 11:14:44 +0200
schreef Adrian Knoth <adi@drcomp.erfurt.thur.de>:
This is the output of gdb:


(gdb) thread apply all bt

Thread 18 (Thread 0x7fffc20cf830 (LWP 30346)):
#0  0x00007ffff12b3f4f in snd_seq_event_input () from /usr/lib/libasound.so.2
#1  0x00007ffff1d1c20d in MIDI::ALSA_SequencerMidiPort::read (this=0xe33dd0, buf=0x7fffc20cea30 "\341 b", max=512)
    at libs/midi++2/alsa_sequencer_midiport.cc:145
#2  0x00007fffc20f2e77 in Mackie::SurfacePort::read (this=0x229c0a0) at libs/surfaces/mackie/surface_port.cc:93
#3  0x00007fffc20fbff2 in MackieControlProtocol::read_ports (this=0x229bc40) at libs/surfaces/mackie/mackie_control_protocol_poll.cc:143
#4  0x00007fffc20fc63c in MackieControlProtocol::monitor_work (this=0x229bc40) at libs/surfaces/mackie/mackie_control_protocol_poll.cc:56
#5  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#6  0x00007fffef0e802d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 16 (Thread 0x7fffc80f9830 (LWP 30344)):
#0  0x00007ffff12b3f4f in snd_seq_event_input () from /usr/lib/libasound.so.2
#1  0x00007ffff1d1c20d in MIDI::ALSA_SequencerMidiPort::read (this=0xe09d40, buf=0x7fffc80f89b0 "\263e{d\024\006", max=512)
    at libs/midi++2/alsa_sequencer_midiport.cc:145
#2  0x00007ffff7b1dffa in ARDOUR::Session::midi_read (this=<value optimized out>, port=0xe09d40) at libs/ardour/session_midi.cc:431
#3  0x00007ffff7b1f005 in ARDOUR::Session::midi_thread_work (this=0x19ed560) at libs/ardour/session_midi.cc:1340
#4  0x00007ffff7b1f521 in ARDOUR::Session::_midi_thread_work (arg=0x19ed560) at libs/ardour/session_midi.cc:1138
#5  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#6  0x00007fffef0e802d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 15 (Thread 0x7fffc8174830 (LWP 30343)):
---Type <return> to continue, or q <return> to quit---
#0  0x00007fffef0dd113 in poll () from /lib/libc.so.6
#1  0x00007ffff7ad9944 in ARDOUR::Session::butler_thread_work (this=0x19ed560) at libs/ardour/session_butler.cc:179
#2  0x00007ffff7adae1b in ARDOUR::Session::_butler_thread_work (arg=0x19ed560) at libs/ardour/session_butler.cc:159
#3  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#4  0x00007fffef0e802d in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 14 (Thread 0x7fffc8421830 (LWP 30342)):
#0  0x00007ffff27e37dd in nanosleep () from /lib/libpthread.so.0
#1  0x00007ffff6584068 in g_usleep () from /lib/libglib-2.0.so.0
#2  0x00007ffff79d9b0f in ARDOUR::AudioEngine::meter_thread (this=<value optimized out>) at libs/ardour/audioengine.cc:472
#3  0x00007ffff72a9632 in ?? () from /usr/lib/libglibmm-2.4.so.1
#4  0x00007ffff65814a4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#6  0x00007fffef0e802d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 13 (Thread 0x7fffc8575710 (LWP 30341)):
#0  0x00007ffff27e2417 in sem_timedwait () from /lib/libpthread.so.0
#1  0x00007ffff2a197f0 in ?? () from /usr/lib/libjack.so.0
#2  0x00007ffff2a0207a in ?? () from /usr/lib/libjack.so.0
#3  0x00007ffff2a00daf in ?? () from /usr/lib/libjack.so.0
#4  0x00007ffff2a190c0 in ?? () from /usr/lib/libjack.so.0
#5  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
---Type <return> to continue, or q <return> to quit---
#6  0x00007fffef0e802d in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 12 (Thread 0x7fffc8963710 (LWP 30340)):
#0  0x00007ffff27e30bd in read () from /lib/libpthread.so.0
#1  0x00007ffff2a1ad62 in ?? () from /usr/lib/libjack.so.0
#2  0x00007ffff2a1d647 in ?? () from /usr/lib/libjack.so.0
#3  0x00007ffff2a190c0 in ?? () from /usr/lib/libjack.so.0
#4  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#5  0x00007fffef0e802d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 11 (Thread 0x7fffc89e4710 (LWP 30339)):
#0  0x00007ffff27e016c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff2a1a791 in ?? () from /usr/lib/libjack.so.0
#2  0x00007ffff2a13399 in ?? () from /usr/lib/libjack.so.0
#3  0x00007ffff2a190c0 in ?? () from /usr/lib/libjack.so.0
#4  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#5  0x00007fffef0e802d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fffe06ce710 (LWP 30332)):
#0  0x00007ffff27e016c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff79c46d3 in ARDOUR::Analyser::work () at libs/ardour/analyser.cc:85
---Type <return> to continue, or q <return> to quit---
#2  0x00007ffff72a9632 in ?? () from /usr/lib/libglibmm-2.4.so.1
#3  0x00007ffff65814a4 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#5  0x00007fffef0e802d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fffe0ecf710 (LWP 30331)):
#0  0x00007ffff27e016c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff7b506ac in peak_thread_work () at libs/ardour/source_factory.cc:65
#2  0x00007ffff72a9632 in ?? () from /usr/lib/libglibmm-2.4.so.1
#3  0x00007ffff65814a4 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#5  0x00007fffef0e802d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fffe16d0710 (LWP 30330)):
#0  0x00007ffff27e016c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007ffff7b506ac in peak_thread_work () at libs/ardour/source_factory.cc:65
#2  0x00007ffff72a9632 in ?? () from /usr/lib/libglibmm-2.4.so.1
#3  0x00007ffff65814a4 in ?? () from /lib/libglib-2.0.so.0
#4  0x00007ffff27db8ba in start_thread () from /lib/libpthread.so.0
#5  0x00007fffef0e802d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()
---Type <return> to continue, or q <return> to quit---
Thread 1 (Thread 0x7ffff7fae7e0 (LWP 30327)):
#0  0x00007fffef0dd113 in poll () from /lib/libc.so.6
#1  0x00007ffff655bcd9 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007ffff655c485 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007ffff4dd1b77 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#4  0x00007ffff2c9e32a in Gtkmm2ext::UI::run (this=0xc037c0, old_receiver=...) at libs/gtkmm2ext/gtk_ui.cc:230
#5  0x000000000074d28e in main (argc=1, argv=0x7fffffffe5b8) at
gtk2_ardour/main.cc:398

#598849#20
Date:
2017-09-19 21:38:54 UTC
From:
To:
while i cannot test the problem here, i wonder whether this is still an
issue these days.
Ardour has gone a long way since ardour2.8 (hey, we now have 5.5 in
Debian/stretch).

so maybe the problem has been magically resolved...