Re: Dumping a core from inside of process

2003-08-21 Thread Joshua Oreman
On Thu, Aug 21, 2003 at 10:12:49PM + or thereabouts, Artem 'Zazoobr' Ignatjev wrote: > At Thu, 21.08.2003, 22:02, Alexander Kabaev wrote: > > Look for abort() or SIGABRT. > Thanks so far for you and Lev.. Is there the way to specify struct > sigcontext to it? I still wish to have `correct' reg

Re: Dumping a core from inside of process

2003-08-21 Thread Lev Walkin
Artem 'Zazoobr' Ignatjev wrote: At Thu, 21.08.2003, 22:05, Lev Walkin wrote: Artem 'Zazoobr' Ignatjev wrote: Hello, hackers I'm writing some program, which dlopens() a lot of shared objects, and can do nasty things to it's own memory. Some day I decided to trap fatal memory signals, like SIGILL,

Re: Dumping a core from inside of process

2003-08-21 Thread Artem 'Zazoobr' Ignatjev
At Thu, 21.08.2003, 22:02, Alexander Kabaev wrote: > Look for abort() or SIGABRT. Thanks so far for you and Lev.. Is there the way to specify struct sigcontext to it? I still wish to have `correct' registers values to be written into coredump, those that were when signal happened, and not that were

Re: Dumping a core from inside of process

2003-08-21 Thread Artem 'Zazoobr' Ignatjev
At Thu, 21.08.2003, 22:05, Lev Walkin wrote: > Artem 'Zazoobr' Ignatjev wrote: > > Hello, hackers > > > > I'm writing some program, which dlopens() a lot of shared objects, and > > can do nasty things to it's own memory. Some day I decided to trap fatal > > memory signals, like SIGILL, SIGBUS and

Re: Dumping a core from inside of process

2003-08-21 Thread Alexander Kabaev
Look for abort() or SIGABRT. On 21 Aug 2003 21:57:41 + "Artem 'Zazoobr' Ignatjev" <[EMAIL PROTECTED]> wrote: > Hello, hackers > > I'm writing some program, which dlopens() a lot of shared objects, and > can do nasty things to it's own memory. Some day I decided to trap > fatal memory signals

Re: Dumping a core from inside of process

2003-08-21 Thread Lev Walkin
Artem 'Zazoobr' Ignatjev wrote: Hello, hackers I'm writing some program, which dlopens() a lot of shared objects, and can do nasty things to it's own memory. Some day I decided to trap fatal memory signals, like SIGILL, SIGBUS and SIGSEGV, and wrote a handler for these, which swears with bad words

Dumping a core from inside of process

2003-08-21 Thread Artem 'Zazoobr' Ignatjev
Hello, hackers I'm writing some program, which dlopens() a lot of shared objects, and can do nasty things to it's own memory. Some day I decided to trap fatal memory signals, like SIGILL, SIGBUS and SIGSEGV, and wrote a handler for these, which swears with bad words into syslog, dlcloses() all tha