When a prototype channel is copied to a prototype compartment, a segmentation fault occurs at exit (destructor of HHChannel). Here is the gdb backtrace:
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff59c0b10 in Element::dataHandler() const () from /home/subha/src/moose/python/moose/_moose.so (gdb) bt #0 0x00007ffff59c0b10 in Element::dataHandler() const () from /home/subha/src/moose/python/moose/_moose.so #1 0x00007ffff59d5375 in ObjId::data() const () from /home/subha/src/moose/python/moose/_moose.so #2 0x00007ffff558325a in HHChannel::~HHChannel() () from /home/subha/src/moose/python/moose/_moose.so #3 0x00007ffff55e1147 in Dinfo<HHChannel>::destroyData(char*) const () from /home/subha/src/moose/python/moose/_moose.so #4 0x00007ffff59c7659 in ZeroDimHandler::~ZeroDimHandler() () from /home/subha/src/moose/python/moose/_moose.so #5 0x00007ffff59c76f9 in ZeroDimHandler::~ZeroDimHandler() () from /home/subha/src/moose/python/moose/_moose.so #6 0x00007ffff59c149c in Element::~Element() () from /home/subha/src/moose/python/moose/_moose.so #7 0x00007ffff59d4ea5 in Id::destroy() const () from /home/subha/src/moose/python/moose/_moose.so #8 0x00007ffff59c141c in Element::destroyElementTree(std::vector<Id, std::allocator<Id> > const&) () from /home/subha/src/moose/python/moose/_moose.so #9 0x00007ffff5534073 in Neutral::destroy(Eref const&, Qinfo const*, int) () from /home/subha/src/moose/python/moose/_moose.so #10 0x00007ffff58ec88a in finalize () at moosemodule.cpp:859
moosemodule.cpp:859 calls Neutral::destroy() on the Shell pointer.
How to reproduce:
Run regressionTests/segfault_chancopy.py
Anonymous
Diff:
This seems to be a duplicate of bug [#115].
Related
Bugs: #115