Followup-For: Bug #446772
Package: wmnetmon
Version: 0.2p6-6

fcntl setting nonblocking for tcp socket: Bad file descriptor

Program received signal SIGSEGV, Segmentation fault.
0x0804c6b7 in pinger_checkoneandsleep (p=0xbfabf47c, usecs=250000)
    at pinger.c:247
247                             FD_SET(h->tcp_socket, &p->fdmask_write);
(gdb) bt
#0  0x0804c6b7 in pinger_checkoneandsleep (p=0xbfabf47c, usecs=250000)
    at pinger.c:247
#1  0x0804aa02 in main (argc=134619424, argv=0x8062430) at wmnetmon.c:562

242
243             for(i=1, iterator=p->hosts; iterator; iterator=iterator->next) {
244                     h=(pinger_host*)ListData(iterator);
245
246                     if (h->tcp_socket) {
247                             FD_SET(h->tcp_socket, &p->fdmask_write);
248                     }
249
250                     if (h->tcp_socket>fdmax) fdmax=h->tcp_socket;
251             }

(gdb) p h->tcp_socket
$2 = -1

(gdb) p *h
$8 = {sock = 0x8062108, tcpsock = 0x8069a90, lastping = 1193071568,
  lastreply = 1193071538, lp = {tv_sec = 0, tv_usec = 0}, lr = {tv_sec = 0,
    tv_usec = 0}, timeout = {0 <repeats 55 times>}, timeoutptr = 0,
  sequence = 0, flags = 0, totalfailures = 0, tcpport = 22, udpport = 0,
  udpstatus = 0, tcp_socket = -1}


(gdb) p *p
$9 = {proto = 0xb7de0e74, socket = 7, ident = 11083, hosts = 0x80547b8,
  outbuf = '\0' <repeats 65467 times>,
  inbuf = "[EMAIL PROTECTED],\n\\\030,[EMAIL 
PROTECTED]@\006...,\ain-addr\004arpa\000\000\f\000\001\001\n1135173\n-----BEGIN 
PGP 
SIGNATURE-----\n\niD8DBQFHHMKYhtlLqMCW/1wRAnzcAJ9xlWkUA6KHRS8XpQiACxzUZjuhdA"...,
 fdmask_read = {
    __fds_bits = {128, 0 <repeats 31 times>}}, fdmask_write = {__fds_bits = {
      1536, 0 <repeats 30 times>, -2147483648}}}

Please let me know if I can provide more info.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable'), (99, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22
Locale: LANG=en_US, LC_CTYPE= (charmap=ISO-8859-1)

Versions of packages wmnetmon depends on:
ii  debconf [debconf-2.0]  1.5.11            Debian configuration management sy
ii  libc6                  2.3.6.ds1-13etch2 GNU C Library: Shared libraries
ii  libx11-6               2:1.0.3-7         X11 client-side library
ii  libxext6               1:1.0.1-2         X11 miscellaneous extension librar
ii  libxpm4                1:3.5.5-2         X11 pixmap library

wmnetmon recommends no packages.

-- no debconf information


Cheers,

-- 
Cristian



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to