Fixed
Luca

On Jun 4, 2013, at 12:42 PM, Steve Clark <[email protected]> wrote:

> Hi Luca,
> 
> Another crash :-( 
> 
> 
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb59e3b70 (LWP 8767)]
> 0x08059155 in IpAddress::_intoa (this=0x0, buf=0xb59e2fe0 "\310\062", 
> <incomplete sequence \374\264>, bufLen=64)
>     at IpAddress.cpp:131
> 131       if((addr.ipVersion == 4) || (addr.ipVersion == 0 /* Misconfigured 
> */))
> Missing separate debuginfos, use: debuginfo-install 
> glibc-2.12-1.47.el6_2.12.i686 libgcc-4.4.7-3.el6.i686 
> libpcap-1.0.0-6.20091201git117cb5.el6.i686 libstdc++-4.4.7-3.el6.i686 
> libxml2-2.7.6-12.el6_4.1.i686 zlib-1.2.3-27.el6.i686
> (gdb) bt
> #0  0x08059155 in IpAddress::_intoa (this=0x0, buf=0xb59e2fe0 "\310\062", 
> <incomplete sequence \374\264>, bufLen=64)
>     at IpAddress.cpp:131
> #1  0x080591fe in IpAddress::print (this=0x0, str=0xb59e2fe0 "\310\062", 
> <incomplete sequence \374\264>, str_len=64)
>     at IpAddress.cpp:148
> #2  0x0805758a in Host::lua (this=0xb1ff0d38, vm=0xb4fc31c0, 
> host_details=true, returnHost=true) at Host.cpp:118
> #3  0x0805ed77 in NetworkInterface::getHostInfo (this=0x8197228, 
> vm=0xb4fc31c0, host_ip=0xb2587d90 "10.30.32.218", 
>     vlan_id=0) at NetworkInterface.cpp:533
> #4  0x0805ab71 in ntop_get_interface_host_info (vm=0xb4fc31c0) at Lua.cpp:340
> #5  0x080cd2ef in lj_BC_FUNCC ()
> #6  0x080b30d4 in lua_pcall (L=0xb4fc31c0, nargs=0, nresults=-1, errfunc=0) 
> at lj_api.c:1052
> #7  0x0805c41a in Lua::run_script (this=0xb0502e48, script_path=0xb59e324c 
> "./scripts/callbacks/minute.lua")
>     at Lua.cpp:892
> #8  0x08061e22 in PeriodicActivities::runScript (this=0x8195240, 
> path=0xb59e324c "./scripts/callbacks/minute.lua")
>     at PeriodicActivities.cpp:69
> #9  0x08061f8d in PeriodicActivities::minuteActivitiesLoop (this=0x8195240) 
> at PeriodicActivities.cpp:98
> #10 0x08061c6e in minuteStartLoop (ptr=0x8195240) at PeriodicActivities.cpp:44
> #11 0x007cda09 in start_thread () from /lib/libpthread.so.0
> #12 0x006df43e in clone () from /lib/libc.so.6
> (gdb) p *this
> Cannot access memory at address 0x0
> (gdb) fr 2
> #2  0x0805758a in Host::lua (this=0xb1ff0d38, vm=0xb4fc31c0, 
> host_details=true, returnHost=true) at Host.cpp:118
> 118         lua_push_str_table_entry(vm, "ip", ip->print(buf, sizeof(buf)));
> (gdb) p * this
> $1 = {<GenericHashEntry> = {_vptr.GenericHashEntry = 0x0, hash_next = 0x12b9, 
> first_seen = -1384217432, 
>     last_seen = -1363983792, iface = 0x0}, mac_address = 
> "\000\000\000\000\000", asn = 0, symbolic_name = 0x0, 
>   country = 0x0, city = 0x0, asname = 0x0, category = 
> "\000\000\000\000\001\000\000", num_uses = 0, vlan_id = 0, 
>   latitude = 0, longitude = 0, ip = 0x0, ndpiStats = 0x0, sent = {numPkts = 
> 0, numBytes = 0}, rcvd = {numPkts = 0, 
>     numBytes = 0}, tcp_sent = {numPkts = 0, numBytes = 0}, tcp_rcvd = 
> {numPkts = 0, numBytes = 0}, udp_sent = {
>     numPkts = 0, numBytes = 0}, udp_rcvd = {numPkts = 0, numBytes = 0}, 
> icmp_sent = {numPkts = 0, numBytes = 0}, 
>   icmp_rcvd = {numPkts = 0, numBytes = 0}, other_ip_sent = {numPkts = 0, 
> numBytes = 0}, other_ip_rcvd = {numPkts = 0, 
>     numBytes = 0}, name_resolved = false, m = 0x0, localHost = false}
> (gdb) fr 3
> #3  0x0805ed77 in NetworkInterface::getHostInfo (this=0x8197228, 
> vm=0xb4fc31c0, host_ip=0xb2587d90 "10.30.32.218", 
>     vlan_id=0) at NetworkInterface.cpp:533
> 533         h->lua(vm, true, true);
> (gdb) ps *this
> Undefined command: "ps".  Try "help".
> (gdb) p *this
> $2 = {_vptr.NetworkInterface = 0x816dbc8, ifname = 0x81953f0 "eth3", ethStats 
> = {eth_IPv4 = {numPkts = 580309526, 
>       numBytes = 353852590908}, eth_IPv6 = {numPkts = 0, numBytes = 0}, 
> eth_ARP = {numPkts = 900, numBytes = 54000}, 
>     eth_MPLS = {numPkts = 0, numBytes = 0}, eth_other = {numPkts = 5202, 
> numBytes = 586516}}, pcap_datalink_type = 1, 
>   pollLoop = 3003108208, flows_hash = 0x81972b0, hosts_hash = 0x824f2e0, 
> ndpi_struct = 0x8307310, 
>   last_pkt_rcvd = 1370324106, next_idle_flow_purge = 1370324111, 
> next_idle_host_purge = 1370324111, 
>   polling_started = true}
> (gdb) 
> 
> 
> 
> -- 
> Stephen Clark
> NetWolves
> Director of Technology
> Phone: 813-579-3200
> Fax: 813-882-0209
> Email: [email protected]
> http://www.netwolves.com
> _______________________________________________
> Ntop-dev mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to