Bug: strace-4.5.x and exit_group(2) on Linux

Urs Thuermann urs at isnogud.escape.de
Fri Feb 27 05:31:03 UTC 2004

strace-4.5.x shows incorrect output for a call to exit_group(2) on
Linux-2.4/i686.  When calling _exit(2) the current glibc-2.3.2 tries
to call exit_group(2) and when that fails, the syscall _exit(2).
Linux-2.4 does not have exit_group(2) implemented so it returns with
ENOSYS.  strace-4.5.x however shows

    # strace-4.5.1 rm
    execve("/bin/rm", ["rm"], [/* 28 vars */]) = 0
    write(2, "Try `rm --help\' for more informa"..., 38Try `rm --help' for more information.
    ) = 38
    exit_group(1)                           = ?

i.e. strace seems not to see that exit_group(2) fails and returns
ENOSYS and then _exit(2) is called.


More information about the Strace-devel mailing list