Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dspam problem
On Thu, 26 Mar 2009, Andrew Doran wrote:
- With SA, processes were by and large single threaded from the perspective
 of the ptrace() interface, and so ptrace() lacks real thread support.
- Our in-tree gdb was upgraded and lost its NetBSD thread support.
The only way to debug threaded programs is to get a core dump from the
program. gdb does understand the thread info in ELF core files.
Any hints on how to force it to give a core dump?
Also, would a ktrace on the process be of any value?  It seems to always 
end with:
  2607      2 dspam    CALL  close(7)
  2607      2 dspam    RET   close -1 errno 9 Bad file descriptor
  2607      2 dspam    CALL  close(7)
  2607      2 dspam    RET   close -1 errno 9 Bad file descriptor
  2607      2 dspam    CALL  open(0x7f7ffd5fdc10,0,0x1b6)
  2607      2 dspam    NAMI 
"/var/dspam/data/paul%whooppee.com@localhost/paul%whooppee.com.blocklist@localhost"
  2607      2 dspam    RET   open -1 errno 2 No such file or directory
  2607      2 dspam    PSIG  SIGBUS SIG_DFL: code=SI_USER sent by 
pid=-264183808, uid=32639)
  2607      1 dspam    CSW   stop kernel
  2607      1 dspam    CSW   resume kernel
  2607      1 dspam    RET   __select50 -1 errno 4 Interrupted system 
call
  2607      2 dspam    CSW   stop kernel
  2607      2 dspam    CSW   resume kernel
  2607      2 dspam    CSW   stop kernel
  2607      2 dspam    CSW   resume kernel
The value of the "sent by pid" changes but is always < 0.  A couple of 
the values in hex are 0xFFFFFFFFF000E000 and 0xFFFFFFFFF040E000.
-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index