View Issue Details

IDProjectCategoryView StatusLast Update
0001418ardourbugspublic2008-11-20 23:50
Reporternowhiskey Assigned Topaul  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
Summary0001418: arodur2 crashes on using stretch/shrink tool
Descriptionhi, this is as i am expiriencing the crash:

-starting jackd without realtime,
-starting ardourvst in xterm like:

    LANG=en_US.UTF-8 /usr/bin/ardourvst,

-opening new session, one stereo channel, importing a 2sec wav file,

-choosing the shrink/stretch tool, clicking at the region and making a
"range" where the region should be stretched/shrinked,

-the dialog appears, i choose stretch/shrink it, ardourvst crashes,

-in my homedir i get the "core.3746" file.

-now i cd into gtk2_ardour, typing:

       ../gtk2_ardour$ ./ardbg /home/nowhiskey/core.3746, i become:


GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as
"i486-linux-gnu"...gtk2_ardour/ardour-2.0beta10: Datei oder Verzeichnis
nicht gefunden.

(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by
`/usr/lib/ardour2/ardour_vst.exe.so
'.
Program terminated with signal 11, Segmentation fault.
#0 0x7efd45c6 in ?? ()
(gdb)

and than finaly:

(gdb) thread apply all bt

Thread 9 (process 3746):
#0 0xb7d6a819 in ?? ()

Thread 8 (process 3750):
#0 0xb7d6a819 in ?? ()

Thread 7 (process 3751):
#0 0xb7de5411 in ?? ()

Thread 6 (process 3753):
#0 0xb7de5b3c in ?? ()

Thread 5 (process 3755):
#0 0xb7d6a819 in ?? ()

Thread 4 (process 3756):
#0 0xb7d6a819 in ?? ()

Thread 3 (process 3757):
#0 0xb7d6a819 in ?? ()

Thread 2 (process 3758):
#0 0xb7d6a819 in ?? ()

Thread 1 (process 3760):
#0 0x7efd45c6 in ?? ()
(gdb)



that is all in this case, not lot of pages to paste here!
i hope it is kind of useful for you, if not, and if you have another
suggestion, please let me know.


cheers,
doc
TagsNo tags attached.

Activities

paul

2007-01-11 19:27

administrator   ~0003049

please recompile with DEBUG=1 and repeat the above steps.

nowhiskey

2007-01-11 20:08

reporter   ~0003052

hm, i think that was already build with debug, i recompiled and everything was up-to-date.
however, i reproduced, jack is running w/out rt:


nowhiskey@murija2:~$ ulimit -c unlimited
nowhiskey@murija2:~$ LANG=en_US.UTF-8 /usr/bin/ardourvst

(process:4073): Gdk-WARNING **: locale not supported by C library
Ardour/GTK 2.0beta10
   (built using 1266 and GCC version 4.0.4 20060507 (prerelease) (Debian 4.0.3-3))
Copyright (C) 1999-2006 Paul Davis
Some portions Copyright (C) Steve Harris, Ari Johnson, Brett Viren, Joel Baker

Ardour comes with ABSOLUTELY NO WARRANTY
not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This is free software, and you are welcome to redistribute it
under certain conditions; see the source for copying conditions.
Loading ui configuration file /home/nowhiskey/.ardour2/ardour2_ui.rc

(ardour_vst.exe.so:4073): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.
loading system configuration file /etc/ardour2/ardour_system.rc
loading user configuration file /home/nowhiskey/.ardour2/ardour.rc
OSC @ osc.udp://localhost.localdomain:3819/
ardour: [INFO]: Using SSE optimized routines
ardour: [INFO]: detecting VST plugins along /home/nowhiskey/vst/
ardour: [INFO]: looking for control protocols in /home/nowhiskey/.ardour2/surfaces/:/usr/lib/ardour2/surfaces/
ardour: [INFO]: Control surface protocol discovered: "Generic MIDI"
ardour: [INFO]: Control protocol Tranzport not usable
ardour: [WARNING]: VST plugin VReorder does not support processReplacing, and so cannot be used in ardour at this time
Your system generates "Mod2" when the NumLock key is pressed. This can cause problems when editing so Ardour will use Mod3 to mean Meta rather than Mod2
loading bindings from /etc/ardour2/ardour.bindings
Loading session /home/nowhiskey/Ardour2/proba300 using snapshot proba300 (2)
actually writing state
actually writing state
Loading history from '/home/nowhiskey/Ardour2/proba300/proba300.history'.
actually writing state
actually writing state
Speicherzugriffsfehler (core dumped)
nowhiskey@murija2:~$ cd software/ardour2/ardour2/gtk2_ardour/
nowhiskey@murija2:~/software/ardour2/ardour2/gtk2_ardour$ ./ardbg /home/nowhiskey/core.4073
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...gtk2_ardour/ardour-2.0beta10: Datei oder Verzeichnis nicht gefunden.

(no debugging symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".
Core was generated by `/usr/lib/ardour2/ardour_vst.exe.so '.
Program terminated with signal 11, Segmentation fault.
#0 0x7efd45c6 in ?? ()
(gdb) thread apply all bt

Thread 9 (process 4073):
#0 0xb7e1a819 in ?? ()

Thread 8 (process 4077):
#0 0xb7e1a819 in ?? ()

Thread 7 (process 4078):
#0 0xb7e95411 in ?? ()

Thread 6 (process 4080):
#0 0xb7e95b3c in ?? ()

Thread 5 (process 4082):
#0 0xb7e1a819 in ?? ()

Thread 4 (process 4083):
#0 0xb7e1a819 in ?? ()

Thread 3 (process 4084):
#0 0xb7e1a819 in ?? ()

Thread 2 (process 4085):
#0 0xb7e1a819 in ?? ()

Thread 1 (process 4087):
#0 0x7efd45c6 in ?? ()
(gdb)


cheers,
doc

flowbot

2007-01-27 02:20

reporter   ~0003110

i've been having problems with this on and off for a while now ... with latest svn, the crash appears to be back - and as far as i can make out, it happens in just about every situation that the TimeFX tool is used - any use of it at all will crash ardour.

i'm using ubuntu 6.10, and jack is running with realtime enabled ... here is a backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1314706240 (LWP 9005)]
end () at libs/soundtouch/cpu_detect_x86_gcc.cpp:136
136 return res & ~_dwDisabledISA;
(gdb) thread apply all bt

Thread 8 (Thread -1314706240 (LWP 9005)):
#0 end () at libs/soundtouch/cpu_detect_x86_gcc.cpp:136
0000001 0xb6b1c56c in soundtouch::FIRFilter::newInstance ()
    at libs/soundtouch/FIRFilter.cpp:219
#2 0xb6b1bc5d in AAFilter (this=0x9ebcaf0, length=32)
    at libs/soundtouch/AAFilter.cpp:63
#3 0xb6b1e560 in RateTransposer (this=0x9907650)
    at libs/soundtouch/RateTransposer.cpp:129
0000004 0xb6b1e614 in RateTransposerFloat (this=0x9907650)
    at libs/soundtouch/RateTransposer.cpp:501
0000005 0xb6b1e697 in soundtouch::RateTransposer::newInstance ()
    at libs/soundtouch/RateTransposer.cpp:116
#6 0xb6b1fb37 in SoundTouch (this=0xb1a3235c)
    at libs/soundtouch/SoundTouch.cpp:97
#7 0xb7e7fd8f in ARDOUR::Session::tempoize_region (this=0x90730b8,
    tsr=@0x9832c34) at libs/ardour/session_timefx.cc:47
