[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ntop-dev
Subject:    [Ntop-dev] Re: Was, compilation prob with FreeBSD 4.8-RELEASE-p7. Now SEGV at start.
From:       Stanley Hopcroft <Stanley.Hopcroft () IPAustralia ! Gov ! AU>
Date:       2003-09-24 10:48:50
Message-ID: 20030924204847.B392 () IPAustralia ! Gov ! AU
[Download RAW message or body]

Dear Sir,

I am writing to thank you for your letter and say,

On Wed, Sep 24, 2003 at 12:24:43PM +0200, Luca Deri wrote:
> Stanley,
> can you please delete webInterface.c and do "cvs co ntop/webInterface.c"?
> 

that this fixes the compilation problem: ntop compiled successfully with
the copy of webInterface.c now in the CVS.

Unfortunately, it doesn't run

Sep 24 20:36:37 pc09011 /kernel: fxp0: promiscuous mode enabled
Sep 24 20:36:37 pc09011 /kernel: fxp0: promiscuous mode disabled
Sep 24 20:37:44 pc09011 /kernel: fxp0: promiscuous mode enabled
Sep 24 20:37:44 pc09011 ntop[13947]:   Now running as a daemon
Sep 24 20:37:44 pc09011 ntop[13947]:   **WARNING** AS: Unable to open
file 'AS-list.txt.gz'.
Sep 24 20:37:44 pc09011 ntop[13947]:   I18N: This instance of ntop does
not support multiple languages
Sep 24 20:37:44 pc09011 ntop[13947]:   IP2CC: Looking for IP address <->
Country code mapping file
Sep 24 20:37:44 pc09011 ntop[13947]:   IP2CC: reading file
'/usr/local/ntop-2.2.95/etc/ntop/p2c.opt.table.gz'
Sep 24 20:37:45 pc09011 ntop[13947]:   IP2CC: 49056 records read
Sep 24 20:37:45 pc09011 ntop[13947]:   Initializing external
applications
Sep 24 20:37:45 pc09011 ntop[13947]:   Initializing semaphores, mutexes
and threads
Sep 24 20:37:45 pc09011 ntop[13947]:   NOTE: atfork() handler registered
for mutexes, rc 0
Sep 24 20:37:45 pc09011 ntop[13947]:   THREADMGMT: Started thread
(1026) for network packet analyser
Sep 24 20:37:45 pc09011 ntop[13949]:   THREADMGMT: Packet processor
thread running...
Sep 24 20:37:45 pc09011 ntop[13947]:   THREADMGMT: Started thread
(2051) for idle hosts detection
Sep 24 20:37:45 pc09011 ntop[13950]:   THREADMGMT: Idle host scan thread
running...
Sep 24 20:37:45 pc09011 ntop[13947]:   THREADMGMT: Started thread
(3076) for DNS address resolution
Sep 24 20:37:45 pc09011 ntop[13951]:   THREADMGMT: Address resolution
thread running...
Sep 24 20:37:45 pc09011 ntop[13947]:   Calling plugin start functions
(if any)
Sep 24 20:37:45 pc09011 /kernel: pid 13951 (ntop), uid 65534: exited on
signal 11
Sep 24 20:37:45 pc09011 /kernel: pid 13950 (ntop), uid 65534: exited on
signal 11
Sep 24 20:37:45 pc09011 /kernel: pid 13949 (ntop), uid 65534: exited on
signal 11
Sep 24 20:37:45 pc09011 /kernel: pid 13947 (ntop), uid 65534: exited on
signal 11
Sep 24 20:37:45 pc09011 /kernel: fxp0: promiscuous mode disabled
Sep 24 20:37:45 pc09011 ntop[13947]:   Sniffying...
pc09011# 


sig 11 on this FreeBSD 4.8-RELEASE machine is a SIGSEGV.

I will try and submit a proper PR tomorrow.

Some background however.

Problem host is that which is used to prove the build and run of ntop
since pre 2.0. It has run most of the named versions since then.

Here is the startup script

pc09011# more /usr/local/etc/rc.d/ntop.sh 
#!/bin/sh -
#
#    initialization/shutdown script for ntop

ntop_path="/usr/local/ntop"
wan_filter=""
# wan_filter="not src and dst net 192.168.101/24 and not broadcast and
not multicast"
# wan_filter="ether host 00:60:47:1e:bb:aa"


protocols="FTP=ftp|ftp-data,HTTP=http|https,DNS=domain,Oracle=1521-1527,Ntop=3000,\
NBios-IP=netbios-ns|netbios-dgm|netbios-ssn,Mail=lotusnote|pop2|pop3|kpop|smtp|imap,\
SNMP=snmp|snmptrap,Telnet=telnet,Cache=3128,NFS=nfs|nfsd-status,BEA=7000-7010,SSH=ssh"

case "$1" in
start)
        $ntop_path/bin/ntop -c -u nobody -d -P /var/log/ntop -w 3000 -i
fxp0 -p $protocols && echo -n ' ntop'
        ;;
*)
        echo "unknown option: $1 - should be 'start'" >&2
        ;;
esac


> Thansk, Luca
> 

Thank you,

Yours sincerely.

-- 
Stanley Hopcroft



HURRICANE
(Music by Bob Dylan, Words by Bob Dylan and Jacques Levy)

Pistol shots ring out in the barroom night
Enter Patty Valentine from the upper hall.
She sees the bartender in a pool of blood,
Cries out, "My God, they killed them all!"
Here comes the story of the Hurricane,
The man the authorities came to blame
For somethin' that he never done.
Put in a prison cell, but one time he could-a been
The champion of the world.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic