View Issue Details

IDProjectCategoryView StatusLast Update
0001704ardourbugspublic2008-02-12 06:27
Reporterpewe Assigned To 
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformAMD64OS64StudioOS Version1.4.0
Product Version2.0 
Summary0001704: Ardour segmentation faults when loading recent sessions.
DescriptionArdour segmentation faults when loading recent sessions.

My sessions were created with a 0.99 version (I have forgotten which one exactly). I then upgraded to Ardour 2.0rc2, which was possible without any problems.
I could use all my sessions. After the upgrade to 2.0.2 none of my recent sessions can be loaded anymore.

I can create new sessions, which can afterwards be loaded without problems. (I only did that for testing yet - maybe with real sessions of a bigger size I will run into the same problem.)

I recompiled Ardour 2.0.2 from source to get a core-dump and created a backtrace. The backtrace will be attached here (file "ardour-crash-backtrace.txt").
I packed a test-session, the dumped core and my ardour.rc to a file "ardour-crash.tgz". This file is 27.4MB in size, so I can't attach it here.
It can (temporarily) be downloaded from the following URL: "http://www.pwensing.de/ardour/ardour-crash.tgz".

Ardour version: 2.0.2

System: 64Studio 1.4.0 (latest testing release) on AMD64;
        Intel Core2 Duo E6600; 2GB RAM

uname -a: Linux pewe02 2.6.19-1-multimedia-amd64 #2 SMP PREEMPT Sun Apr 29 13:56:49 UTC 2007 x86_64 GNU/Linux

Jack: /usr/bin/jackd -R -P89 -p128 -t2000 -dfreebob -dhw:0 -r88200 -p64 -n3 -i8 -o10 -I333

Hardware: Presonus Firepod
Steps To Reproduce1. start Jack using "/usr/bin/jackd -R -P89 -p128 -t2000 -dfreebob -dhw:0 -r88200 -p64 -n3 -i8 -o10 -I333".
2. start ardour by calling "./ardour.sh".
3. select tab "Open Session".
4. Browse to file "test-1.ardour".
5. Click on button "Open" or double-click on filename.
6. Ardour crashes with the following output:
"
Loading session /home/pewe/ardour-crash/test-1 using snapshot test-1 (1)
Segmentation fault
"
TagsNo tags attached.

Activities

2007-05-28 19:02

 

ardour-crash-backtrace.txt (6,496 bytes)   
Thread 8 (process 5049):
#0  0x00002b245663ab15 in __nanosleep_nocancel () from /lib/libpthread.so.0
#1  0x00002b24534fd4f8 in g_usleep () from /usr/lib/libglib-2.0.so.0
#2  0x00002b24557c7331 in Glib::usleep (microseconds=10000) at libs/glibmm2/glibmm/timer.cc:68
#3  0x00002b24521e3896 in ARDOUR::AudioEngine::meter_thread (this=0x122ba90) at libs/ardour/audioengine.cc:412
#4  0x00002b24521e6898 in sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>::operator() (this=0x1005e18) at libs/sigc++2/sigc++/functors/mem_fun.h:1781
#5  0x00002b24521e68b3 in sigc::adaptor_functor<sigc::bound_mem_functor0<void, ARDOUR::AudioEngine> >::operator() (this=0x1005e10)
    at libs/sigc++2/sigc++/adaptors/adaptor_trait.h:251
#6  0x00002b24521e68d7 in sigc::internal::slot_call0<sigc::bound_mem_functor0<void, ARDOUR::AudioEngine>, void>::call_it (rep=0x1005de0)
    at libs/sigc++2/sigc++/functors/slot.h:103
#7  0x000000000075c1c7 in sigc::slot0<void>::operator() (this=0x100ebe0) at libs/sigc++2/sigc++/functors/slot.h:440
#8  0x00002b24557c5968 in call_thread_entry_slot (data=0x100ebe0) at libs/glibmm2/glibmm/thread.cc:43
#9  0x00002b24534fb5a4 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#10 0x00002b2456634f1a in start_thread () from /lib/libpthread.so.0
#11 0x00002b2456dd3602 in clone () from /lib/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 7 (process 5050):
#0  0x00002b2456dcacf6 in poll () from /lib/libc.so.6
#1  0x00002b24534e25ae in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#2  0x00002b24534e2a46 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#3  0x00002aaaab24dcc0 in link_set_io_thread () from /usr/lib/libORBit-2.so.0
#4  0x00002b24534fb5a4 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#5  0x00002b2456634f1a in start_thread () from /lib/libpthread.so.0
#6  0x00002b2456dd3602 in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 6 (process 5053):
#0  0x00002b2456dcacf6 in poll () from /lib/libc.so.6
#1  0x00002b245651bb36 in jack_client_close () from /usr/lib/libjack.so.0
#2  0x00002b2456634f1a in start_thread () from /lib/libpthread.so.0
#3  0x00002b2456dd3602 in clone () from /lib/libc.so.6
#4  0x0000000000000000 in ?? ()

