root@ESPL062-000-001(ntop)# patch -p1 < BMS0058
patching file intop/init.c
root@ESPL062-000-001(ntop)# patch -p1 < BMS0059
patching file globals-core.h
patching file pbuf.c
patching file plugins/netflowPlugin.c
root@ESPL062-000-001(ntop)#
compiles and installs ok
invoked with
/usr/local/bin/./ntop -P /var/log/ntop -p /usr/local/share/ntop/protocol -m
172.19.0.0/255.255.252.0 -u ntop -E -w 3000 -S 1 -r 240 -i eth1,eth0 -b
localhost:4000
<snip>
**********23/Apr/2002 13:48:13 Started thread (8201) for network packet
sniffing
on eth1.
23/Apr/2002 13:48:13 Started thread (9226) for network packet sniffing on
eth0.
***********************23/Apr/2002 13:48:14 Extending hash size
[newSize=512][de
viceId=0]
Segmentation fault
from within gdb
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8201 (LWP 19598)]
0x4050f106 in _IO_vfprintf (s=0x44f5bbfc,
format=0x40296120 "INSERT INTO TCPsessions (Client, Server, ClientPort,
Serv
erPort, DataSent, DataRcvd, FirstSeen, LastSeen) VALUES ('%s', '%s', '%d',
'%d',
'%llu', '%llu', '%s', '%s')", ap=0x44f5bd2c)
at ../sysdeps/i386/i486/bits/string.h:530
530 ../sysdeps/i386/i486/bits/string.h: No such file or directory.
(gdb) info threads
11 Thread 9226 (LWP 19599) 0x404e58a5 in __sigsuspend (set=0x4575c52c)
at ../sysdeps/unix/sysv/linux/sigsuspend.c:45
* 10 Thread 8201 (LWP 19598) 0x4050f106 in _IO_vfprintf (s=0x44f5bbfc,
format=0x40296120 "INSERT INTO TCPsessions (Client, Server, ClientPort,
Serv
erPort, DataSent, DataRcvd, FirstSeen, LastSeen) VALUES ('%s', '%s', '%d',
'%d',
'%llu', '%llu', '%s', '%s')", ap=0x44f5bd2c)
at ../sysdeps/i386/i486/bits/string.h:530
9 Thread 7176 (LWP 19597) 0x4059890e in __select () from
/lib/i686/libc.so.6
8 Thread 6151 (LWP 19596) 0x405728e1 in __libc_nanosleep ()
from /lib/i686/libc.so.6
7 Thread 5126 (LWP 19595) 0x40597227 in __poll (fds=0x4375baac, nfds=1,
timeout=1154) at ../sysdeps/unix/sysv/linux/poll.c:63
6 Thread 4101 (LWP 19594) 0x405728e1 in __libc_nanosleep ()
from /lib/i686/libc.so.6
5 Thread 3076 (LWP 19593) 0x405728e1 in __libc_nanosleep ()
from /lib/i686/libc.so.6
4 Thread 2051 (LWP 19592) 0x404e58a5 in __sigsuspend (set=0x41f5c65c)
at ../sysdeps/unix/sysv/linux/sigsuspend.c:45
3 Thread 1026 (LWP 19590) 0x405728e1 in __libc_nanosleep ()
from /lib/i686/libc.so.6
2 Thread 2049 (LWP 19589) 0x40597227 in __poll (fds=0x82a330c, nfds=1,
timeout=2000) at ../sysdeps/unix/sysv/linux/poll.c:63
1 Thread 1024 (LWP 19570) 0x40572897 in __libc_pause ()
---Type <return> to continue, or q <return> to quit---
from /lib/i686/libc.so.6
(gdb) thread 10
[Switching to thread 10 (Thread 8201 (LWP 19598))]
#0 0x4050f106 in _IO_vfprintf (s=0x44f5bbfc,
format=0x40296120 "INSERT INTO TCPsessions (Client, Server, ClientPort,
Serv
erPort, DataSent, DataRcvd, FirstSeen, LastSeen) VALUES ('%s', '%s', '%d',
'%d',
'%llu', '%llu', '%s', '%s')", ap=0x44f5bd2c)
at ../sysdeps/i386/i486/bits/string.h:530
530 in ../sysdeps/i386/i486/bits/string.h
(gdb) list string.h:530
525 ../sysdeps/i386/i486/bits/string.h: No such file or directory.
(gdb)
---------------------------------------------------------------
Cheers,
S.
-----Original Message-----
From: Burton M. Strauss III [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 1:56 PM
To: Stuart Herd - IT Dept.
Subject: RE: 02-04-23 - patches - malformed lines??
The mail client must have truncated lines...
Check the 1st character - it's either blank, + or -. If it's any other
value, the line needs to be attached to the prior one.
I'll attach the files
-----Burton
-----Original Message-----
From: Stuart Herd - IT Dept. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:35 AM
To: 'Burton M. Strauss III' (E-mail)
Subject: FW: 02-04-23 - patches - malformed lines??
sent to the list, forgot to cc you....
-----Original Message-----
From: Stuart Herd - IT Dept.
Sent: Tuesday, April 23, 2002 12:32 PM
To: '[EMAIL PROTECTED]'
Subject: 02-04-23 - patches - malformed lines??
root@ESPL062-000-001(ntop)# patch -p1 < BMS0058
patching file intop/init.c
patch: **** malformed patch at line 11: myGlobals . enableDBsupport);
root@ESPL062-000-001(ntop)# patch -p1 < BMS0059
patching file globals-core.h
patching file pbuf.c
Hunk #1 succeeded at 117 with fuzz 2.
patching file plugins/netflowPlugin.c
patch: **** malformed patch at line 27: actualDeviceId) == -1)
PRIVILEGED / CONFIDENTIAL INFORMATION may be contained in this message. If
you are not the addressee indicated in this message or the employee or agent
responsible for delivering it to the addressee, you are hereby on notice
that you are in possession of confidential and privileged information. Any
dissemination, distribution, or copying of this e-mail is strictly
prohibited. In such case, you should destroy this message and kindly notify
the sender by reply e-mail. Please advise immediately if you or your
employer do not consent to Internet email for messages of this kind.
Opinions, conclusions, and other information in this message that do not
relate to the official business of the sender's firm shall be understood as
neither given nor endorsed by it. E-mail cannot be guaranteed to be secure,
error free or free from viruses. Royal does not accept any liability
whatsoever for any loss or damage which may be caused as a result of the
transmission of this e-mail.
_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop