Sadly the gdb output is useless...

/build/buildd/gdb-6.4/gdb/linux-nat.c:2125: internal-error:  
linux_nat_wait: Assertion `iterate_over_lwps (running_callback,  
NULL)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y


The message before comes from a vestigal place holder:

void initApps(void) {
  traceEvent(CONST_TRACE_INFO, "Initializing external applications");
  /* Nothing to do at the moment */
}

So I can pretty confidently say it's getting past that to the next piece:

  initApps();
  initThreads();


void initThreads(void) {
  int i;

  for(i=0; i<myGlobals.numDevices; i++) {
    createThread(&myGlobals.device[i].dequeuePacketThreadId, dequeuePacket,
(void*)i);
    traceEvent(CONST_TRACE_INFO, "THREADMGMT[t%lu]: NPA: Started thread for
network packet analyzer (%s)",
               (long)myGlobals.device[i].dequeuePacketThreadId,
               myGlobals.device[i].humanFriendlyName);
  }
...
}

I *suspect* that if you ran at -t 4 or higher (NOISY) you would NOT see the
next message (util.c):

int createThread(pthread_t *threadId,
                 void *(*__start_routine) (void *),
                 char* userParm) {
  int rc;

  rc = pthread_create(threadId, NULL, __start_routine, userParm);

  if(rc != 0)
    traceEvent(CONST_TRACE_NOISY, "THREADMGMT[t%lu]: pthread_create(), rc =
%s(%d)",
               threadId, strerror(rc), rc);
  myGlobals.numThreads++;
  return(rc);
}

And that it's dying in pthread_create().  But I have no clue how or why...
At least with -t 4 we might see the rc value...

The 64$ ? is "What has changed in the FreeBSD threading model or threading
calls"???

 
-----Burton



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ola Lundqvist
Sent: Sunday, June 11, 2006 4:15 AM
To: [email protected]
Cc: Satadru Pramanik; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [Ntop-dev] Re: Bug#372625: ntop bus error on sparc

tags 372625 + upstream
forwarded 372625 [email protected]
thanks

Hi

I guess Luca or Burton is the best people to answer this but of course any
other person that know why this happen is welcome to answer. :)

I have recieved a bug report about ntop on sparc where the user have problem
to run it successfully. He get a Bus Error during startup.

See http://bugs.debian.org/372625 for the available information.

The system is running on:

uname -a
Linux babbage 2.6.16-1-sparc64-smp #2 SMP Thu May 4 12:44:37 PDT 2006
sparc64 GNU/Linux
dpkg -s libc6 | grep ^Version
Version: 2.3.6-13

There is also a gdb run avaialble on the above url.

To me it looks like there is a problem with loading external applications,
but I do not know enough of the code to tell what can be a problem on sparc
and not on other architectures.

Regards,

// Ola

On Sat, Jun 10, 2006 at 01:56:58PM -0400, Satadru Pramanik wrote:
> Package: ntop
> Version: 3:3.2-3
> 
> Tried without anything in /usr/lib/ntop/plugins:
> 
> 
> [EMAIL PROTECTED]:/usr/lib/ntop$ sudo /usr/sbin/ntop -u ntop Sat Jun 10 
> 10:56:13 2006  NOTE: Interface merge enabled by default Sat Jun 10 
> 10:56:13 2006  Initializing gdbm databases Sat Jun 10 10:56:13 2006  
> ntop v.3.2 SourceForge .tgz Sat Jun 10 10:56:13 2006  Configured on 
> Mar 18 2006 11:31:53, built on Mar 18 2006 11:35:14.
> Sat Jun 10 10:56:13 2006  Copyright 1998-2005 by Luca Deri 
> <[EMAIL PROTECTED]> Sat Jun 10 10:56:13 2006  Get the freshest ntop from 
> http:// www.ntop.org/ Sat Jun 10 10:56:13 2006  NOTE: ntop is running 
> from '/usr/sbin'
> Sat Jun 10 10:56:13 2006  NOTE: (but see warning on man page for the 
> --instance parameter) Sat Jun 10 10:56:13 2006  Initializing ntop Sat 
> Jun 10 10:56:14 2006  Checking eth0 for additional devices Sat Jun 10 
> 10:56:14 2006  Resetting traffic statistics for device eth0 Sat Jun 10 
> 10:56:14 2006  DLT: Device 0 [eth0] is 1, mtu 1514, header 14 Sat Jun 
> 10 10:56:14 2006  Initializing gdbm databases Sat Jun 10 10:56:14 2006  
> VENDOR: Loading MAC address table.
> Sat Jun 10 10:56:14 2006  VENDOR: Checking for MAC address table file 
> Sat Jun 10 10:56:14 2006  VENDOR: File '/etc/ntop/specialMAC.txt'
> does not need to be reloaded
> Sat Jun 10 10:56:14 2006  VENDOR: ntop continues ok Sat Jun 10 
> 10:56:14 2006  VENDOR: Checking for MAC address table file Sat Jun 10 
> 10:56:14 2006  VENDOR: File '/etc/ntop/oui.txt' does not need to be 
> reloaded Sat Jun 10 10:56:14 2006  VENDOR: ntop continues ok Sat Jun 
> 10 10:56:14 2006  Fingeprint: Loading signature file.
> Sat Jun 10 10:56:14 2006  Fingeprint: ...loaded 1697 records Sat Jun 
> 10 10:56:14 2006  ASN: Checking for Autonomous System Number table 
> file Sat Jun 10 10:56:14 2006  ASN: Loading file 
> '/etc/ntop/AS-list.txt'
> Sat Jun 10 10:56:17 2006  ASN: ...found 111435 lines Sat Jun 10 
> 10:56:17 2006  ASN: ....Used 3780 KB of memory (12 per entry) Sat Jun 
> 10 10:56:17 2006  I18N: This instance of ntop does not support 
> multiple languages Sat Jun 10 10:56:17 2006  IP2CC: Checking for IP 
> address <-> Country Code mapping file Sat Jun 10 10:56:17 2006  IP2CC: 
> Loading file '/etc/ntop/p2c.opt.table'
> Sat Jun 10 10:56:18 2006  IP2CC: ...found 52395 lines Sat Jun 10 
> 10:56:18 2006  GDVERCHK: Guessing at libgd version Sat Jun 10 10:56:18 
> 2006  GDVERCHK: ... as 2.0.21+ Sat Jun 10 10:56:18 2006  Initializing 
> external applications Sat Jun 10 10:56:18 2006  THREADMGMT[t16386]: 
> NPA: network packet analyzer (packet processor) thread running 
> [p26300] Sat Jun 10 10:56:18 2006  THREADMGMT[t16386]: NPA: Started 
> thread for network packet analyzer Sat Jun 10 10:56:18 2006  
> THREADMGMT[t32771]: SFP: Fingerprint scan thread starting [p26301] Sat 
> Jun 10 10:56:18 2006  THREADMGMT[t32771]: SFP: Started thread for 
> fingerprinting Sat Jun 10 10:56:18 2006  THREADMGMT[t49156]: SIH: Idle 
> host scan thread starting [p26302] Sat Jun 10 10:56:18 2006  
> THREADMGMT[t49156]: SIH: Started thread for idle hosts detection Sat 
> Jun 10 10:56:18 2006  THREADMGMT[t65541]: DNSAR(1): Address resolution 
> thread running [p26303] Sat Jun 10 10:56:18 2006  THREADMGMT[t65541]: 
> DNSAR(1): Started thread for DNS address resolution Sat Jun 10 
> 10:56:18 2006  Calling plugin start functions (if any) Sat Jun 10 
> 10:56:18 2006  SSL is present but https is disabled: use - W <https 
> port> for enabling it Sat Jun 10 10:56:18 2006  INITWEB: Initializing 
> web server Sat Jun 10 10:56:18 2006  INITWEB: Initializing tcp/ip 
> socket connections for web server Sat Jun 10 10:56:18 2006  INITWEB: 
> Initialized socket, port 3000, address (any) Sat Jun 10 10:56:18 2006  
> INITWEB: Waiting for HTTP connections on port 3000 Sat Jun 10 10:56:18 
> 2006  INITWEB: Starting web server Sat Jun 10 10:56:18 2006  
> THREADMGMT[t81926]: INITWEB: Started thread for web server Sat Jun 10 
> 10:56:18 2006  Listening on [eth0] Sat Jun 10 10:56:18 2006  Loading 
> Plugins Sat Jun 10 10:56:18 2006  Searching for plugins in ./plugins 
> Sat Jun 10 10:56:18 2006  Calling plugin start functions (if any) Sat 
> Jun 10 10:56:18 2006  THREADMGMT[t16384]: ntop RUNSTATE:
> INITNONROOT(3)
> Sat Jun 10 10:56:18 2006  Now running as requested user 'ntop' 
> (104:104) Sat Jun 10 10:56:18 2006  INIT: Created pid file 
> (/var/lib/ntop/
> ntop.pid)
> Sat Jun 10 10:56:18 2006  Note: Reporting device initally set to 0 
> [eth0] (merged) Sat Jun 10 10:56:18 2006  THREADMGMT[t16384]: ntop 
> RUNSTATE: RUN(4) Sat Jun 10 10:56:18 2006  THREADMGMT[t32771]: SFP: 
> Fingerprint scan thread running [p26301] Sat Jun 10 10:56:18 2006  
> THREADMGMT[t49156]: SIH: Idle host scan thread running [p26302] Sat 
> Jun 10 10:56:18 2006  THREADMGMT[t81926]: WEB: Server connection 
> thread starting [p26304] Sat Jun 10 10:56:18 2006  Note: SIGPIPE 
> handler set (ignore) Sat Jun 10 10:56:18 2006  THREADMGMT[t81926]: 
> WEB: Server connection thread running [p26304] Sat Jun 10 10:56:18 
> 2006  WEB: ntop's web server is now processing requests Sat Jun 10 
> 10:56:18 2006  THREADMGMT[t98311]: NPS(1,eth0):
> pcapDispatch thread starting [p26305]
> Sat Jun 10 10:56:18 2006  THREADMGMT[t98311]: NPS(1,eth0):  
> pcapDispatch thread running [p26305]
> Bus error



--
 --------------------- Ola Lundqvist ---------------------------
/  [EMAIL PROTECTED]                     Annebergsslingan 37      \
|  [EMAIL PROTECTED]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to