0000008 0x085142c2 in Editor::do_timestretch (this=0x8ddab20, dialog=@0x9832c20)
    at gtk2_ardour/editor_timefx.cc:201
0000009 0x0851469d in Editor::timestretch_thread (arg=0x9832c20)
    at gtk2_ardour/editor_timefx.cc:229
0000010 0xb6910504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
0000011 0xb68a451e in clone () from /lib/tls/i686/cmov/libc.so.6
---Type <return> to continue, or q <return> to quit---

Thread 7 (Thread -1265259328 (LWP 8983)):
#0 0xb7f18410 in ?? ()
0000001 0xb495a478 in ?? ()
#2 0xffffffff in ?? ()
#3 0x00000002 in ?? ()
0000004 0x00000002 in ?? ()
0000005 0xb495acc0 in ?? ()
#6 0x00000000 in ?? ()

Thread 6 (Thread -1264755520 (LWP 8982)):
#0 0xb7f18410 in ?? ()
0000001 0xb49d5458 in ?? ()
#2 0xffffffff in ?? ()
#3 0x00000001 in ?? ()
0000004 0x00000000 in ?? ()

Thread 5 (Thread -1253131360 (LWP 8971)):
#0 0xb7f18410 in ?? ()
0000001 0xb54ea428 in ?? ()
#2 0x000003e8 in ?? ()
#3 0x00000002 in ?? ()
0000004 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---

