From: petert@persied.zk3.dec.com (Peter Thompson)
Subject: Re: dbx weirdness with fork(2)
Date: 1995/11/21 [thread overview]
Message-ID: <48tdrv$g3@zk2nws.zko.dec.com> (raw)
In-Reply-To: 48rti4$kcb@tiptoe.fhda.edu
I've taken this offline with Roger. We haven't really determined why
dbx hangs in the fork just yet. The SIGTRAP he saw was just an artifact of
stepping through the system call code, at least that
seems the most likely explanation. Just to give an inside view of
what dbx does for forks (and this may yet change as things mature)
it first sets up a stop on syscall for fork and vfork. This
allows dbx to recognize the fork call in the first place.
Dbx at this point looks at a few things to decide whether or
not it really wants to break on this fork (system calls that
fork are not really wanted.) If it is a reasonable fork
call, we set up a trap on the syscall exit and let fork
do what it is supposed to do. When it finishes, dbx
attaches to the process, tells it to stop, advances
it past the fork call, and then announces that there is
a new child. It seems that this process is breaking down
somewhere in fork itself, or possibly in attaching and
stopping the child process, which is more likely what is
happening in my guess. So far I don't have quite enough to pin
this down, but I'm looking into it.
PeterT
prev parent reply other threads:[~1995-11-21 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-11-17 5:00 dbx weirdness with fork(2) Roger D. Gough
1995-11-21 5:00 ` Brian S Hiles
1995-11-21 5:00 ` Peter Thompson [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox