Hello there.
The last snapshot for ntop insists on signaling a segmentation fault after
some minutes. It faults alone, without any intervention from the browser.
The machine is a RedHat Linux 6.2, libcap 0.7.1.
The command line is set args -w 4000 -u nobody -P /var/log/ntop -a
/var/log/ntop/ntop.log -K
I've started it with gdb, and the traceback shows the following information:
10/May/2002 11:22:45 Started thread (6151) for network packet sniffing on
eth0.
10/May/2002 11:22:46 Extending hash size [newSize=512][deviceId=0]
[Switching to Thread 16425]
[Switching to Thread 16424]
Program received signal SIGSEGV, Segmentation fault.
0x404390b6 in chunk_free (ar_ptr=0x404cdcc0, p=0x85a3178) at malloc.c:3097
3097 malloc.c: No existe el fichero o el directorio.
(gdb) where
#0 0x404390b6 in chunk_free (ar_ptr=0x404cdcc0, p=0x85a3178) at
malloc.c:3097
#1 0x40438f9a in __libc_free (mem=0x85a3180) at malloc.c:3023
#2 0x40193f6e in ntop_safefree (ptr=0xbf5ffcc8, file=0x401b8a4f
"sessions.c",
line=246) at leaks.c:465
#3 0x401a091b in freeSession (sessionToPurge=0x85a3180, actualDeviceId=0,
allocateMemoryIfNeeded=1) at sessions.c:246
#4 0x401a0b05 in scanTimedoutTCPSessions (actualDeviceId=0) at
sessions.c:310
#5 0x4018ff6f in purgeIdleHosts (actDevice=0) at hash.c:471
#6 0x40195da9 in scanIdleLoop (notUsed=0x0) at ntop.c:611
#7 0x4013db85 in pthread_start_thread (arg=0xbf5ffe40) at manager.c:241
The session that is being freed exists, and the pointer seems to be valid,
but there is a problem somewhere that breaks the free of the memory. I
haven't seen an excessive
Hope this helps in fix these memory problems.
----------------------------------------------------------
Jordi Vila Mas
Ingeniero de Telecomunicaciones
Ingeniero de proyectos, Administrador de seguridad
G.T.D. Ingenier�a de Sistemas y Software Industrial, S.A.
c/ Rosa Sensat, 9-11, 5� Planta Edificio Eurocity II
08005 Barcelona (SPAIN)
Telf: (34 93) 225 77 00 Fax: (34 93) 225 77 08
mailto:[EMAIL PROTECTED]
http://www.gtd.es
----------------------------------------------------------
Warning
The information in this e-mail and in any attachments is
confidential and intended solely for the attention and use of the
named addressee(s). It must therefore not be disclosed to any person
without our previous authorisation. If you are not the intended
recipient , or a person responsible for delivering it to the
intended recipient, you are not authorised to and must not disclose,
copy, distribute, or retain this message or any part of it and you
are requested to notify the sender immediately. Electronic messages
may be altered. GTD, S.A and its subsidiaries shall therefore accept
no liability whatsoever and howsoever resulting from this message
if it has been changed, distorted or falsified.
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop