[Ntop-dev] Double free at shutdown in latest ntop (fwd)
Robbert Kouprie
robbert at bagijnhof.tudelft.nl
Tue Mar 29 17:04:58 CEST 2005
Btw, I have some occurences of this another place also. Namely, in the
idle purge cycle. This will randomly crash ntop (when not using sticky
hosts that is).
-- Robbert
---------- Forwarded message ----------
Date: Tue, 29 Mar 2005 16:49:35 +0200 (CEST)
From: Robbert Kouprie <robbert at bagijnhof.tudelft.nl>
Reply-To: ntop-dev at unipi.it
To: ntop-dev at Unipi.IT
Subject: RE: [Ntop-dev] Double free at shutdown in latest ntop
Collected a backtrace, hope this helps.
-- Robbert
(gdb) c
Continuing.
*** glibc detected *** double free or corruption (!prev): 0x08d4c118 ***
Program received signal SIGABRT, Aborted.
[Switching to Thread -1265636432 (LWP 3117)]
0x0036c7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0 0x0036c7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x026de955 in raise () from /lib/tls/libc.so.6
#2 0x026e0319 in abort () from /lib/tls/libc.so.6
#3 0x02711f8a in __libc_message () from /lib/tls/libc.so.6
#4 0x027184f8 in _int_free () from /lib/tls/libc.so.6
#5 0x02718aca in free () from /lib/tls/libc.so.6
#6 0x003991d9 in ntop_safefree (ptr=0x27dd800, file=0x3c6217 "util.c",
line=6542) at leaks.c:628
#7 0x003b4424 in freePortsUsage (ports=0x8d4c118) at util.c:6542
#8 0x00391489 in freeHostInfo (host=0x8d624e8, actualDeviceId=0) at hash.c:429
#9 0x00391e5d in freeHostInstances (actualDeviceId=0) at hash.c:556
#10 0x0039a9e4 in cleanup (signo=0) at ntop.c:941
#11 0x0020438b in shutdownNtop () at webInterface.c:916
#12 0x001cbcf7 in handleHTTPrequest (from=
{hostFamily = 10, addr = {_hostIp4Address = {s_addr = 0},
_hostIp6Address = {in6_u = {u6_addr8 =
"\000\000\000\000\000\000\000\000\000\020\000\000\000\000\000", u6_addr16 = {0,
0, 0, 0, 4096, 0, 0, 0}, u6_addr32 = {0, 0, 4096, 0}}}}}) at http.c:2390
#13 0x002045aa in handleWebConnections (notUsed=0x0) at webInterface.c:9069
#14 0x0015c3ae in start_thread () from /lib/tls/libpthread.so.0
#15 0x0277daee in clone () from /lib/tls/libc.so.6
On Tue, 29 Mar 2005, Burton Strauss wrote:
> Robbert - can you run it under gdb so we can figure out precisely which
> statement that address maps to? Thanks!
> -----Burton
>
> -----Original Message-----
> From: ntop-dev-bounces at unipi.it [mailto:ntop-dev-bounces at unipi.it] On Behalf
> Of Robbert Kouprie
> Sent: Tuesday, March 29, 2005 6:40 AM
> To: ntop-dev at Unipi.IT
> Subject: [Ntop-dev] Double free at shutdown in latest ntop
>
> Hi,
>
> FYI,
>
> Once in a few times I get a double free error from glibc with the latest
> ntop CVS (picked up this morning). This is RedHat Enterprise Linux AS 4.0
> with kernel 2.6.9-5.0.3.ELsmp and glibc 2.3.4-2 (both standard).
>
> It happens when I do a shutdown from the webinterface, and from the log it
> seems to be located in the FREE_HOST routine.
>
> This is ntop with virtual Netflow device.
>
> Mar 29 14:30:53 ntop2 ntop[21809]: [MSGID0538544] Shutdown request has been
> received Mar 29 14:30:53 ntop2 ntop[21809]: [MSGID8462800] CLEANUP: ntop
> caught signal 0 Mar 29 14:30:53 ntop2 ntop[21809]: [MSGID8696238] CLEANUP:
> Cleaning up, set FLAG_NTOPSTATE_TERM Mar 29 14:30:53 ntop2 ntop[21809]:
> [MSGID8905482] SIGPIPE: Handled
> (ignored) 0 errors
> Mar 29 14:30:53 ntop2 ntop[21809]: [MSGID8844426] CLEANUP: Locking purge
> mutex (may block for a little while) Mar 29 14:30:53 ntop2 ntop[21809]:
> [MSGID8814988] CLEANUP: Locked purge mutex, continuing shutdown Mar 29
> 14:30:53 ntop2 ntop[21809]: [MSGID8638895] FREE_HOST: Start, 2
> device(s)
> Mar 29 14:30:53 ntop2 ntop[21809]: *** glibc detected *** double free or
> corruption (out): 0xb3f2cbd0 ***
>
> After which ntop dies.
>
> Regards,
> Robbert
> _______________________________________________
> Ntop-dev mailing list
> Ntop-dev at unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev
>
> _______________________________________________
> Ntop-dev mailing list
> Ntop-dev at unipi.it
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev
>
>
>
_______________________________________________
Ntop-dev mailing list
Ntop-dev at unipi.it
http://listgateway.unipi.it/mailman/listinfo/ntop-dev
More information about the Ntop-dev
mailing list