This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/22407] New: gdb crash in jit.c
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 08 Nov 2017 08:20:29 +0000
- Subject: [Bug breakpoints/22407] New: gdb crash in jit.c
- Auto-submitted: auto-generated
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.