Opened 13 years ago

Closed 13 years ago

#294 closed Bug Report (fixed)

Crash at Create/Delete

Reported by: b0ef@… Owned by:
Priority: blocker Component: Ingen
Keywords: Cc:

Description

Reproducible:

Start up "ingen -eg"

create audio input delete audio input create audio input delete audio input

SEGFAULT

Change History (4)

comment:1 Changed 13 years ago by David Robillard

Resolution: invalid
Status: newclosed

Can't reproduce. Neither can Thorwil. Random and nonsensical.

=> Dirty build => Invalid

comment:2 Changed 13 years ago by t_w_@…

Resolution: invalid
Status: closedreopened

I now see it happening either with using delete key, or via context menu. Sometimes on first, in other cases on second attempt

comment:3 Changed 13 years ago by anonymous

Using a fresh build after uninstall and distclean, rev 1868. Triggered on fourth iteration with delete key.

Core was generated by `ingen -eg'.
Program terminated with signal 11, Segmentation fault.
[New process 10570]
[New process 10577]
[New process 10576]
[New process 10575]
[New process 10574]
[New process 10571]
#0  0x0804e4ad in boost::detail::atomic_exchange_and_add (pw=0x407, dv=-1)
    at /usr/include/boost/detail/sp_counted_base_gcc_x86.hpp:50
50	    );
(gdb) bt
#0  0x0804e4ad in boost::detail::atomic_exchange_and_add (pw=0x407, dv=-1)
    at /usr/include/boost/detail/sp_counted_base_gcc_x86.hpp:50
#1  0x0804e5b2 in boost::detail::sp_counted_base::release (this=0x403)
    at /usr/include/boost/detail/sp_counted_base_gcc_x86.hpp:143
#2  0x0804e616 in ~shared_count (this=0xbfaa74a0) at /usr/include/boost/detail/shared_count.hpp:205
#3  0xb61a72b8 in ~shared_ptr (this=0xbfaa749c) at /usr/include/boost/shared_ptr.hpp:131
#4  0xb61bee86 in boost::shared_ptr<FlowCanvas::Module>::reset (this=0x8ef8030) at /usr/include/boost/shared_ptr.hpp:288
#5  0xb61b537a in Ingen::GUI::PatchCanvas::remove_port (this=0x8660800, pm=@0xbfaa7558)
    at ../ingen/src/gui/PatchCanvas.cpp:402
#6  0xb61bf3db in sigc::bound_mem_functor1<void, Ingen::GUI::PatchCanvas, boost::shared_ptr<Ingen::Client::PortModel> >::operator() (this=0x87075c4, _A_a1=@0xbfaa76e4) at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:1851
#7  0xb61bf435 in sigc::adaptor_functor<sigc::bound_mem_functor1<void, Ingen::GUI::PatchCanvas, boost::shared_ptr<Ingen::Client::PortModel> > >::operator()<boost::shared_ptr<Ingen::Client::PortModel> const&> (this=0x87075c0, _A_arg1=@0xbfaa76e4)
    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84
#8  0xb61bf469 in sigc::internal::slot_call1<sigc::bound_mem_functor1<void, Ingen::GUI::PatchCanvas, boost::shared_ptr<Ingen::Client::PortModel> >, void, boost::shared_ptr<Ingen::Client::PortModel> >::call_it (rep=0x87075a8, a_1=@0xbfaa76e4)
    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:137
#9  0xb6e16ffe in sigc::internal::signal_emit1<void, boost::shared_ptr<Ingen::Client::PortModel>, sigc::nil>::emit (
    impl=0x872f1b8, _A_a1=@0xbfaa76e4) at /usr/include/sigc++-2.0/sigc++/signal.h:692
#10 0xb6e170c7 in sigc::signal1<void, boost::shared_ptr<Ingen::Client::PortModel>, sigc::nil>::emit (this=0x862fd7c, 
    _A_a1=@0xbfaa76e4) at /usr/include/sigc++-2.0/sigc++/signal.h:1818
#11 0xb6e24037 in Ingen::Client::NodeModel::remove_port (this=0x862fd00, port=@0xbfaa76e4)
    at ../ingen/src/client/NodeModel.cpp:77
#12 0xb6e2be59 in Ingen::Client::PatchModel::remove_child (this=0x862fd00, o=@0xbfaa777c)
    at ../ingen/src/client/PatchModel.cpp:56
#13 0xb6e05bcd in Ingen::Client::ClientStore::remove_object (this=0x8548058, path=@0xbfaa780c)
    at ../ingen/src/client/ClientStore.cpp:316
#14 0xb6e05d38 in Ingen::Client::ClientStore::destroy (this=0x8548058, path=@0x8efd084)
    at ../ingen/src/client/ClientStore.cpp:374
#15 0xb6e0ff50 in sigc::bound_mem_functor1<void, Ingen::Client::ClientStore, std::string const&>::operator() (this=0x86091dc, 
    _A_a1=@0x8efd084) at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:1851
#16 0xb6e0ff7d in sigc::adaptor_functor<sigc::bound_mem_functor1<void, Ingen::Client::ClientStore, std::string const&> >::operator()<std::string const&> (this=0x86091d8, _A_arg1=@0x8efd084) at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:84
#17 0xb6e0ffb1 in sigc::internal::slot_call1<sigc::bound_mem_functor1<void, Ingen::Client::ClientStore, std::string const&>, void, std::string>::call_it (rep=0x86091c0, a_1=@0x8efd084) at /usr/include/sigc++-2.0/sigc++/functors/slot.h:137
#18 0xb6e39fb4 in sigc::internal::signal_emit1<void, std::string, sigc::nil>::emit (impl=0x8548030, _A_a1=@0x8efd084)
    at /usr/include/sigc++-2.0/sigc++/signal.h:692
#19 0xb6e3a07d in sigc::signal1<void, std::string, sigc::nil>::emit (this=0x8608770, _A_a1=@0x8efd084)
---Type <return> to continue, or q <return> to quit---
    at /usr/include/sigc++-2.0/sigc++/signal.h:1818
#20 0xb6e3a16f in Ingen::Client::SigClientInterface::destroy (this=0x8608708, path=@0x8efd084)
    at ../ingen/src/client/SigClientInterface.hpp:123
#21 0xb6fbb732 in Ingen::ClientBroadcaster::send_destroyed (this=0x80a56d0, path=@0x8efd084)
    at ../ingen/src/engine/ClientBroadcaster.cpp:143
#22 0xb6eb1296 in Ingen::DestroyEvent::post_process (this=0x8efd068) at ../ingen/src/engine/events/DestroyEvent.cpp:190
#23 0xb6fee309 in Ingen::PostProcessor::process (this=0x80a68c8) at ../ingen/src/engine/PostProcessor.cpp:63
#24 0xb6fc4002 in Ingen::Engine::main_iteration (this=0x80a6870) at ../ingen/src/engine/Engine.cpp:160
#25 0xb6152ced in Ingen::GUI::App::gtk_main_iteration (this=0x8102890) at ../ingen/src/gui/App.cpp:383
#26 0xb6157733 in sigc::bound_mem_functor0<bool, Ingen::GUI::App>::operator() (this=0x86254dc)
    at /usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:1787
#27 0xb615775c in sigc::adaptor_functor<sigc::bound_mem_functor0<bool, Ingen::GUI::App> >::operator() (this=0x86254d8)
    at /usr/include/sigc++-2.0/sigc++/adaptors/adaptor_trait.h:251
#28 0xb615778c in sigc::internal::slot_call0<sigc::bound_mem_functor0<bool, Ingen::GUI::App>, bool>::call_it (rep=0x86254c0)
    at /usr/include/sigc++-2.0/sigc++/functors/slot.h:103
#29 0xb7db6a85 in ?? () from /usr/lib/libglibmm-2.4.so.1
#30 0xb7e13436 in ?? () from /usr/lib/libglib-2.0.so.0
#31 0xb7e12cc6 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#32 0xb7e16083 in ?? () from /usr/lib/libglib-2.0.so.0
#33 0xb7e16467 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#34 0xb58e7264 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb5dc0307 in Gtk::Main::run_impl () from /usr/lib/libgtkmm-2.4.so.1
#36 0xb5dc00f2 in Gtk::Main::run () from /usr/lib/libgtkmm-2.4.so.1
#37 0xb61544a1 in Ingen::GUI::App::run () at ../ingen/src/gui/App.cpp:157
#38 0xb620b2c1 in run () at ../ingen/src/gui/gui.cpp:37
#39 0x0804e14a in main (argc=2, argv=0xbfaa80c4) at ../ingen/src/ingen/main.cpp:292
(gdb) 

comment:4 Changed 13 years ago by David Robillard

Resolution: fixed
Status: reopenedclosed

Fixed in r1877

Note: See TracTickets for help on using tickets.