Corrupt stack?
Leon Pollak
leonp at plris.com
Mon Mar 3 15:58:38 GMT 2008
Hello, all.
I always receive the message "Previous frame inner to this frame (corrupt
stack?)" from the kdevelop interface, when I break into the running program
with Ctrl-C.
Running the same case in plane gdb (including "info frame" command) does not
produce any error messages.
Where is the problem?
Below is the debugger printout:
(gdb) -exec-continue
^running
*stopped,reason="signal-received",signal-name="SIGSTOP",signal-meaning="Stopped
(signal)",thread-id="0",frame={addr="0xfe004adc",func="??",args=[]}
(gdb) -break-list
^done,BreakpointTable={nr_rows="4",nr_cols="6",hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="10",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0003d904",func="CauseResetHW()",file="/Projects/VDTS/Common/utils.cpp",fullname="/Projects/VDTS/Common/utils.cpp",line="20",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0003c64c",func="Debug()",file="/Projects/VDTS/Common/utils.cpp",fullname="/Projects/VDTS/Common/utils.cpp",line="10",times="0"},bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x0003c66c",func="BreakP()",file="/Projects/VDTS/Common/utils.cpp",fullname="/Projects/VDTS/Common/utils.cpp",line="14",times="0"},bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x00057fd8",func="C_exception_handler",file="/opt/rtems/rtems-src/c/src/lib/libbsp/powerpc/FDR_8247/vectors/vectors_init.c",fullname="/opt/rtems-4.7/rtems-src-4.7brunch/c/src/lib/libbsp/powerpc/FDR_8247/vectors/vectors_init.c",line="27",times="0"}]}
(gdb) -stack-list-arguments 0 0 0
^done,stack-args=[frame={level="0",args=[]}]
(gdb) -stack-list-locals 0
^done,locals=[]
(gdb) -thread-list-ids
warning: RMT ERROR : failed to get remote thread list.
^done,thread-ids={},number-of-threads="0"
(gdb) info frame
info frame
Stack level 0, frame at 0xcfddd8:
pc = 0xfe004adc; saved pc 0x57f80
called by frame at 0xcfde00
Arglist at 0xcfddd8, args:
Locals at 0xcfddd8, Previous frame's sp is 0xcfddd8
Saved registers:
r24 at 0xcfddd8, r25 at 0xcfdddc, r26 at 0xcfdde0, r27 at 0xcfdde4, r28 at
0xcfdde8, r29 at 0xcfddec, r30 at 0xcfddf0, r31 at 0xcfddf4
^done
(gdb) -stack-info-depth 6
Previous frame inner to this frame (corrupt stack?)
^error,msg="Previous frame inner to this frame (corrupt stack?)"
(gdb) -var-update *
^done,changelist=[]
--
Leon
M.Pollak
More information about the KDevelop
mailing list