This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/16812] New: SIGSEGV running program after using dprintf-style call and -dprintf-insert
- From: "malaperle at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 06 Apr 2014 05:58:45 +0000
- Subject: [Bug breakpoints/16812] New: SIGSEGV running program after using dprintf-style call and -dprintf-insert
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=16812
Bug ID: 16812
Summary: SIGSEGV running program after using dprintf-style call
and -dprintf-insert
Product: gdb
Version: 7.7
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: malaperle at gmail dot com
Using gdb 7.7 on Ubuntu 13.10 64 bit.
gdb test -i mi
(gdb)
-gdb-set dprintf-style call
^done
(gdb)
-dprintf-insert test.cpp:13 "hello"
^done,bkpt={number="1",type="dprintf",disp="keep",enabled="y",addr="0x0000000000400861",func="main()",file="../src/test.cpp",fullname="/home/mark/Documents/dev/eclipse-4.4/workspace/test/src/test.cpp",line="13",thread-groups=["i1"],times="0",script={"call
(void) printf (\"hello\")"},original-location="test.cpp:13"}
(gdb)
r
&"r\n"
~"Starting program:
/home/mark/Documents/dev/eclipse-4.4/workspace/test/Debug/test \n"
=thread-group-started,id="i1",pid="8685"
=thread-created,id="1",group-id="i1"
^running
...
=library-loaded,id="/lib/x86_64-linux-gnu/libgcc_s.so.1",target-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",host-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",symbols-loaded="0",thread-group="i1"
=breakpoint-modified,bkpt={number="1",type="dprintf",disp="keep",enabled="y",addr="0x0000000000400861",func="main()",file="../src/test.cpp",fullname="/home/mark/Documents/dev/eclipse-4.4/workspace/test/src/test.cpp",line="13",thread-groups=["i1"],times="0",script={"call
(void) printf (\\"hello\\")"},original-location="test.cpp:13"}
=breakpoint-modified,bkpt={number="1",type="dprintf",disp="keep",enabled="y",addr="0x0000000000400861",func="main()",file="../src/test.cpp",fullname="/home/mark/Documents/dev/eclipse-4.4/workspace/test/src/test.cpp",line="13",thread-groups=["i1"],times="1",script={"call
(void) printf (\\"hello\\")"},original-location="test.cpp:13"}
~"\nProgram terminated with signal "
~"SIGSEGV, Segmentation fault.\n"
~"The program no longer exists.\n"
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1"
*stopped
Aborted (core dumped)
The core dump doesn't seem very helpful:
Core was generated by
`/home/mark/Documents/dev/eclipse-4.4/workspace/test/Debug/test'.
Program terminated with signal 11, Segmentation fault.
#0 0x00007fffffffddff in ?? ()
(gdb) bt
#0 0x00007fffffffddff in ?? ()
#1 0x0000000000601060 in data_start ()
#2 0xcc007ffff774a358 in ?? ()
#3 0x0000000000000001 in ?? ()
#4 0x00007fffffffde30 in ?? ()
#5 0x0000000000600df8 in ?? ()
#6 0x00000000004008bf in __static_initialization_and_destruction_0
(__initialize_p=32767, __priority=-8728)
at /usr/include/c++/4.8/iostream:74
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
--
You are receiving this mail because:
You are on the CC list for the bug.