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 breakpoints/22407] New: gdb crash in jit.c


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

            Bug ID: 22407
           Summary: gdb crash in jit.c
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: tromey at sourceware dot org
  Target Milestone: ---

I ran gdb on a process tree using these settings:

  set detach-on-fork off
  set non-stop on
  set pagination off
  set schedule-multiple on

Eventually gdb crashed:

../../gdb/breakpoint.c:13853: internal-error: void
delete_breakpoint(breakpoint*): Assertion `bpt != NULL' failed.

This call comes from jit.c:free_objfile_data:

      if (ps_data != NULL && ps_data->objfile == objfile)
        {
          ps_data->objfile = NULL;
          delete_breakpoint (ps_data->jit_breakpoint);
          ps_data->cached_code_address = 0;
        }

Changing this to check that ps_data->jit_breakpoint != NULL worked for me.
However I don't have time to write a test, so I'm sending a bug report instead.

-- 
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]