[Ns-bugs] [Bug 355] New: Python scripts may crash on shutdown

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Thu Sep 18 04:01:18 PDT 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=355

           Summary: Python scripts may crash on shutdown
           Product: ns-3
           Version: ns-3.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P3
         Component: python bindings
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: gjcarneiro at gmail.com


#0  0x00007f233619e095 in raise () from /lib/libc.so.6
#1  0x00007f233619faf0 in abort () from /lib/libc.so.6
#2  0x00007f23361972df in __assert_fail () from /lib/libc.so.6
#3  0x00007f2337392cb8 in PyGILState_Ensure () at Python/pystate.c:497
#4  0x00007f2335bec8ce in PyNs3Application__PythonHelper::DoDispose
(this=0xed7360)
    at debug/bindings/python/ns3_module_node.cc:6984
#5  0x00007f23351a23e9 in ns3::Object::Dispose (this=0xed7360) at
../src/core/object.cc:136
#6  0x00007f233529a4a4 in ns3::Node::DoDispose (this=0x702e70) at
../src/node/node.cc:155
#7  0x00007f23351a23e9 in ns3::Object::Dispose (this=0x702e70) at
../src/core/object.cc:136
#8  0x00007f23352b8a62 in ~NodeListPriv (this=0x7aa990) at
../src/node/node-list.cc:110
#9  0x00007f23351a1d9d in ns3::Object::MaybeDelete (this=0x7aa990) at
../src/core/object.cc:246
#10 0x00007f2335b8efa6 in ns3::Object::Unref (this=0x7aa990) at
debug/ns3/object.h:346
#11 0x00007f23352baa57 in ~Ptr (this=0x7f23359190e0) at debug/ns3/ptr.h:407
#12 0x00007f23352b891a in __tcf_1 () at ../src/node/node-list.cc:81
#13 0x00007f23361a1110 in exit () from /lib/libc.so.6
#14 0x00007f233618a1cb in __libc_start_main () from /lib/libc.so.6
#15 0x0000000000400699 in _start ()

This is a harmless problem, but ugly.  It happens because NS-3 keeps references
to nodes.  Calling ns3.Simulator.Destroy() in the Python script fixes this
problem, though.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list