ptrace Issues

Udo A. Steinberg (us15@os.inf.tu-dresden.de)
Fri, 9 May 2003 00:47:59 +0200


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-13512-1052434271-0001-2
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi all,

I have discovered that recently I can no longer attach via strace to
already running processes for a long time. Specifically I have a daemon which
sleeps in select and periodically wakes up from SIGALRM signals. As soon as a
signal hits, strace quits on 2.5.69, however, it works fine on 2.4.21-rc.
Can someone shed some light on what's going on?

root@Corona:~> strace -p 527
--- SIGSTOP (Stopped (signal)) ---
--- SIGSTOP (Stopped (signal)) ---
select(7, [0 3 6], [], NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) ---
root@Corona:~> echo $?
0

-Udo.

--=_courier-13512-1052434271-0001-2
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.1 (GNU/Linux)

iD8DBQE+ut6inhRzXSM7nSkRAtqvAJ4k0OyA8uU8rZXmh1n5HyhQJZ9myACfcKym
+CJnLEQis/dNxORkQS3zAEc=
=nuvI
-----END PGP SIGNATURE-----

--=_courier-13512-1052434271-0001-2--