[Date Prev]   [Date Next] [Thread Prev]   [Thread Next] [Date Index]   [Thread Index]

 

     Portmon Core Dump on Read

So, just to get a little non-complaint traffic out there... *grin*

I'm trying to get NOCOL working on a Solaris x86 2.6 box.  Everything
seems more or less OK, with the exception of portmon.  portmon will
happily read in the config file, and iterate over each port to be
monitored once.

However, after sleeping for POLLINTERVAL seconds the first time,
it core dumps.  Here's a truss trace:

(debug) write(2, " ( d e b u g )  ", 8)                 = 8
portmonwrite(2, " p o r t m o n", 7)                    = 7
: sleeping for write(2, " :   s l e e p i n g   f".., 15)       = 15
10write(2, " 1 0", 2)                           = 2
...zzz
write(2, " . . . z z z\n", 7)                   = 7
write(2, 0xDFF5069C, 0)                         = 0
sigaction(SIGALRM, 0x08047C1C, 0x08047C98)      = 0
sigprocmask(SIG_UNBLOCK, 0x08047CC8, 0x08047CB8) = 0
alarm(0)                                        = 0
sigaction(SIGALRM, 0x08047BF0, 0x08047C7C)      = 0
sigprocmask(SIG_BLOCK, 0x08047C6C, 0x08047C5C)  = 0
alarm(10)                                       = 0
sigsuspend(0x08047C4C)          (sleeping...)
    Received signal #14, SIGALRM, in sigsuspend() [caught]
sigsuspend(0x08047C4C)                          Err#4 EINTR
setcontext(0x08047A38)
alarm(0)                                        = 0
sigprocmask(SIG_UNBLOCK, 0x08047C6C, 0x00000000) = 0
sigaction(SIGALRM, 0x08047BF0, 0x00000000)      = 0
lseek(3, 0, SEEK_SET)                           = 0
write(2, " 1 9 6\n", 4)                         = 4
read(0, 0x00000000, 0)                          = 196
    Incurred fault #6, FLTBOUNDS  %pc = 0x00000000
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000
    Received signal #11, SIGSEGV [default]
      siginfo: SIGSEGV SEGV_MAPERR addr=0x00000000

So it looks like it's trying to read but the read call is failing.

Any ideas?

-- 
  Bryant Durrell [] durrell@innocence.com [] http://www.innocence.com/~durrell
 [----------------------------------------------------------------------------]
       "Let us treat men and women well; treat them as if they were real;
                   perhaps they are."  -- Ralph Waldo Emerson