ingen segfaults on exit
|Reported by:||agraef||Owned by:||dave|
This isn't 100% reproducible, but quite often ingen, if I load a patch with it and then immediately quit ingen, segfaults in main() at main.cpp:248 (gdb backtrace attached). Sometimes it also bails out with an assertion like this:
ingen: /usr/include/boost/intrusive/detail/utilities.hpp:356: void boost::intrusive::detail::destructor_impl(Hook&, boost::intrusive::detail::link_dispatch<(boost::intrusive::link_mode_type)1u>) [with Hook = boost::intrusive::detail::generic_hook<boost::intrusive::get_list_node_algo<void*>, boost::intrusive::default_tag, (boost::intrusive::link_mode_type)1u, 1>]: Assertion `!hook.is_linked()' failed. Aborted
In either case, commenting out the 'delete world;' at main.cpp:248 fixes the problem. It seems that there's some double deallocation going on there, but I haven't looked into this very deeply.
I've been able to reproduce this issue fairly reliably with the attached patch, created with the latest ingen revision.