[Ns-bugs] [Bug 877] python bindings broken with multiple inheritance ?

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Thu Apr 15 05:40:29 PDT 2010


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





--- Comment #2 from Gustavo J. A. M. Carneiro <gjcarneiro at gmail.com>  2010-04-15 08:40:29 EDT ---
There is something weird going on with the 'this' pointer when moving across
virtual method calls from PcapHelperForDevice -> YansWifiPhyHelper
(EnablePcapInternal).

(gdb) f
#6  0x00007ffff54c6043 in ns3::PcapHelperForDevice::EnablePcap (this=0xa13f50,
prefix=..., nd=..., promiscuous=false, 
    explicitFilename=false) at ../src/helper/trace-helper.cc:417
417      EnablePcapInternal (prefix, nd, promiscuous, explicitFilename);
(gdb) down
#5  0x00007ffff548f26e in ns3::YansWifiPhyHelper::Create (this=0x7fffffffd270,
node=..., device=Cannot access memory at address 0x0
)
    at ../src/helper/yans-wifi-helper.cc:233
233      Ptr<YansWifiPhy> phy = m_phy.Create<YansWifiPhy> ();
(gdb) down
#4  0x00007ffff5491681 in ns3::ObjectFactory::Create<ns3::YansWifiPhy>
(this=0x7fffffffd288) at debug/ns3/object-factory.h:110
110      Ptr<Object> object = Create ();
(gdb) 

Indeed, maybe there's something I am missing about MI and the bindings... I'll
have to recheck this with more time...

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


More information about the Ns-bugs mailing list