This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/15956] New: gdbserver crash when doing tstart with no process
- From: "marc.khouzam at ericsson dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 14 Sep 2013 20:31:11 +0000
- Subject: [Bug breakpoints/15956] New: gdbserver crash when doing tstart with no process
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=15956
Bug ID: 15956
Summary: gdbserver crash when doing tstart with no process
Product: gdb
Version: HEAD
Status: NEW
Severity: minor
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: marc.khouzam at ericsson dot com
Using the extended-remote protocol, I did a 'tstart' but had forgotten to
attach to the process first: gdbserver crashed. I realize I did something
wrong, but a crash is not good :)
gdb session:
> gdb.7.7 testapp
GNU gdb (GDB) 7.6.50.20130910-cvs
[...]
Reading symbols from testapp...done.
(gdb) target extended-remote :9999
Remote debugging using :9999
(gdb) trace main
Tracepoint 1 at 0x400ec6: file testapp.cc, line 182.
(gdb) inf inf
Num Description Executable
* 1 <null> /home/lmckhou/testapp
(gdb) tstart
=> here gdbserver crashes
Backtrace of the gdbserver:
#0 0x000000000040672b in inferior_target_data (inferior=0x0) at
../../../gdb/gdbserver/inferiors.c:211
#1 0x000000000042e058 in linux_read_memory (memaddr=0, myaddr=0x7fffffffdf80
"\300\337\377\377\377\177", len=8)
at ../../../gdb/gdbserver/linux-low.c:4416
#2 0x00000000004136a5 in read_inferior_memory (memaddr=0,
myaddr=0x7fffffffdf80 "\300\337\377\377\377\177", len=8)
at ../../../gdb/gdbserver/target.c:46
#3 0x0000000000419665 in read_inferior_data_pointer (symaddr=0,
val=0x7fffffffdfc0) at ../../../gdb/gdbserver/tracepoint.c:444
#4 0x0000000000419aa2 in clear_inferior_trace_buffer () at
../../../gdb/gdbserver/tracepoint.c:1463
#5 0x000000000041b14c in cmd_qtinit (packet=0x6633d0 "QTinit") at
../../../gdb/gdbserver/tracepoint.c:2404
#6 0x000000000041ed29 in handle_tracepoint_general_set (packet=0x6633d0
"QTinit") at ../../../gdb/gdbserver/tracepoint.c:4142
#7 0x000000000040bcfd in handle_general_set (own_buf=0x6633d0 "QTinit") at
../../../gdb/gdbserver/server.c:612
#8 0x0000000000411c31 in process_serial_event () at
../../../gdb/gdbserver/server.c:3184
#9 0x0000000000412d09 in handle_serial_event (err=0, client_data=0x0) at
../../../gdb/gdbserver/server.c:3619
#10 0x0000000000418c8f in handle_file_event (event_file_desc=4) at
../../../gdb/gdbserver/event-loop.c:434
#11 0x000000000041841c in process_event () at
../../../gdb/gdbserver/event-loop.c:189
#12 0x0000000000419200 in start_event_loop () at
../../../gdb/gdbserver/event-loop.c:552
#13 0x00000000004115f1 in main (argc=3, argv=0x7fffffffe408) at
../../../gdb/gdbserver/server.c:2986
--
You are receiving this mail because:
You are on the CC list for the bug.