Yea - I get a $hit load of errors relating to libc: libc.so.6. For
example:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6b40b90 (LWP 9454)]
0x0052fbaa in free () from /lib/libc.so.6
(gdb)
(gdb)
(gdb)
(gdb)
(gdb)
(gdb) info threads
7 Thread 0xb31dbb90 (LWP 9458) 0x006fd402 in __kernel_vsyscall ()
6 Thread 0xb3bdcb90 (LWP 9457) 0x006fd402 in __kernel_vsyscall ()
5 Thread 0xb45ddb90 (LWP 9456) 0x006fd402 in __kernel_vsyscall ()
4 Thread 0xb5fffb90 (LWP 9455) 0x006fd402 in __kernel_vsyscall ()
* 3 Thread 0xb6b40b90 (LWP 9454) 0x0052fbaa in free () from
/lib/libc.so.6
2 Thread 0xb7541b90 (LWP 9453) 0x006fd402 in __kernel_vsyscall ()
1 Thread 0xb7f3b6d0 (LWP 9448) 0x006fd402 in __kernel_vsyscall ()
(gdb) info stack
#0 0x0052fbaa in free () from /lib/libc.so.6
#1 0x009a944c in ntop_safefree (ptr=0x59e80c7d, file=0xa0bdc8
"sessions.c",
line=380) at leaks.c:178
#2 0x009c9e53 in freeSession (sessionToPurge=0xeb463f0,
actualDeviceId=1,
allocateMemoryIfNeeded=1 '\001', lockMutex=0 '\0') at sessions.c:380
#3 0x009ca3b5 in scanTimedoutTCPSessions (actualDeviceId=1) at
sessions.c:548
#4 0x009a0dcf in purgeIdleHosts (actDevice=1) at hash.c:697
#5 0x009abe50 in scanIdleLoop (notUsed=0x0) at ntop.c:691
#6 0x003f149b in start_thread () from /lib/libpthread.so.0
#7 0x0059442e in clone () from /lib/libc.so.6
(gdb) bt full
#0 0x0052fbaa in free () from /lib/libc.so.6
No symbol table info available.
#1 0x009a944c in ntop_safefree (ptr=0x59e80c7d, file=0xa0bdc8
"sessions.c",
line=380) at leaks.c:178
No locals.
#2 0x009c9e53 in freeSession (sessionToPurge=0xeb463f0,
actualDeviceId=1,
allocateMemoryIfNeeded=1 '\001', lockMutex=0 '\0') at sessions.c:380
__t = (void *) 0xa22be8
#3 0x009ca3b5 in scanTimedoutTCPSessions (actualDeviceId=1) at
sessions.c:548
nextSession = (IPSession *) 0xbbdfc58
prevSession = (IPSession *) 0x110f76a8
theSession = (IPSession *) 0xeb463f0
_idx = 5793
freeSessionCount = 637
purgeLimit = 11992
idx = 0
#4 0x009a0dcf in purgeIdleHosts (actDevice=1) at hash.c:697
idx = 32768
numFreedBuckets = 55
numHosts = 55
now = 1248137967
theFlaggedHosts = (HostTraffic **) 0xe80b3b8
maxHosts = 1686
---Type <return> to continue, or q <return> to quit---
scannedHosts = 1687
hiresDeltaTime = 0
hiresTimeStart = {tv_sec = 1248137967, tv_usec = 638357}
hiresTimeEnd = {tv_sec = 1248137967, tv_usec = 638292}
el = <value optimized out>
prev = (HostTraffic *) 0xa8fcf68
next = <value optimized out>
lastPurgeTime = {1248137967, 1248137967, 0 <repeats 30 times>}
firstRun = 0 '\0'
#5 0x009abe50 in scanIdleLoop (notUsed=0x0) at ntop.c:691
i = 1
#6 0x003f149b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7 0x0059442e in clone () from /lib/libc.so.6
No symbol table info available.
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6b0cb90 (LWP 7977)]
0x00cbdbaa in free () from /lib/libc.so.6
(gdb) list
394 #endif
395 int i, rc, userSpecified;
396 char ifStr[196] = {0};
397 time_t lastTime;
398 char *cmdLineBuffer, *readBuffer, *readBufferWork;
399 FILE *fd;
400 struct stat fileStat;
401 int effective_argc;
402 char **effective_argv;
403 time_t endTime;
(gdb) info threads
7 Thread 0xb32e7b90 (LWP 7994) 0x002fc402 in __kernel_vsyscall ()
6 Thread 0xb3ce8b90 (LWP 7980) 0x002fc402 in __kernel_vsyscall ()
5 Thread 0xb46e9b90 (LWP 7979) 0x002fc402 in __kernel_vsyscall ()
4 Thread 0xb610bb90 (LWP 7978) 0x002fc402 in __kernel_vsyscall ()
* 3 Thread 0xb6b0cb90 (LWP 7977) 0x00cbdbaa in free () from
/lib/libc.so.6
2 Thread 0xb750db90 (LWP 7976) 0x002fc402 in __kernel_vsyscall ()
1 Thread 0xb7f076d0 (LWP 7973) 0x002fc402 in __kernel_vsyscall ()
(gdb) info stack
#0 0x00cbdbaa in free () from /lib/libc.so.6
#1 0x0031f44c in ntop_safefree (ptr=0xa0012, file=0x381dc8
"sessions.c",
line=380) at leaks.c:178
#2 0x0033fe53 in freeSession (sessionToPurge=0xb03dae00,
actualDeviceId=1,
allocateMemoryIfNeeded=1 '\001', lockMutex=0 '\0') at sessions.c:380
#3 0x003403b5 in scanTimedoutTCPSessions (actualDeviceId=1) at
sessions.c:548
#4 0x00316dcf in purgeIdleHosts (actDevice=1) at hash.c:697
#5 0x00321e50 in scanIdleLoop (notUsed=0x0) at ntop.c:691
#6 0x00b0349b in start_thread () from /lib/libpthread.so.0
#7 0x00d2242e in clone () from /lib/libc.so.6
(gdb) bt full
#0 0x00cbdbaa in free () from /lib/libc.so.6
No symbol table info available.
#1 0x0031f44c in ntop_safefree (ptr=0xa0012, file=0x381dc8
"sessions.c",
line=380) at leaks.c:178
No locals.
#2 0x0033fe53 in freeSession (sessionToPurge=0xb03dae00,
actualDeviceId=1,
allocateMemoryIfNeeded=1 '\001', lockMutex=0 '\0') at sessions.c:380
__t = (void *) 0x398be8
#3 0x003403b5 in scanTimedoutTCPSessions (actualDeviceId=1) at
sessions.c:548
nextSession = (IPSession *) 0xb0634128
prevSession = (IPSession *) 0xb03edc08
theSession = (IPSession *) 0xb03dae00
_idx = 15181
freeSessionCount = 20368
purgeLimit = 20902
idx = 0
#4 0x00316dcf in purgeIdleHosts (actDevice=1) at hash.c:697
idx = 32768
numFreedBuckets = 84
numHosts = 84
now = 1248202238
theFlaggedHosts = (HostTraffic **) 0xae056e0
maxHosts = 2569
---Type <return> to continue, or q <return> to quit---
scannedHosts = 2570
hiresDeltaTime = 0
hiresTimeStart = {tv_sec = 1248202238, tv_usec = 878423}
hiresTimeEnd = {tv_sec = 1248202238, tv_usec = 878344}
el = <value optimized out>
prev = (HostTraffic *) 0xb2468db0
next = <value optimized out>
lastPurgeTime = {1248202238, 1248202238, 0 <repeats 30 times>}
firstRun = 0 '\0'
#5 0x00321e50 in scanIdleLoop (notUsed=0x0) at ntop.c:691
i = 1
#6 0x00b0349b in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7 0x00d2242e in clone () from /lib/libc.so.6
No symbol table info available.
(gdb)
[r...@monpapp1 ntop]# *** glibc detected *** ./ntop: free(): invalid
pointer: 0x00f9db68 ***
======= Backtrace: =========
/lib/libc.so.6[0x1a90f1]
/lib/libc.so.6(cfree+0x90)[0x1acbc0]
/usr/local/lib/libntop-3.3.11-dev.so(ntop_safefree+0x2c)[0x9a2c7c]
/usr/local/lib/libntop-3.3.11-dev.so(freeSession+0x144)[0x9c2934]
/usr/local/lib/libntop-3.3.11-dev.so(scanTimedoutTCPSessions+0x2a5)[0x9c
2e75]
/usr/local/lib/libntop-3.3.11-dev.so(purgeIdleHosts+0x4af)[0x99a7df]
/usr/local/lib/libntop-3.3.11-dev.so(scanIdleLoop+0x21c)[0x9a578c]
/lib/libpthread.so.0[0x41c49b]
/lib/libc.so.6(clone+0x5e)[0x21142e]
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of
Mike Tremaine
Sent: Thursday, July 23, 2009 11:00 AM
To: [email protected]
Subject: Re: [Ntop] ntop dies, nothing in log.
Gary Gatten wrote:
>
> Running 3.3.10 / 3.3.11 on RHEL 2.6.18-128.1.16.el5 #1 SMP
>
> I have -K and -t 5, no errors in log. Gdb captures the faults so I
> guess I can run in gdb all the time - or not! Any ideas why nothing is
> spewed to the log and how it can be fixed?
>
> TIA!
>
> Gary
>
I get these with logging set to syslog.
Jul 22 20:40:07 ntop ntop[14551]: *** glibc detected ***
/usr/local/bin/ntop: double free or corruption (!prev):
0x000000000132ade0 ***
I haven't used ntop in a few years and I'm getting myself up to speed
again so before I start sending in questions or bugs I want to make sure
I've done all the tweaking I can. But I thought I'd mention that you are
not alone and Redhat/Centos 5 seems to have some minor issues.
-Mike
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop
<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in
1.0pt 0in'>
</div>
"This email is intended to be reviewed by only the intended recipient
and may contain information that is privileged and/or confidential.
If you are not the intended recipient, you are hereby notified that
any review, use, dissemination, disclosure or copying of this email
and its attachments, if any, is strictly prohibited. If you have
received this email in error, please immediately notify the sender by
return email and delete this email from your system."
</font>
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop