JDR, Yes thats right also at my site Ntop crashes at the same point. By the way did you sent the patch for "first parameter ignored after /i" to ntop ?, it works for me OK, but Luca said that ntop crashed with Visual C++. I could not apply the patch on any cvs version, so I used the one you sent me. Jac
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Juan Ramon Duarte Sent: Friday, June 21, 2002 5:24 PM To: Ntop-Dev Subject: [Ntop-dev] Bug: NTop crashes when displaying /textinfo.html This is very easy to replicate. Every time I try to get the URL http://localhost:3000/textinfo.html NTop crashes with the following application error: 'The instruction at "0x78011f41" referenced memory at "0x00000741. The memory could not be "read"' Platform: Win 2000 Compiled using MinGW Sources from CVS updated as of 21/Jun The output of the file is below. It always crashes after writing "Mutexes:" ----------------------------------------------------------------- ntop version.....2.0.99rc2 Built on.....11/06/2002 OS.....WinNT/2K/XP Command line Started as....ntop -i1 Command line parameters are: -a | --access-log-path.....(default) (nil) -b | --sql-host.....(default) Inactive -c | --sticky-hosts.....(default) No -e | --max-table-rows.....(default) 128 -f | --traffic-dump-file.....(default) (nil) -i | --interface (effective).....1 -j | --border-sniffer-mode.....(default) Inactive -k | --filter-expression-in-extra-frame.....(default) No -l | --pcap-log.....(default) (nil) -m | --local-subnets (effective).....(default) (nil) -n | --numeric-ip-addresses.....(default) No -p | --protocols.....(default) internal list -q | --create-suspicious-packets.....(default) Disabled -r | --refresh-time.....(default) 120 -s | --no-promiscuous.....(default) No -t | --trace-level.....(default) 3 -w | --http-server.....(default) Active, all interfaces, port 3000 -B | --filter-expression.....(default) none -D | --domain.....none -E | --enable-external-tools.....(default) No -F | --flow-spec.....(default) none -M | --no-interface-merge (effective).....(default) (Merging Interfaces) Yes -N | --no-nmap (effective).....No (nmap will not be used) -O | --pcap-file-path.....(default) . -P | --db-file-path.....(default) . -S | --store-mode.....(default) 0 (none) -U | --mapper.....(default) (nil) --throughput-chart-type.....(default) Area Note: (effective) means that this is the value after ntop has processed the parameter. (default) means this is the default value, usually (but not always) set by a #define in globals.h. Run time/Internal External tool: lsof.....(no -E parameter): Disabled External tool: nmap.....(no -E parameter): Disabled Web server URL.....http://<any>:3000 TCP Session Handling.....Enabled Protocol Decoders.....Enabled Fragment Handling.....Enabled Tracking only local hosts.....No # IP Protocols Being Monitored.....15 # Protocol slots.....64 # IP Ports Being Monitored.....940 # Ports slots.....1880 # Handled HTTP Requests.....1 Host Memory Cache Size.....0 Devices (Network Interfaces).....1 Domain name (short)..... Packet queue Queued to Process.....18 Maximum queue.....258 Host Hash counts Actual Hash Size.....512 Stored hosts.....41 [8 %] Purge idle hosts.....Enabled Purged hosts.....0 TCP Session counts Sessions.....9 Terminated.....6 Address counts Queued.....0 Resolved with DNS.....9 Kept Numeric.....1 Found in Cache.....0 Dropped.....0 Thread counts Active.....0 Dequeue.....1 Children (active).....0 Directory (search) order Data files..... 2. . Config files..... 2. /etc Plugins..... 1. . Compile Time: ./configure compiler (cflags).....(nil) core libraries.....(nil) system libraries.....(nil) Compile Time: Debug settings in ntop.h DEBUG.....no ADDRESS_DEBUG.....no DNS_DEBUG.....no DNS_SNIFF_DEBUG.....no FRAGMENT_DEBUG.....no FTP_DEBUG.....no GDBM_DEBUG.....no HASH_DEBUG.....no HOST_FREE_DEBUG.....no HTTP_DEBUG.....no MEMORY_DEBUG.....no NETFLOW_DEBUG.....no PACKET_DEBUG.....no SEMAPHORE_DEBUG.....no SESSION_TRACE_DEBUG.....no STORAGE_DEBUG.....no UNKNOWN_PACKET_DEBUG.....no PRINT_ALL_SESSIONS.....no PRINT_RETRANSMISSION_DATA.....no FORK_CHILD_PROCESS.....yes (normal) Compile Time: Debug settings in ntop.h DEBUG.....no ADDRESS_DEBUG.....no DNS_DEBUG.....no DNS_SNIFF_DEBUG.....no FTP_DEBUG.....no GDBM_DEBUG.....no HASH_DEBUG.....no HOST_FREE_DEBUG.....no HTTP_DEBUG.....no MEMORY_DEBUG.....no NETFLOW_DEBUG.....no SEMAPHORE_DEBUG.....no SESSION_TRACE_DEBUG.....no STORAGE_DEBUG.....no UNKNOWN_PACKET_DEBUG.....no PRINT_ALL_SESSIONS.....no PRINT_RETRANSMISSION_DATA.....no FORK_CHILD_PROCESS.....yes (normal) Compile Time: config.h ASYNC_ADDRESS_RESOLUTION.....yes CONFIGFILE_DIR - config file directory...... DATAFILE_DIR - data file directory...... DBFILE_DIR - database file directory...... DEBUG.....no ETHER_HEADER_HAS_EA.....no HAVE_ALLOCA_H.....absent HAVE_ARPA_INET_H.....absent HAVE_ARPA_NAMESER_H.....absent HAVE_BACKTRACE.....absent HAVE_CRYPT_H.....absent HAVE_CTIME_R.....absent HAVE_DIRENT_H.....absent HAVE_DLFCN_H.....absent HAVE_DL_H.....absent HAVE_ERRNO_H.....absent HAVE_ETHERTYPE_H.....absent HAVE_FCNTL_H.....present HAVE_GDBM_H.....present HAVE_GDCHART.....present HAVE_GETIPNODEBYADDR.....absent HAVE_GETOPT_LONG.....absent HAVE_IF_H.....absent HAVE_INTxx_T Signed ints.....64 no, 32 no, 16 no,8 no HAVE_U_INTxx_T Unsigned ints.....64 no, 32 no, 16 no,8 no HAVE_LIBC.....absent HAVE_LIBC_R.....absent HAVE_LIBDL.....absent HAVE_LIBGDBM.....absent HAVE_LIBKSTAT.....absent HAVE_LIBNSL.....absent HAVE_LIBPCAP.....absent HAVE_LIBPOSIX4.....absent HAVE_LIBPTHREAD.....absent HAVE_LIBPTHREADS.....absent HAVE_LIBRESOLV.....absent HAVE_LIBSOCKET.....absent HAVE_LIBWRAP (TCP Wrappers).....absent HAVE_LOCALTIME_R.....absent HAVE_MYSQL.....absent HAVE_MYSQL_MYSQL_H.....absent HAVE_NCURSES_H.....absent HAVE_NETDB_H.....absent HAVE_NETINET_IF_ETHER_H.....absent HAVE_NETINET_IN_H.....absent HAVE_NETINET_IN_SYSTM_H.....absent HAVE_NETINET_IP_H.....absent HAVE_NETINET_IP_ICMP_H.....absent HAVE_NETINET_TCP_H.....absent HAVE_NETINET_UDP_H.....absent HAVE_NET_BPF_H.....absent HAVE_NET_ETHERNET_H.....absent HAVE_NET_IF_H.....absent HAVE_OPENSSL.....absent HAVE_PTHREAD_H.....absent HAVE_PWD_H.....absent HAVE_READLINE.....absent HAVE_READLINE_READLINE_H.....absent HAVE_REGEX.....absent HAVE_SCHED_H.....absent HAVE_SECURITY_PAM_APPL_H.....absent HAVE_SEMAPHORE_H.....absent HAVE_SHADOW_H.....absent HAVE_SIGNAL_H.....absent HAVE_SNPRINTF.....absent HAVE_STDIO_H.....no HAVE_STDLIB_H.....no HAVE_STRING_H.....absent HAVE_STRSEP.....absent HAVE_STRTOK_R.....absent HAVE_SYSLOG_H / HAVE_SYS_SYSLOG_H.....absent / absent HAVE_SYS_IOCTL.....absent HAVE_SYS_LDR_H.....absent HAVE_SYS_SCHED_H.....absent HAVE_SYS_SELECT_H.....absent HAVE_SYS_SOCKET_H.....absent HAVE_SYS_SOCKIO_H.....absent HAVE_SYS_STAT_H.....absent HAVE_SYS_TIME_H.....absent HAVE_SYS_TYPES_H.....absent HAVE_SYS_UN_H.....absent HAVE_SYS_WAIT_H.....absent HAVE_TCPD_H.....absent HAVE_UNISTD_H.....absent HAVE_ZLIB (HTTP gzip compression).....absent HAVE_ZLIB_H.....absent MULTITHREADED.....yes NEED_GETDOMAINNAME (getdomainname(2) function).....yes NEED_INET_ATON.....no NTOP_xxxxxx_ENDIAN (Hardware Endian).....little PLUGIN_DIR (plugin file directory...... STDC_HEADERS (ANSI C header files).....no Compile Time: Switches, Limits, etc. (various #defines) Alternate row colors.....globals.h: #undef USE_COLOR Buggy gethostbyaddr() - use alternate implementation.....globals.h: #undef USE_HOST Chart Format.....globals-report.h: #define CHART_FORMAT ".gif" Bad IP Address table size.....globals.h: #define MAX_NUM_BAD_IP_ADDRESSES 3 Bad IP Address timeout (seconds).....ntop.h: #define NTOP_DEFAULT_BAD_ACCESS_TIMEOUT 300 Hosts Cache table size.....ntop.h: #define MAX_HOSTS_CACHE_LEN 512 Minimum refresh interval (seconds).....ntop.h: #define MIN_REFRESH_TIME 15 Maximum # of Protocols to show in graphs.....ntop.h: #define MAX_NUM_PROTOS 64 Maximum # of routers (Local Subnet Routers report).....ntop.h: #define MAX_NUM_ROUTERS 512 Maximum # of network interface devices.....ntop.h: #define MAX_NUM_DEVICES 1 Maximum # of processes for lsof report.....ntop.h: #define MAX_NUM_PROCESSES 1024 Maximum network size (hosts per interface).....ntop.h: #define MAX_SUBNET_HOSTS 1024 Allocated # of passive FTP sessions.....ntop.h: #define NUM_SESSION_INFO 128 Maximum # of passive FTP sessions (not used).....ntop.h: #define MAX_NUM_SESSION_INFO 256 Inactive passive FTP session timeout (seconds).....ntop.h: #define PASSIVE_SESSION_PURGE_TIMEOUT 60 Compile Time: Hash Table Sizes Initial size.....ntop.h: #define HASH_INITIAL_SIZE 32 After 1st extend.....ntop.h: #define HASH_MINIMUM_SIZE 512 Intermediate increase factor.....ntop.h: #define HASH_INCREASE_FACTOR 2 Factor growth until.....ntop.h: #define HASH_FACTOR_MAXIMUM 4096 Then grow (linearly) by.....ntop.h: #define HASH_TERMINAL_INCREASE 4096 Mutexes: _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop-dev _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://lists.ntop.org/mailman/listinfo/ntop-dev
