This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug mi/17109] gdb 7.7 crashes when issuing mi command: -trace-frame-collected
- From: "dtaylor at emc dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 15 Jul 2014 20:29:17 +0000
- Subject: [Bug mi/17109] gdb 7.7 crashes when issuing mi command: -trace-frame-collected
- Auto-submitted: auto-generated
- References: <bug-17109-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17109
--- Comment #3 from David Taylor <dtaylor at emc dot com> ---
In mi_cmd_trace_frame_collected we find the line:
tinfo = get_traceframe_info ();
Now, get_traceframe_info can legitimately return NULL.
And, since this is a remote target to a stub that does not
support the qXfer:traceframe-info:read message, it DOES
return NULL.
Later in the function we find the line:
for (i = 0; VEC_iterate (int, tinfo->tvars, i, tvar); i++)
There is no guard to check that tinfo is non NULL, so this produces the
core dump.
--
You are receiving this mail because:
You are on the CC list for the bug.