Thread 5 (process 5061):
#0  0x00002b2456637d2f in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00002b24533b1600 in ?? () from /usr/lib/libgthread-2.0.so.0
#2  0x00002b24534c3ffa in g_async_queue_sort () from /usr/lib/libglib-2.0.so.0
#3  0x00002b24534fd075 in g_thread_pool_push () from /usr/lib/libglib-2.0.so.0
#4  0x00002b24534fb5a4 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#5  0x00002b2456634f1a in start_thread () from /lib/libpthread.so.0
#6  0x00002b2456dd3602 in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 4 (process 5062):
#0  0x00002b2456637d2f in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00002b24533b1600 in ?? () from /usr/lib/libgthread-2.0.so.0
#2  0x00002b24534c3ffa in g_async_queue_sort () from /usr/lib/libglib-2.0.so.0
#3  0x00002b24534fd075 in g_thread_pool_push () from /usr/lib/libglib-2.0.so.0
#4  0x00002b24534fb5a4 in g_thread_create_full () from /usr/lib/libglib-2.0.so.0
#5  0x00002b2456634f1a in start_thread () from /lib/libpthread.so.0
#6  0x00002b2456dd3602 in clone () from /lib/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 3 (process 5063):
#0  0x00002b2456dcacf6 in poll () from /lib/libc.so.6
#1  0x00002b245230b8b7 in ARDOUR::Session::butler_thread_work (this=0x2aaaacf04200) at libs/ardour/session_butler.cc:176
#2  0x00002b245230c5f3 in ARDOUR::Session::_butler_thread_work (arg=0x2aaaacf04200) at libs/ardour/session_butler.cc:157
#3  0x00002b2456634f1a in start_thread () from /lib/libpthread.so.0
#4  0x00002b2456dd3602 in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 2 (process 5064):
#0  0x00002b2456dcacf6 in poll () from /lib/libc.so.6
#1  0x00002b24523293ec in ARDOUR::Session::midi_thread_work (this=0x2aaaacf04200) at libs/ardour/session_midi.cc:1207
#2  0x00002b2452329901 in ARDOUR::Session::_midi_thread_work (arg=0x2aaaacf04200) at libs/ardour/session_midi.cc:1128
#3  0x00002b2456634f1a in start_thread () from /lib/libpthread.so.0
#4  0x00002b2456dd3602 in clone () from /lib/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (process 5046):
#0  0x00002b2456d7dfab in memcpy () from /lib/libc.so.6
#1  0x00002b2456a96a72 in std::basic_streambuf<char, std::char_traits<char> >::xsputn () from /usr/lib/libstdc++.so.6
#2  0x00002b2456a8a94a in std::operator<< <char, std::char_traits<char>, std::allocator<char> > () from /usr/lib/libstdc++.so.6
#3  0x0000000000785d5f in StringPrivate::Composition::arg<std::string> (this=0x7fff58be40a0, obj=@0x7fff58be44c0) at libs/pbd/pbd/compose.h:118
#4  0x00002b24521e80c7 in string_compose<std::string, std::string, std::string, std::string> (fmt=@0x7fff58be4330, o1=@0x7fff58be43f0, o2=@0x7fff58be42d0,
    o3=@0x7fff58be44c0, o4=@0x7fff58be42c0) at libs/pbd/pbd/compose.h:237
#5  0x00002b24521e0c43 in ARDOUR::AudioEngine::connect (this=0x122ba90, source=@0x7fff58be43f0, destination=@0x7fff58be44c0)
    at libs/ardour/audioengine.cc:606
#6  0x00002b24522632dc in ARDOUR::IO::connect_output (this=0x2aaaacf5b320, our_port=0x2aaaacfc1ab0, other_port=@0x7fff58be44c0, src=0x2aaaacf1b210)
    at libs/ardour/io.cc:734
#7  0x00002b24522b969e in ARDOUR::Route::set_control_outs (this=0x2aaaacf1b210, ports=@0x7fff58be4580) at libs/ardour/route.cc:1843
#8  0x00002b24522dd243 in ARDOUR::Session::hookup_io (this=0x2aaaacf04200) at libs/ardour/session.cc:947
#9  0x00002b24522dee5d in ARDOUR::Session::when_engine_running (this=0x2aaaacf04200) at libs/ardour/session.cc:841
#10 0x00002b24523439a0 in ARDOUR::Session::second_stage_init (this=0x2aaaacf04200, new_session=false) at libs/ardour/session_state.cc:317
#11 0x00002b24522e6ee1 in Session (this=0x2aaaacf04200, eng=@0x122ba90, fullpath=@0x7fff58be4da0, snapshot_name=@0x7fff58be4db0, mix_template=0x0)
    at libs/ardour/session.cc:299
