Anton Yuzhaninov citrin at
Wed Sep 21 07:44:02 UTC 2011

On Tue, 20 Sep 2011 00:27:22 +0300, Kostik Belousov wrote:
KB> Could you, please, test the change below ? For me, I still can truss(1)
KB> or debug with gdb after the change applied. Does truss work for you
KB> with only this change, without resetting SIGTRAP handler in truss process ?
KB> commit 2ae586c039a55399edc3b34cd40410e0d690a16c
KB> Author: Konstantin Belousov <kostik at pooma.home>
KB> Date:   Tue Sep 20 00:25:07 2011 +0300
KB>     Do not deliver SIGTRAP on exec as the normal signal, use ptracestop()
KB>     on syscall exit path. Otherwise, if SIGTRAP is ignored, that tdsendsignal()
KB>     do not want to deliver, and debugger never get a notification of exec.

I can confirm - with this patch unmodified truss works when SIGTRAP is ignored.

 Anton Yuzhaninov

More information about the freebsd-current mailing list