View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000540 | ardour | bugs | public | 2004-06-16 20:43 | 2008-11-20 23:42 |
| Reporter | baver | Assigned To | taybin | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Summary | 0000540: crash when exporting and downsampling | ||||
| Description | Ardour crashes when trying to export and downsample from 96000 Hz to 44100 Hz. Occasionally , the following line is repeatedly printed out the the Log window before the crash: [ERROR]: warning, leftover frames overflowed, glitches might occur in output othertimes the crash happens without warning. A few months ago, on the same computer I didn't experience any problems exporting and downsampling. Exporting without resampling works great. GDB backtrace in additional information. | ||||
| Additional Information | Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 8925)] _int_realloc (av=0x40757380, oldmem=0x9c04870, bytes=163661936) at malloc.c:4533 4533 malloc.c: No such file or directory. in malloc.c (gdb) thread apply all bt Thread 7 (Thread 81926 (LWP 8931)): #0 0x406fd9f2 in loser_poll (fds=0xbefffa8c, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:51 0000001 0x406fdabc in *__GI___poll (fds=0xbefffa8c, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:78 #2 0x0856f6e7 in ARDOUR::Session::midi_thread_work() () #3 0x0856f5f7 in ARDOUR::Session::_midi_thread_work(void*) () 0000004 0x403a9d03 in pthread_start_thread (arg=0xbefffbe0) at manager.c:300 0000005 0x403a9d7f in pthread_start_thread_event (arg=0xbefffbe0) at manager.c:324 #6 0x407062c7 in __clone () from /lib/libc.so.6 Thread 6 (Thread 65541 (LWP 8930)): #0 0x40653411 in do_sigsuspend (set=0xbf1ff7ec) at ../sysdeps/unix/sysv/linux/sigsuspend.c:50 0000001 0x406534d7 in *__GI___sigsuspend (set=0xbf1ff7ec) at ../sysdeps/unix/sysv/linux/sigsuspend.c:87 #2 0x403ac1e8 in __pthread_wait_for_restart_signal (self=0xbf1ffbe0) at pthread.c:1141 #3 0x403a8d78 in __pthread_cond_wait (cond=0x0, mutex=0x8951f88) at restart.h:36 0000004 0x0854aaab in ARDOUR::Session::butler_thread_work() () 0000005 0x0854a2e7 in ARDOUR::Session::_butler_thread_work(void*) () ---Type <return> to continue, or q <return> to quit--- #6 0x403a9d03 in pthread_start_thread (arg=0xbf1ffbe0) at manager.c:300 #7 0x403a9d7f in pthread_start_thread_event (arg=0xbf1ffbe0) at manager.c:324 0000008 0x407062c7 in __clone () from /lib/libc.so.6 Thread 5 (Thread 49156 (LWP 8929)): #0 calc_output (filter=0x9beb9a8, increment=3853517, start_filter_index=681574, ch=1) at src_sinc.c:445 0000001 0x4049f5ae in sinc_process (psrc=0x98dcfc8, data=0x98dcf08) at src_sinc.c:326 #2 0x4049ebc5 in src_process (state=0x98dcfc8, data=0x98dcf08) at samplerate.c:131 #3 0x08569887 in ARDOUR::AudioExportSpecification::process(unsigned) () 0000004 0x0856acc2 in ARDOUR::Session::process_export(unsigned, ARDOUR::AudioExportSpecification*) () 0000005 0x0856aeee in SigC::ObjectSlot2_<int, unsigned, ARDOUR::AudioExportSpecification*, ARDOUR::Session>::callback(void*, unsigned, ARDOUR::AudioExportSpecification*) () #6 0x0856b062 in SigC::AdaptorBindSlot1_1<int, unsigned, ARDOUR::AudioExportSpecification*>::callback(void*, unsigned) () #7 0x084a94fe in SigC::Signal1<int, unsigned, SigC::Marshal<int> >::emit(unsigned const&) () 0000008 0x084a7e58 in ARDOUR::AudioEngine::process_callback(unsigned) () 0000009 0x402a6362 in jack_client_thread (arg=0x8763d10) at client.c:1143 ---Type <return> to continue, or q <return> to quit--- 0000010 0x403a9d03 in pthread_start_thread (arg=0xbf3ffbe0) at manager.c:300 0000011 0x403a9d7f in pthread_start_thread_event (arg=0xbf3ffbe0) at manager.c:324 0000012 0x407062c7 in __clone () from /lib/libc.so.6 Thread 4 (Thread 32771 (LWP 8928)): #0 0x40653411 in do_sigsuspend (set=0xbf5ff9bc) at ../sysdeps/unix/sysv/linux/sigsuspend.c:50 0000001 0x406534d7 in *__GI___sigsuspend (set=0xbf5ff9bc) at ../sysdeps/unix/sysv/linux/sigsuspend.c:87 #2 0x403ac1e8 in __pthread_wait_for_restart_signal (self=0xbf5ffbe0) at pthread.c:1141 #3 0x403a8d78 in __pthread_cond_wait (cond=0x0, mutex=0x86e4ea0) at restart.h:36 0000004 0x08596a95 in ARDOUR::Source::peak_thread_work(void*) () 0000005 0x403a9d03 in pthread_start_thread (arg=0xbf5ffbe0) at manager.c:300 #6 0x403a9d7f in pthread_start_thread_event (arg=0xbf5ffbe0) at manager.c:324 #7 0x407062c7 in __clone () from /lib/libc.so.6 Thread 3 (Thread 16386 (LWP 8927)): #0 0x40653411 in do_sigsuspend (set=0xbf7ff97c) at ../sysdeps/unix/sysv/linux/sigsuspend.c:50 0000001 0x406534d7 in *__GI___sigsuspend (set=0xbf7ff97c) at ../sysdeps/unix/sysv/linux/sigsuspend.c:87 ---Type <return> to continue, or q <return> to quit--- #2 0x403aca86 in __pthread_sigwait (set=0xbf7ffa4c, sig=0xbf7ffa48) at signals.c:169 #3 0x083114a7 in signal_thread(void*) () 0000004 0x403a9d03 in pthread_start_thread (arg=0xbf7ffbe0) at manager.c:300 0000005 0x403a9d7f in pthread_start_thread_event (arg=0xbf7ffbe0) at manager.c:324 #6 0x407062c7 in __clone () from /lib/libc.so.6 Thread 2 (Thread 32769 (LWP 8926)): #0 0x406fd9f2 in loser_poll (fds=0x86f1b9c, nfds=1, timeout=2000) at ../sysdeps/unix/sysv/linux/poll.c:51 0000001 0x406fdabc in *__GI___poll (fds=0x86f1b9c, nfds=1, timeout=2000) at ../sysdeps/unix/sysv/linux/poll.c:78 #2 0x403a99ee in __pthread_manager (arg=0x7d1) at manager.c:145 #3 0x403a9bf7 in __pthread_manager_event (arg=0x403b2480) at manager.c:242 0000004 0x407062c7 in __clone () from /lib/libc.so.6 Thread 1 (Thread 16384 (LWP 8925)): #0 _int_realloc (av=0x40757380, oldmem=0x9c04870, bytes=163661936) at malloc.c:4533 0000001 0x4069de70 in __libc_realloc (oldmem=0x9c04870, bytes=65536) at malloc.c:3425 #2 0x401b5734 in g_realloc (mem=0x9c14870, size=65536) at gmem.c:338 #3 0x40117c19 in make_forward_space (text=0x872ec88, len=67) at gtktext.c:3179 ---Type <return> to continue, or q <return> to quit--- 0000004 0x4011316a in gtk_text_insert (text=0x872ec88, font=0x9c14870, fore=0x9c14870, back=0x9c14870, chars=0x88cdb24 "warning, leftover frames overflowed, glitches might occur in output", nchars=67) at gtktext.c:987 0000005 0x08428500 in Gtkmmext::UI::display_message(char const*, int, _GtkStyle*, char const*) (this=0x86f26a0, prefix=0x85ee85a "[ERROR]: ", prefix_len=9, style=0x872b740, msg=0x997a1c0 "warning, leftover frames overflowed, glitches might occur in output") at gtk_ui.cc:576 #6 0x0842831b in Gtkmmext::UI::process_error_message(Transmitter::Channel, char const*) (this=0x86f26a0, chn=Error, str=0x997a1c0 "warning, leftover frames overflowed, glitches might occur in output") at gtk_ui.cc:541 #7 0x08427d73 in Gtkmmext::UI::do_request(Gtkmmext::UI::Request*) ( this=0x86f26a0, req=0x40835a40) at gtk_ui.cc:369 0000008 0x08427ce9 in Gtkmmext::UI::handle_ui_requests() (this=0x86f26a0) at gtk_ui.cc:357 0000009 0x08427c24 in Gtkmmext::UI::signal_pipe_callback(void*, int, GdkInputCondition) (arg=0x86f26a0, fd=7, cond=GDK_INPUT_READ) at gtk_ui.cc:345 0000010 0x401816cb in gdk_io_invoke (source=0x9c14870, condition=163661936, data=0x87007c8) at gdkevents.c:882 0000011 0x401b2a96 in g_io_unix_dispatch (source_data=0xbb39d829, current_time=0xbfffe4d0, user_data=0x9c14870) at giounix.c:135 ---Type <return> to continue, or q <return> to quit--- 0000012 0x401b436b in g_main_dispatch (dispatch_time=0xbfffe4d0) at gmain.c:656 0000013 0x401b4856 in g_main_iterate (block=0, dispatch=1) at gmain.c:877 0000014 0x401b4a73 in g_main_iteration (block=163661936) at gmain.c:907 #15 0x400c5678 in gtk_main_iteration () at gtkmain.c:603 0000016 0x082b7204 in ExportDialog::do_export() () #17 0x082b9cde in SigC::ObjectSlot0_<void, ExportDialog>::callback(void*) () 0000018 0x0818565f in Gtk::ProxySignal0<void, Gtk::Button, _GtkButton, 2>::gtk_callback(_GtkObject*, void*) () 0000019 0x400c70d6 in gtk_marshal_NONE__NONE (object=0x9c14870, func=0x8185650 <Gtk::ProxySignal0<void, Gtk::Button, _GtkButton, 2>::gtk_callback(_GtkObject*, void*)>, func_data=0x9c14870, args=0xbfffe850) at gtkmarshal.c:312 0000020 0x400fd325 in gtk_handlers_run (handlers=0x99b69e0, signal=0xbfffe7e0, object=0x992c360, params=0xbfffe850, after=0) at gtksignal.c:1912 0000021 0x400fc67d in gtk_signal_real_emit (object=0x992c360, signal_id=83, params=0xbfffe850) at gtksignal.c:1477 0000022 0x400fa012 in gtk_signal_emit (object=0x992c360, signal_id=83) at gtksignal.c:552 0000023 0x40057660 in gtk_button_clicked (button=0x992c360) at gtkbutton.c:336 #24 0x40058eac in gtk_real_button_released (button=0x992c360) at gtkbutton.c:861 0000025 0x0845996c in Gtk::Button::released_impl() (this=0x98dcd58) at button.h:61 0000026 0x084598fe in Gtk::Button_Class::released_callback(_GtkButton*) ( ---Type <return> to continue, or q <return> to quit--- o_=0x992c360) at button.cc:157 0000027 0x400c70d6 in gtk_marshal_NONE__NONE (object=0x9c14870, func=0x84598d0 <Gtk::Button_Class::released_callback(_GtkButton*)>, func_data=0x9c14870, args=0xbfffec40) at gtkmarshal.c:312 0000028 0x400fc409 in gtk_signal_real_emit (object=0x992c360, signal_id=82, params=0xbfffec40) at gtksignal.c:1440 0000029 0x400fa012 in gtk_signal_emit (object=0x992c360, signal_id=82) at gtksignal.c:552 0000030 0x40057580 in gtk_button_released (button=0x992c360) at gtkbutton.c:327 0000031 0x400587b1 in gtk_button_button_release (widget=0x992c360, event=0x8772e48) at gtkbutton.c:721 0000032 0x0848b9ca in Gtk::Widget::button_release_event_impl(_GdkEventButton*) ( this=0x98dcd58, p0=0x9c14870) at widget.h:111 0000033 0x0848b955 in Gtk::Widget_Class::button_release_event_callback(_GtkWidget*, _GdkEventButton*) (o_=0x992c360, p0=0x8772e48) at widget.cc:1514 0000034 0x0849108d in gtkmm_marshal_INT__POINTER(_GtkObject*, void (*)(), void*, _GtkArg*) (object=0x9c14870, func=0x848b920 <Gtk::Widget_Class::button_release_event_callback(_GtkWidget*, _GdkEventButton*)>, func_data=0x9c14870, args=0xbb39d829) at marshal.cc:240 0000035 0x400fc4ba in gtk_signal_real_emit (object=0x992c360, signal_id=22, params=0xbffff050) at gtksignal.c:1492 0000036 0x400fa012 in gtk_signal_emit (object=0x992c360, signal_id=22) at gtksignal.c:552 ---Type <return> to continue, or q <return> to quit--- 0000037 0x40139464 in gtk_widget_event (widget=0x992c360, event=0x8772e48) at gtkwidget.c:2864 0000038 0x400c6b7f in gtk_propagate_event (widget=0x992c360, event=0x8772e48) at gtkmain.c:1385 0000039 0x400c5954 in gtk_main_do_event (event=0x8772e48) at gtkmain.c:818 0000040 0x401829b5 in gdk_event_dispatch (source_data=0x0, current_time=0xbffff440, user_data=0x0) at gdkevents.c:2139 0000041 0x401b436b in g_main_dispatch (dispatch_time=0xbffff440) at gmain.c:656 0000042 0x401b4856 in g_main_iterate (block=0, dispatch=1) at gmain.c:877 0000043 0x401b4b04 in g_main_run (loop=0x8930190) at gmain.c:935 0000044 0x400c53df in gtk_main () at gtkmain.c:524 0000045 0x08429b6c in Gtk::Main::run() () at main.h:168 0000046 0x084273b7 in Gtkmmext::UI::run(Receiver&) (this=0x86f26a0, old_receiver=@0x86e3c80) at gtk_ui.cc:168 0000047 0x0830fa8e in main () | ||||
| Tags | No tags attached. | ||||
|
|
taybin - i assigned this to you only because you are probably closest to that chunk of code. |
|
|
I just saw a segfault with beta19 doing something similar, exporting a region converting it from 88,200/24 to 44,100/16. The traceback was somewhat different, I'll include it here in hopes that it might help... (gdb) thread apply all bt Thread 7 (process 1574): #0 0x406de85a in poll () from /lib/libc.so.6 0000001 0x40397b50 in __pthread_manager () from /lib/libpthread.so.0 Thread 6 (process 1575): #0 0x4063980b in sigsuspend () from /lib/libc.so.6 0000001 0x4039a9e7 in sigwait () from /lib/libpthread.so.0 #2 0x083b8935 in signal_thread(void*) () #3 0x40397e51 in pthread_start_thread () from /lib/libpthread.so.0 Thread 5 (process 1576): #0 0x4039a604 in __pthread_sigsuspend () from /lib/libpthread.so.0 0000001 0xbf5ffa70 in ?? () #2 0x4039a3c8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #3 0x40396f2b in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0 0000004 0x086221d8 in ARDOUR::Source::peak_thread_work(void*) () 0000005 0x40397e51 in pthread_start_thread () from /lib/libpthread.so.0 Thread 4 (process 1577): #0 0x406de85a in poll () from /lib/libc.so.6 0000001 0x40291156 in jack_client_thread (arg=0x887a828) at client.c:995 ---Type <return> to continue, or q <return> to quit--- #2 0x40397e51 in pthread_start_thread () from /lib/libpthread.so.0 Thread 3 (process 1578): #0 0x4039a604 in __pthread_sigsuspend () from /lib/libpthread.so.0 0000001 0xbf1ff9c0 in ?? () #2 0x4039a3c8 in __pthread_wait_for_restart_signal () from /lib/libpthread.so.0 #3 0x40396f2b in pthread_cond_wait@GLIBC_2.0 () from /lib/libpthread.so.0 0000004 0x085d213c in ARDOUR::Session::butler_thread_work() () 0000005 0x085d18ed in ARDOUR::Session::_butler_thread_work(void*) () #6 0x40397e51 in pthread_start_thread () from /lib/libpthread.so.0 Thread 2 (process 1579): #0 0x406de85a in poll () from /lib/libc.so.6 0000001 0x085f9bd2 in ARDOUR::Session::midi_thread_work() () #2 0x085f9a47 in ARDOUR::Session::_midi_thread_work(void*) () #3 0x40397e51 in pthread_start_thread () from /lib/libpthread.so.0 Thread 1 (process 1573): #0 0x0826595c in KeyboardTarget::window() const () 0000001 0x0838f688 in Keyboard::register_target(KeyboardTarget*) () #2 0x0830f7f1 in Editor::export_region() () #3 0x083044fb in SigC::ObjectSlot0_<void, Editor>::callback(void*) () ---Type <return> to continue, or q <return> to quit--- 0000004 0x084fb7e7 in Gtk::ProxySignal0<void, Gtk::MenuItem, _GtkMenuItem, 0>::gtk_callback(_GtkObject*, void*) (d=0x0) at slot.h:260 0000005 0x400ba1b5 in gtk_marshal_NONE__NONE () from /usr/lib/libgtk-1.2.so.0 #6 0x400e9b6c in gtk_signal_remove_emission_hook () from /usr/lib/libgtk-1.2.so.0 #7 0x400e8fd5 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0 0000008 0x400e70b3 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0 0000009 0x4011dc0e in gtk_widget_activate () from /usr/lib/libgtk-1.2.so.0 0000010 0x400c2614 in gtk_menu_shell_activate_item () from /usr/lib/libgtk-1.2.so.0 0000011 0x400c189a in gtk_menu_shell_deactivate () from /usr/lib/libgtk-1.2.so.0 0000012 0x0850d5f6 in Gtk::Widget::button_release_event_impl(_GdkEventButton*) ( this=0x4220bc80, p0=0x8881120) at widget.h:111 0000013 0x0850d591 in Gtk::Widget_Class::button_release_event_callback(_GtkWidget*, _GdkEventButton*) (o_=0x422051f0, p0=0x8881120) at widget.cc:1514 0000014 0x08511368 in gtkmm_marshal_INT__POINTER(_GtkObject*, void (*)(), void*, _GtkArg*) (object=0x422051f0, func=0x850d564 <Gtk::Widget_Class::button_release_event_callback(_GtkWidget*, _GdkEventButton*)>, func_data=0x0, args=0x0) at marshal.cc:240 #15 0x400e9013 in gtk_signal_set_funcs () from /usr/lib/libgtk-1.2.so.0 0000016 0x400e70b3 in gtk_signal_emit () from /usr/lib/libgtk-1.2.so.0 #17 0x4011dacb in gtk_widget_event () from /usr/lib/libgtk-1.2.so.0 0000018 0x400b9d85 in gtk_propagate_event () from /usr/lib/libgtk-1.2.so.0 0000019 0x400b8eee in gtk_main_do_event () from /usr/lib/libgtk-1.2.so.0 ---Type <return> to continue, or q <return> to quit--- 0000020 0x40167457 in gdk_wm_protocols_filter () from /usr/lib/libgdk-1.2.so.0 0000021 0x401984d8 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 0000022 0x40198ae3 in g_get_current_time () from /usr/lib/libglib-1.2.so.0 0000023 0x40198c7c in g_main_run () from /usr/lib/libglib-1.2.so.0 #24 0x400b87e7 in gtk_main () from /usr/lib/libgtk-1.2.so.0 0000025 0x08243705 in Gtk::Main::run() () at main.h:168 0000026 0x084bb1fc in Gtkmmext::UI::run(Receiver&) (this=0x880b0f8, old_receiver=@0x87fba00) at gtk_ui.cc:168 0000027 0x083b9f24 in main () 0000028 0x40625dc6 in __libc_start_main () from /lib/libc.so.6 (gdb) |
|
|
The segfault I just reported seems to happen repeatably with this session. The traceback looks the same. The fault occurs *before* displaying the export menu, so no file I/O has yet begun. Maybe this is a different bug after all? |
|
|
believed fixed in CVS and confirmed by several users. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2004-06-16 20:43 | baver | New Issue | |
| 2004-06-16 20:43 | baver | => baver@thebeever.com | |
| 2004-06-16 20:43 | baver | Name | => Richard Baverstock |
| 2004-06-16 21:13 | paul | Note Added: 0001053 | |
| 2004-06-16 21:13 | paul | Assigned To | => taybin |
| 2004-06-16 21:13 | paul | Status | new => assigned |
| 2004-06-16 21:14 | paul | Priority | urgent => normal |
| 2004-08-06 04:22 | paul | Relationship added | has duplicate 0000314 |
| 2004-08-22 05:47 | joq | Note Added: 0001433 | |
| 2004-08-22 06:00 | joq | Note Added: 0001434 | |
| 2005-05-06 01:01 | paul | Status | assigned => resolved |
| 2005-05-06 01:01 | paul | Resolution | open => fixed |
| 2005-05-06 01:01 | paul | Note Added: 0002214 | |
| 2008-11-20 23:42 | seablade | Status | resolved => closed |