This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15588] internal-error: handle_inferior_event: Assertion `inf' failed on Mac OS X
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 06 Jun 2013 11:47:39 +0000
- Subject: [Bug gdb/15588] internal-error: handle_inferior_event: Assertion `inf' failed on Mac OS X
- Auto-submitted: auto-generated
- References: <bug-15588-4717 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15588
Pedro Alves <palves at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |palves at redhat dot com
--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
Thanks.
darwin_wait: ill-formatted message (id=961)
infrun: target_wait (-1, status) =
infrun: -1 [process -1],
infrun: status->kind = spurious
There's a FIXME for this already...
static ptid_t
darwin_decode_message (mach_msg_header_t *hdr,
darwin_thread_t **pthread,
struct inferior **pinf,
struct target_waitstatus *status)
{
darwin_thread_t *thread;
struct inferior *inf;
/* Exception message. */
if (hdr->msgh_local_port == darwin_ex_port)
{
int res;
/* Decode message. */
res = darwin_decode_exception_message (hdr, &inf, &thread);
if (res < 0)
{
/* Should not happen... */
printf_unfiltered
(_("darwin_wait: ill-formatted message (id=0x%x)\n"), hdr->msgh_id);
/* FIXME: send a failure reply? */
status->kind = TARGET_WAITKIND_SPURIOUS;
return minus_one_ptid;
}
TARGET_WAITKIND_SPURIOUS should never be reported to minus_one_ptid. It should
report a valid ptid.
Though that's a bug, the "Should not happen" comment indicates something else
went wrong. I have no idea what, as I'm no expert in this code.
If you could debug gdb and step through darwin_decode_exception_message, you
should be able to zone in on the actual problem.
--
You are receiving this mail because:
You are on the CC list for the bug.