strace v4.6-60-g9015cd9 build error

Douglas Mencken dougmencken at gmail.com
Sun Jul 17 18:29:20 UTC 2011


UPD: just bisected the repo and found the commit which caused this problem:

3454e4b463e6c22c7ea8c5461ef5a077f4650a54 is the first bad commit
commit 3454e4b463e6c22c7ea8c5461ef5a077f4650a54
Author: Denys Vlasenko <dvlasenk at redhat.com>
Date:   Mon May 23 21:29:03 2011 +0200

    Properly handle real SIGTRAPs.

    * defs.h (ptrace_setoptions): Variable renamed to
ptrace_setoptions_followfork.
    * process.c (internal_fork): Ditto.
    * strace.c (ptrace_setoptions_for_all): New variable.
    (SYSCALLTRAP): New variable.
    (error_msg_and_die): New function.
    (test_ptrace_setoptions_for_all): New function.
    (main): Call test_ptrace_setoptions_for_all() at init.
    (handle_ptrace_event): Handle PTRACE_EVENT_EXEC (by ignoring it).
    (trace): Check events and set ptrace options without -f too.
    Check WSTOPSIG(status) not for SIGTRAP, but for SYSCALLTRAP.

:100644 100644 0b960f9243eb67cac39ebd25aa6553ae0964b30e
ef4ac4755afa209ed493d6c0804ea1241e5ba2e1 M      defs.h
:100644 100644 6c1aa6b6e7822173f1f5ed0b0caf54dbdf38afed
36ac5ab8326a59b0b7de6007fc9ecafdf750062e M      process.c
:100644 100644 7874d19ed97f87b0fd14df48c3c7e2da041f2e04
472805482e02b2b9d422d4b21fc2855960e9e2ba M      strace.c

git bisect log:

git bisect start
# bad: [9015cd9f9e33d4457bdb50dbafe1ce943a5f3a96] Make IOCTL_WSTOP more readable
git bisect bad 9015cd9f9e33d4457bdb50dbafe1ce943a5f3a96
# good: [03aefdadb20f3bdd05bf644dc2ce1e85758a5aee] Ensure that
PTRACE_GETSIGINFO et al are always defined on Linux
git bisect good 03aefdadb20f3bdd05bf644dc2ce1e85758a5aee
# bad: [0df9ed47af7a9385a2fbe6ba688ed4fc24ab0c00] Do not suspend waitpid.
git bisect bad 0df9ed47af7a9385a2fbe6ba688ed4fc24ab0c00
# bad: [e62df004ce7a649c014fc0b5af058d56bc168920] Print at least one
space between SYSCALL(ARGS) and = RESULT if tracee is killed
git bisect bad e62df004ce7a649c014fc0b5af058d56bc168920
# bad: [35aba6a8dd87a8d1fd69110d80f98224d1f5b18d] Identifier "errno"
may be a macro, it's unsafe to use it
git bisect bad 35aba6a8dd87a8d1fd69110d80f98224d1f5b18d
# good: [96e1f48087f111c7ede219cde94689ff96e4da11] linux: add new
EHWPOISON errno
git bisect good 96e1f48087f111c7ede219cde94689ff96e4da11
# bad: [3454e4b463e6c22c7ea8c5461ef5a077f4650a54] Properly handle real SIGTRAPs.
git bisect bad 3454e4b463e6c22c7ea8c5461ef5a077f4650a54
# good: [1cd5371d503c3e56084faf9732b17133d94df3ef] Blackfin: update syscall list
git bisect good 1cd5371d503c3e56084faf9732b17133d94df3ef




More information about the Strace-devel mailing list