Steve a mutex is not needed as jsonc is supposed to be reentrant I have made a few changes, can you please resync nDPI+ntopng and try again?
Thanks Luca On Aug 26, 2013, at 9:44 PM, Steve Clark <[email protected]> wrote: > Hi Luca, > > Another crash after 3 hours 15 minutes with latest svn. > > Could this be a race condition where a mutex is needed for > access to the json library? > > GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6) > Copyright (C) 2010 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "i686-redhat-linux-gnu". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > Reading symbols from /var/lib/pgsql/ntopng/ntopng...done. > (gdb) r -l -s -i eth3 -d/var/tmp -w 3000 -n 0 -m > 172.16.0.0/12,10.0.0.0/8,192.168.0.0/16 > Starting program: /var/lib/pgsql/ntopng/ntopng -l -s -i eth3 -d/var/tmp -w > 3000 -n 0 -m 172.16.0.0/12,10.0.0.0/8,192.168.0.0/16 > [Thread debugging using libthread_db enabled] > 26/Aug/2013 11:25:18 [Redis.cpp:54] Succesfully connected to Redis 32 bit > v.2.6.14 > 26/Aug/2013 11:25:18 [Ntop.cpp:419] Setting local networks to > 172.16.0.0/12,10.0.0.0/8,192.168.0.0/16 > 26/Aug/2013 11:25:18 [Ntop.cpp:419] Setting local networks to > 192.168.0.0/16,172.16.0.0/12,10.0.0.0/8,0.0.0.0/32,224.0.0.0/8,239.0.0.0/8,255.255.255.255/32 > 26/Aug/2013 11:25:18 [Prefs.cpp:525] WARNING: Config file > /var/tmp/ntopng-users.conf not found (it will be created) > 26/Aug/2013 11:25:19 [PF_RINGInterface.cpp:42] Reading packets from PF_RING > v.5.6.1 interface eth3... > 26/Aug/2013 11:25:19 [Ntop.cpp:468] Registered interface eth3 [id: 0] > 26/Aug/2013 11:25:19 [main.cpp:161] PID stored in file /var/tmp/ntopng.pid > [New Thread 0xb5fe6b70 (LWP 30501)] > [New Thread 0xb55e5b70 (LWP 30502)] > [New Thread 0xb49ffb70 (LWP 30503)] > [New Thread 0xb3dffb70 (LWP 30504)] > [New Thread 0xb31ffb70 (LWP 30505)] > [New Thread 0xb25ffb70 (LWP 30506)] > 26/Aug/2013 11:25:19 [HTTPserver.cpp:308] HTTP server listening on port 3000 > [/var/lib/pgsql/ntopng/httpdocs][/var/lib/pgsql/ntopng/scripts] > 26/Aug/2013 11:25:19 [main.cpp:193] Using RRD version 1.4.7 > 26/Aug/2013 11:25:19 [main.cpp:202] Working directory: /var/tmp > 26/Aug/2013 11:25:19 [main.cpp:204] Scripts/HTML pages directory: > /var/lib/pgsql/ntopng > 26/Aug/2013 11:25:19 [Ntop.cpp:146] Welcome to ntopng i686 v.1.0.1 > ($Revision: 6697 $) - (C) 1998-13 ntop.org > 26/Aug/2013 11:25:19 [PeriodicActivities.cpp:51] Started periodic activities > loop... > [New Thread 0xb19ffb70 (LWP 30507)] > [New Thread 0xb0dffb70 (LWP 30508)] > [New Thread 0xb01ffb70 (LWP 30509)] > [New Thread 0xaf7feb70 (LWP 30510)] > [New Thread 0xaedfdb70 (LWP 30511)] > [New Thread 0xae3fcb70 (LWP 30512)] > 26/Aug/2013 11:25:19 [NetworkInterface.cpp:506] Started packet polling on > interface eth3... > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb0dffb70 (LWP 30508)] > json_object_put (jso=0xb4b00008) at json_object.c:156 > 156 jso->_ref_count--; > Missing separate debuginfos, use: debuginfo-install > GeoIP-1.4.8-1.1.el6.art.i686 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 json_object_put (jso=0xb4b00008) at json_object.c:156 > #1 0x0806fc52 in NdpiStats::serialize (this=0x58a32fa0, iface=0x8176960) at > NdpiStats.cpp:157 > #2 0x0806fecc in NdpiStats::getJSONObject (this=0x58a32fa0, iface=0x8176960) > at NdpiStats.cpp:209 > #3 0x0805c526 in Host::serialize (this=0x26e9a7c8) at Host.cpp:449 > #4 0x0805b6ba in Host::lua (this=0x26e9a7c8, vm=0xb4bc51c0, > host_details=true, verbose=true, returnHost=true) > at Host.cpp:243 > #5 0x08071de8 in NetworkInterface::getHostInfo (this=0x8176960, > vm=0xb4bc51c0, host_ip=0xb4b75cc0 "10.254.114.140", > vlan_id=0) at NetworkInterface.cpp:702 > #6 0x0806b22d in ntop_get_interface_host_info (vm=0xb4bc51c0) at Lua.cpp:459 > #7 0x080d058f in lj_BC_FUNCC () > #8 0x080beecd in lua_pcall () > #9 0xb4bc51c0 in ?? () > #10 0x08076f82 in PeriodicActivities::runScript (this=0x8174560, > path=0xb0dff24c "/var/lib/pgsql/ntopng/scripts/callbacks/minute.lua") at > PeriodicActivities.cpp:69 > #11 0x080770ed in PeriodicActivities::minuteActivitiesLoop (this=0x8174560) > at PeriodicActivities.cpp:98 > #12 0x08076e06 in minuteStartLoop (ptr=0x8174560) at PeriodicActivities.cpp:44 > #13 0x007cda09 in start_thread () from /lib/libpthread.so.0 > #14 0x006df43e in clone () from /lib/libc.so.6 > (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