#12 0x0000000000767f66 in ARDOUR_UI::load_session (this=0xdf2250, path=@0x7fff58be4ed0, snap_name=@0x7fff58be4ee0, mix_template=0x0)
    at gtk2_ardour/ardour_ui.cc:2021
#13 0x0000000000768852 in ARDOUR_UI::new_session (this=0xdf2250, predetermined_path=@0x7fff58be5080) at gtk2_ardour/ardour_ui.cc:1853
#14 0x00000000009c9592 in maybe_load_session () at gtk2_ardour/main.cc:130
#15 0x00000000009ca5fb in main (argc=1, argv=0x7fff58be5328) at gtk2_ardour/main.cc:295
ardour-crash-backtrace.txt (6,496 bytes)   

v2

2007-09-25 19:42

developer   ~0004399

Is this still an issue with 2.0.5? If yes, could you attach the .ardour file from the session?

2007-09-30 17:53

 

konoulen-1.ardour (392,580 bytes)

pewe

2007-09-30 17:56

reporter   ~0004442

I upgraded to 2.0.5 today. Some of my old sessions can be opened now, while others are still crashing.

I have attached the file konoulen-1.ardour, which belongs to a session, that still does not work.

Thanks for your help.

v2

2007-10-05 14:43

developer   ~0004451

What does "ulimit -l" tell you? Does Ardour warn about the amount of memory available for locking when you start it? (the warning is printed on the console you start ardour from)

v2

2007-10-05 21:58

developer   ~0004453

Actually never mind, I think the issue is now fixed. Please try the latest svn version and see whether your issue is fixed.

pewe

2008-01-19 15:04

reporter   ~0004667

I upgraded 64Studio today and it installed Ardour 2.1 (built from revision 2496).
My problem still exists... :-(

"ulimit -l" tells me "unlimited".

The console output is:

Ardour/GTK 2.1
   (built using 2496 and GCC version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21))
   Copyright (C) 1999-2007 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.
   theme_init() called from internal clearlooks engine
   /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:68: error: unexpected identifier `colorize_scrollbar', expected character `}'
   loading default ui configuration file /etc/ardour2/ardour2_ui_default.conf
   loading user ui configuration file /home/pewe/.ardour2/ardour2_ui.conf
   Configuration::pack_canvasvars () called, canvas_colors.size() = 82
   ardour: [INFO]: Loading ui configuration file /etc/ardour2/ardour2_ui_dark.rc
   theme_init() called from internal clearlooks engine
   loading system configuration file /etc/ardour2/ardour_system.rc
   loading user configuration file /home/pewe/.ardour2/ardour.rc
   ardour: [INFO]: No H/W specific optimizations in use
   ardour: [INFO]: looking for control protocols in /home/pewe/.ardour2/surfaces/:/usr/lib/ardour2/surfaces/
   ardour: [INFO]: Control surface protocol discovered: "Generic MIDI"
   ardour: [INFO]: Control surface protocol discovered: "Mackie"
   powermate: Opening of powermate failed - No such file or directory
   ardour: [INFO]: Control protocol powermate not usable
   JACK tmpdir identified as [/dev/shm]
   SSE2 detected
   JACK tmpdir identified as [/dev/shm]
   SSE2 detected
   loading bindings from /home/pewe/.ardour2/ardour.bindings
   Loading session /home/pewe/audio/recordings/drumming/ardour/old/konoulen-1 using snapshot konoulen-1 (1)
   Segmentation fault

v2

2008-01-19 16:12

developer   ~0004668

Can you try 2.2 ? I think the bug has been fixed after 2.1 was released.

pewe

2008-02-10 14:23

reporter   ~0004712

I tried Ardour 2.2 and 2.3 now.
And with both versions, I can load my old sessions again!
Great work, thank you!

I think, this issue can be closed now.

v2

2008-02-12 06:27

developer   ~0004717

Fixed.

Issue History

Date Modified Username Field Change
2007-05-28 19:02 pewe New Issue
2007-05-28 19:02 pewe File Added: ardour-crash-backtrace.txt
2007-09-25 19:42 v2 Note Added: 0004399
2007-09-25 19:42 v2 Status new => feedback
2007-09-30 17:53 pewe File Added: konoulen-1.ardour
2007-09-30 17:56 pewe Note Added: 0004442
2007-10-05 14:43 v2 Note Added: 0004451
2007-10-05 21:58 v2 Note Added: 0004453
2008-01-19 15:04 pewe Note Added: 0004667
2008-01-19 16:12 v2 Note Added: 0004668
2008-02-10 14:23 pewe Note Added: 0004712
2008-02-12 06:27 v2 Status feedback => closed
2008-02-12 06:27 v2 Note Added: 0004717
2008-02-12 06:27 v2 Resolution open => fixed