Thread 4 (Thread -1252188992 (LWP 8970)):
#0 0xb7f18410 in ?? ()
0000001 0xb55d1518 in ?? ()
#2 0xffffffff in ?? ()
#3 0x00000001 in ?? ()
0000004 0x00000000 in ?? ()

Thread 3 (Thread -1243009856 (LWP 8969)):
#0 0xb7f18410 in ?? ()
0000001 0xb5e924c8 in ?? ()
#2 0xb77001e4 in ?? () from /usr/lib/libglib-2.0.so.0
#3 0xb5e924ac in ?? ()
0000004 0xb6916bf6 in __nanosleep_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
0000005 0xb76ba2f2 in g_usleep () from /usr/lib/libglib-2.0.so.0
#6 0xb6db0481 in Glib::usleep (microseconds=10000)
    at libs/glibmm2/glibmm/timer.cc:68
#7 0xb7d1abd4 in ARDOUR::AudioEngine::meter_thread (this=0x8ae56d8)
    at libs/ardour/audioengine.cc:411
0000008 0xb7d1d91c in sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>::operator() (this=0x8ae4f44) at libs/sigc++2/sigc++/functors/mem_fun.h:1781
0000009 0xb7d1d93e in sigc::adaptor_functor<sigc::bound_mem_functor0<void, ARDOUR::A---Type <return> to continue, or q <return> to quit---
udioEngine> >::operator() (this=0x8ae4f40)
    at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:251
0000010 0xb7d1d96a in sigc::internal::slot_call0<sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>, void>::call_it (rep=0x8ae4f28)
    at libs/sigc++2/sigc++/functors/slot.h:103
0000011 0x083580d6 in sigc::slot0<void>::operator() (this=0x8a6bda0)
    at libs/sigc++2/sigc++/functors/slot.h:440
0000012 0xb6db6933 in call_thread_entry_slot (data=0x8a6bda0)
    at libs/glibmm2/glibmm/thread.cc:43
0000013 0xb76b838f in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
0000014 0xb6910504 in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#15 0xb68a451e in clone () from /lib/tls/i686/cmov/libc.so.6

Thread 2 (Thread -1239135040 (LWP 8964)):
#0 0xb7f18410 in ?? ()
0000001 0xb6244518 in ?? ()
#2 0xffffffff in ?? ()
#3 0x00000002 in ?? ()
0000004 0x00000000 in ?? ()

