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/15588] internal-error: handle_inferior_event: Assertion `inf' failed on Mac OS X


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.


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