This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/20266] Broken gdb with Apple's macOS 10.12 Sierra Beta - SIGTRAP


https://sourceware.org/bugzilla/show_bug.cgi?id=20266

--- Comment #4 from nikolaikrill at gmail dot com ---
(In reply to Pedro Alves from comment #3)
> Note that "During startup program terminated..." indicates that it's the
> shell that died.  GDB starts the program like "sh -c '$program $arg1 $arg2'".
> 
> Usually, on Unix systems, gdb will see one SIGTRAP that indicates that the
> shell execed the final program, and so gdb is now actually debugging the
> program.
> 
> Maybe the problems is that now on macOS gdb needs to expect two traps.
> 
> See the START_INFERIOR_TRAPS_EXPECTED define in gdb's sources.  Try bumping
> it.
> 
> But first try the "set startup-with-shell off" command.
Thanks for your input, Pedro. I've tried both of your suggestions, but the
problem still persists.

What's strange is that the problem was fixed when I tried using gdb in Apple's
later betas of Sierra, but then the issue reappeared in the official public
release. Now, though, the error message has changed to the following:

During startup program terminated with signal SIG113, Real-time event 113.

I've also verified that the problem exists on macOS 10.12.1 Beta 3 (Build
16B2338c). The issue appears to be affecting everybody using gdb on Sierra, and
threads on the topic have started appearing on Stack Overflow and other forums,
but nobody seems to have solution yet.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]