Menu

#135 Segmentation fault at exit when freeing Table vector

async13
open
nobody
None
5
2014-07-10
2014-05-07
No

Segmentation fault occurs at exit when Demos/snuppets/lifcomp.py is executed. The error message on terminal is:

[hostname:08737] *** Process received signal ***
[hostname:08737] Signal: Segmentation fault (11)
[hostname:08737] Signal code: Address not mapped (1)
[hostname:08737] Failing at address: 0x7f5c0f8ce7a0

GDB Backtrace:

#0 malloc_consolidate (av=av@entry=0x7ffff7bb6740 <main_arena>) at malloc.c:4088
#1 0x00007ffff78757e8 in _int_free (av=0x7ffff7bb6740 <main_arena>, p=0x27fcd70, have_lock=0) at malloc.c:3994
#2 0x00007ffff37b2920 in __gnu_cxx::new_allocator<double>::deallocate (this=0x1c66940, __p=0x28005a0) at /usr/include/c++/4.8/ext/new_allocator.h:110
#3 0x00007ffff37ae736 in std::_Vector_base<double, std::allocator<double> >::_M_deallocate (this=0x1c66940, __p=0x28005a0, __n=1024) at /usr/include/c++/4.8/bits/stl_vector.h:174
#4 0x00007ffff37aa574 in std::_Vector_base<double, std::allocator<double> >::~_Vector_base (this=0x1c66940, __in_chrg=<optimized out>) at /usr/include/c++/4.8/bits/stl_vector.h:160
#5 0x00007ffff37a466e in std::vector<double, std::allocator<double> >::~vector (this=0x1c66940, __in_chrg=<optimized out>) at /usr/include/c++/4.8/bits/stl_vector.h:416
#6 0x00007ffff389f380 in TableBase::~TableBase (this=0x1c66938, __in_chrg=<optimized out>) at TableBase.h:18
#7 0x00007ffff38a4286 in Table::~Table (this=0x1c66938, __in_chrg=<optimized out>) at Table.h:16
#8 0x00007ffff38a43f0 in Dinfo<Table>::destroyData (this=0x7ffff60323b0 <Table::initCinfo()::dinfo>, d=0x1c66938 "") at ../basecode/Dinfo.h:138
#9 0x00007ffff3758a6b in DataElement::~DataElement (this=0xebb5f0, __in_chrg=<optimized out>) at DataElement.cpp:51
#10 0x00007ffff3758e3a in GlobalDataElement::~GlobalDataElement (this=0xebb5f0, __in_chrg=<optimized out>) at GlobalDataElement.cpp:35
#11 0x00007ffff3758e6a in GlobalDataElement::~GlobalDataElement (this=0xebb5f0, __in_chrg=<optimized out>) at GlobalDataElement.cpp:36
#12 0x00007ffff3760328 in Id::clearAllElements () at Id.cpp:195
#13 0x00007ffff3ab68cb in finalize () at moosemodule.cpp:886

