That's the only place that routine is called... which may be why nobody else
has it the problem.  However, I can't make it fail - I'm running something
like the 18th - but the code in emitter hasn't changed since 2/4
(myGlobals).

Looks like an attempt to free unmalloced memory... or double free it...

Anyway - try this... @ the end of emitter.c, the code:

  if(filterPattern.fastmap)
    free(filterPattern.fastmap);

s/b

  if(filterPattern.fastmap != NULL)
    free(filterPattern.fastmap);

Also, there is another case around line 687... should probably get the same
treatment.

Pls let me know!

-----Burton



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Domski, Samuel
Sent: Friday, February 22, 2002 4:27 PM
To: [EMAIL PROTECTED]
Subject: [Ntop] Mutex.C Segmentation Fault


Hi All,

NTOP (02/15/2001) violently dies when I try to use ./protoUsage.pl. I'm
running NTOP on Athlon 1700 with 512Mb RAM (220 free during this incident)
and RH 7.2 (no patches, gcc-2.96-98, glibc-2.2.4-13). I'd appreciate any
insight on this issue. This is also happening when trying to do this
manually http://ntophost:port/dumpTrafficData.html. I get the dump and then
NTOP dies.

Here is the debug from my machine:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 5126 (LWP 1523)]
__pthread_mutex_lock (mutex=0x464c498f) at mutex.c:99
99      mutex.c: No such file or directory.
        in mutex.c
(gdb) list
94      in mutex.c
(gdb) info stack
#0  __pthread_mutex_lock (mutex=0x464c498f) at mutex.c:99
#1  0x40555be8 in __libc_free (mem=0x400a4d3f) at malloc.c:3152
#2  0x40286725 in ntop_safefree (ptr=0x430d9cbc, file=0x400a64b5
"emitter.c",
    line=1014) at leaks.c:468
#3  0x40035561 in dumpNtopTrafficInfo (options=0x430da3d2 "language")
    at emitter.c:1014
#4  0x4003e5a8 in returnHTTPPage (
    pageName=0x430da3bd "dumpTrafficData.html?language", postLen=-1,
    httpRequestedAt=0x430da374, usedFork=0x430da370) at http.c:1644
#5  0x4003eeb0 in handleHTTPrequest (from={s_addr = 16777343}) at
http.c:1919
#6  0x4005c79b in handleSingleWebConnection (fdmask=0x430daa0c)
    at webInterface.c:1122
#7  0x4005c5e7 in handleWebConnections (notUsed=0x0) at webInterface.c:1056
#8  0x40231b9c in pthread_start_thread (arg=0x430dabe0) at manager.c:274
#9  0x40231c7f in pthread_start_thread_event (arg=0x430dabe0) at
manager.c:298


Any thoughts on this issue are appreciated.

Regards,
Sam Domski

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

Reply via email to