Thread 1 (Thread -1237358928 (LWP 8946)):
#0 0xb7f18410 in ?? ()
0000001 0xbfade228 in ?? ()
---Type <return> to continue, or q <return> to quit---
#2 0x00000025 in ?? ()
#3 0x00000003 in ?? ()
0000004 0xb769d813 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
0000005 0xb769dd45 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#6 0xb73883e4 in gtk_main_iteration () from /usr/lib/libgtk-x11-2.0.so.0
#7 0x08515ae2 in Editor::run_timestretch (this=0x8ddab20, regions=@0x8dfdd7c,
    fraction=3.84801793) at gtk2_ardour/editor_timefx.cc:149
0000008 0x084c42f2 in Editor::end_time_fx (this=0x8ddab20, item=0x969e7e0,
    event=0x9c10cf8) at gtk2_ardour/editor_mouse.cc:4857
0000009 0x084cc106 in Editor::end_grab (this=0x8ddab20, item=0x969e7e0,
    event=0x9c10cf8) at gtk2_ardour/editor_mouse.cc:1691
0000010 0x084d57f0 in Editor::button_release_handler (this=0x8ddab20,
    item=0x969e7e0, event=0x9c10cf8, item_type=RegionItem)
    at gtk2_ardour/editor_mouse.cc:842
0000011 0x084a8401 in Editor::canvas_region_view_event (this=0x8ddab20,
    event=0x9c10cf8, item=0x969e7e0, rv=0x969f200)
    at gtk2_ardour/editor_canvas_events.cc:231
0000012 0x0864091d in sigc::bound_mem_functor3<bool, PublicEditor, _GdkEvent*, Gnome::Canvas::Item*, RegionView*>::operator() (this=0x960dc70, _A_a1=@0xbfade5e4,
    _A_a2=@0xbfade544, _A_a3=@0x960dc80)
    at libs/sigc++2/sigc++/functors/mem_fun.h:1958
0000013 0x08640959 in sigc::adaptor_functor<sigc::bound_mem_functor3<bool, PublicEditor, _GdkEvent*, Gnome::Canvas::Item*, RegionView*> >::operator()<_GdkEvent* con---Type <return> to continue, or q <return> to quit---
st&, Gnome::Canvas::Group*&, RegionView*&> (this=0x960dc6c,
    _A_arg1=@0xbfade5e4, _A_arg2=@0x960dc7c, _A_arg3=@0x960dc80)
    at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:123
0000014 0x0864098d in sigc::bind_functor<-1, sigc::bound_mem_functor3<bool, PublicEditor, _GdkEvent*, Gnome::Canvas::Item*, RegionView*>, Gnome::Canvas::Group*, RegionView*, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>::operator()<_GdkEvent* const&> (this=0x960dc68, _A_arg1=@0xbfade5e4)
    at libs/sigc++2/sigc++/adaptors/bind.h:1335
#15 0x086409b3 in sigc::internal::slot_call1<sigc::bind_functor<-1, sigc::bound_mem_functor3<bool, PublicEditor, _GdkEvent*, Gnome::Canvas::Item*, RegionView*>, Gnome::Canvas::Group*, RegionView*, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>, bool, _GdkEvent*>::call_it (rep=0x960dc50, a_1=@0xbfade5e4)
    at libs/sigc++2/sigc++/functors/slot.h:137
0000016 0xb7887037 in sigc::slot1<bool, _GdkEvent*>::operator() (this=0x968e8d4,
    _A_a1=@0xbfade5e4) at libs/sigc++2/sigc++/functors/slot.h:512
#17 0xb6fad5b6 in (anonymous namespace)::Item_signal_event_callback (
    self=0x969aa88, p0=0x9c10cf8, data=0x968e8d0)
    at libs/libgnomecanvasmm/libgnomecanvasmm/item.cc:138
0000018 0xb7603160 in gnome_canvas_marshal_BOOLEAN__BOXED ()
   from /usr/lib/libgnomecanvas-2.so.0
0000019 0xb763e79b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
0000020 0xb764ee81 in g_signal_chain_from_overridden ()
   from /usr/lib/libgobject-2.0.so.0
---Type <return> to continue, or q <return> to quit---
0000021 0xb764fe7f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
0000022 0xb7650279 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
0000023 0xb75fe974 in gnome_canvas_window_to_world ()
   from /usr/lib/libgnomecanvas-2.so.0
#24 0xb76000d8 in gnome_canvas_set_scroll_region ()
   from /usr/lib/libgnomecanvas-2.so.0
0000025 0xb78801d8 in Gtk::Widget_Class::button_release_event_callback (
    self=0x8ddf008, p0=0x9a71820) at libs/gtkmm2/gtk/gtkmm/widget.cc:3805
0000026 0xb738db00 in _gtk_marshal_BOOLEAN__BOXED ()
   from /usr/lib/libgtk-x11-2.0.so.0
0000027 0xb763cfb9 in g_value_set_boxed () from /usr/lib/libgobject-2.0.so.0
0000028 0xb763e79b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
0000029 0xb764f1e3 in g_signal_chain_from_overridden ()
   from /usr/lib/libgobject-2.0.so.0
0000030 0xb764fe7f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
0000031 0xb7650279 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
0000032 0xb74a15f8 in gtk_widget_get_default_style ()
   from /usr/lib/libgtk-x11-2.0.so.0
0000033 0xb7386ef3 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
0000034 0xb73880f7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
0000035 0xb72107ea in _gdk_events_init () from /usr/lib/libgdk-x11-2.0.so.0
0000036 0xb769a802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
0000037 0xb769d7df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
0000038 0xb769db89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
0000039 0xb7388574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
0000040 0xb789fa8d in Gtk::Main::run_impl (this=0x87f9498)
    at libs/gtkmm2/gtk/gtkmm/main.cc:503
0000041 0xb789f89a in Gtk::Main::run () at libs/gtkmm2/gtk/gtkmm/main.cc:450
0000042 0xb7b108b7 in Gtkmm2ext::UI::run (this=0x87f6900, old_receiver=@0x87d229c)
    at libs/gtkmm2ext/gtk_ui.cc:214
0000043 0x0859c6f7 in main (argc=1, argv=0xbfadf314) at gtk2_ardour/main.cc:460
136 return res & ~_dwDisabledISA;

paul

2007-01-27 18:07

administrator   ~0003114

this is caused by bad assembler code in libsoundtouch. not sure what we should do about it. JACK has better code for CPU detection, and maybe even the stuff in libardour will work.

sampo, hint, hint.

v2

2007-01-27 22:16

developer   ~0003121

Last edited: 2007-01-27 22:18

Fix is in SVN, revision 1394. Please give it a go ;)

The soundtouch code was compiled with -fPIC but the assembly code was not PIC compatible.

flowbot

2007-01-28 01:14

reporter   ~0003122

Cool, that seems to have done the trick - works fine so far :)

nowhiskey

2007-01-28 01:58

reporter   ~0003123

works here again too (very well!),
cheers,
doc

paul

2007-01-28 03:28

administrator   ~0003124

see comments from reporter(s).

Issue History

Date Modified Username Field Change
2007-01-11 18:01 nowhiskey New Issue
2007-01-11 19:27 paul Note Added: 0003049
2007-01-11 20:08 nowhiskey Note Added: 0003052
2007-01-27 02:20 flowbot Note Added: 0003110
2007-01-27 18:07 paul Note Added: 0003114
2007-01-27 22:16 v2 Note Added: 0003121
2007-01-27 22:18 v2 Note Edited: 0003121
2007-01-28 01:14 flowbot Note Added: 0003122
2007-01-28 01:58 nowhiskey Note Added: 0003123
2007-01-28 03:28 paul Status new => resolved
2007-01-28 03:28 paul Resolution open => fixed
2007-01-28 03:28 paul Assigned To => paul
2007-01-28 03:28 paul Note Added: 0003124
2008-11-20 23:50 seablade Status resolved => closed