Discussion

  • Subhasis Ray

    Subhasis Ray - 2014-05-07
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,6 @@
     Segmentation fault occurs at exit when Demos/snuppets/lifcomp.py is executed. The error message on terminal is:
    
    -[hostname:08737] *** Process received signal ***
    +[hostname:08737] \*\*\* Process received signal \*\*\*
     [hostname:08737] Signal: Segmentation fault (11)
     [hostname:08737] Signal code: Address not mapped (1)
     [hostname:08737] Failing at address: 0x7f5c0f8ce7a0
    @@ -8,17 +8,18 @@
    
     GDB Backtrace:
    
    -#0  malloc_consolidate (av=av@entry=0x7ffff7bb6740 <main_arena>) at malloc.c:4088
    -#1  0x00007ffff78757e8 in _int_free (av=0x7ffff7bb6740 <main_arena>, p=0x27fcd70, have_lock=0) at malloc.c:3994
    -#2  0x00007ffff37b2920 in __gnu_cxx::new_allocator<double>::deallocate (this=0x1c66940, __p=0x28005a0) at /usr/include/c++/4.8/ext/new_allocator.h:110
    -#3  0x00007ffff37ae736 in std::_Vector_base<double, std::allocator<double> >::_M_deallocate (this=0x1c66940, __p=0x28005a0, __n=1024) at /usr/include/c++/4.8/bits/stl_vector.h:174
    -#4  0x00007ffff37aa574 in std::_Vector_base<double, std::allocator<double> >::~_Vector_base (this=0x1c66940, __in_chrg=<optimized out>) at /usr/include/c++/4.8/bits/stl_vector.h:160
    -#5  0x00007ffff37a466e in std::vector<double, std::allocator<double> >::~vector (this=0x1c66940, __in_chrg=<optimized out>) at /usr/include/c++/4.8/bits/stl_vector.h:416
    -#6  0x00007ffff389f380 in TableBase::~TableBase (this=0x1c66938, __in_chrg=<optimized out>) at TableBase.h:18
    -#7  0x00007ffff38a4286 in Table::~Table (this=0x1c66938, __in_chrg=<optimized out>) at Table.h:16
    -#8  0x00007ffff38a43f0 in Dinfo<Table>::destroyData (this=0x7ffff60323b0 <Table::initCinfo()::dinfo>, d=0x1c66938 "") at ../basecode/Dinfo.h:138
    -#9  0x00007ffff3758a6b in DataElement::~DataElement (this=0xebb5f0, __in_chrg=<optimized out>) at DataElement.cpp:51
    -#10 0x00007ffff3758e3a in GlobalDataElement::~GlobalDataElement (this=0xebb5f0, __in_chrg=<optimized out>) at GlobalDataElement.cpp:35
    -#11 0x00007ffff3758e6a in GlobalDataElement::~GlobalDataElement (this=0xebb5f0, __in_chrg=<optimized out>) at GlobalDataElement.cpp:36
    -#12 0x00007ffff3760328 in Id::clearAllElements () at Id.cpp:195
    -#13 0x00007ffff3ab68cb in finalize () at moosemodule.cpp:886
    +
    +> \#0  malloc_consolidate (av=av@entry=0x7ffff7bb6740 <main_arena\>) at malloc.c:4088
    +\#1  0x00007ffff78757e8 in \_int\_free (av=0x7ffff7bb6740 <main_arena\>, p=0x27fcd70, have_lock=0) at malloc.c:3994
    +\#2  0x00007ffff37b2920 in \_\_gnu_cxx::new_allocator<double\>::deallocate (this=0x1c66940, __p=0x28005a0) at /usr/include/c++/4.8/ext/new_allocator.h:110
    +\#3  0x00007ffff37ae736 in std::\_Vector_base<double, std::allocator<double\> \>::_M_deallocate (this=0x1c66940, \_\_p=0x28005a0, \_\_n=1024) at /usr/include/c++/4.8/bits/stl_vector.h:174
    +\#4  0x00007ffff37aa574 in std::\_Vector_base<double, std::allocator<double\> \>::~_Vector_base (this=0x1c66940, \_\_in\_chrg=<optimized out\>) at /usr/include/c++/4.8/bits/stl\_vector.h:160
    +\#5  0x00007ffff37a466e in std::vector<double, std::allocator<double\> \>::~vector (this=0x1c66940, \_\_in\_chrg=<optimized out\>) at /usr/include/c++/4.8/bits/stl\_vector.h:416
    +\#6  0x00007ffff389f380 in TableBase::~TableBase (this=0x1c66938, \_\_in\_chrg=<optimized out\>) at TableBase.h:18
    +\#7  0x00007ffff38a4286 in Table::~Table (this=0x1c66938, \_\_in\_chrg=<optimized out\>) at Table.h:16
    +\#8  0x00007ffff38a43f0 in Dinfo<Table\>::destroyData (this=0x7ffff60323b0 <Table::initCinfo()::dinfo\>, d=0x1c66938 "") at ../basecode/Dinfo.h:138
    +\#9  0x00007ffff3758a6b in DataElement::~DataElement (this=0xebb5f0, \_\_in\_chrg=<optimized out\>) at DataElement.cpp:51
    +\#10 0x00007ffff3758e3a in GlobalDataElement::~GlobalDataElement (this=0xebb5f0, \_\_in\_chrg=<optimized out\>) at GlobalDataElement.cpp:35
    +\#11 0x00007ffff3758e6a in GlobalDataElement::~GlobalDataElement (this=0xebb5f0, \_\_in\_chrg=<optimized out\>) at GlobalDataElement.cpp:36
    +\#12 0x00007ffff3760328 in Id::clearAllElements () at Id.cpp:195
    +\#13 0x00007ffff3ab68cb in finalize () at moosemodule.cpp:886
    
     
  • Subhasis Ray

    Subhasis Ray - 2014-05-07

    fixed formatting of gdb backtrace

     

Anonymous
Anonymous

Add attachments
Cancel