Menu

#117 Segmentation fault at exit when prototype channels are copied

buildQ
closed-duplicate
None
5
2015-02-07
2013-07-29
No

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

Discussion

  • Subhasis Ray

    Subhasis Ray - 2013-07-29
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -28,3 +28,5 @@
    
     moosemodule.cpp:859 calls Neutral::destroy() on the Shell pointer.
    
    +**How to reproduce:**
    +Run regressionTests/segfault_chancopy.py
    
     
  • Subhasis Ray

    Subhasis Ray - 2013-11-23
    • status: open --> closed-duplicate
     
  • Subhasis Ray

    Subhasis Ray - 2013-11-23

    This seems to be a duplicate of bug [#115].

     

    Related

    Bugs: #115

Anonymous
Anonymous

Add attachments
Cancel