#1687 cannot insert breakpoint <negative value>

OTHER
open
nobody
gdb (39)
Bug
none
Unknown
False
2013-02-11
2012-12-21
Giles
No

Under Windows 7-64 trying to debug my application compiled with MinGW 4.7.1 I get the following result:

D:\Sources\DE>gdb Test.exe
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from D:\Sources\DE\Test.exe...done.
(gdb) b DialogPanel.cpp:681
Breakpoint 1 at 0x4a8f44: file D:\Sources\DE\src\DE\Wnd\DialogPanel.cpp, line 681.
(gdb) r
Starting program: D:\Sources\DE\Test.exe
[New Thread 21320.0x7540]
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .reloc
[New Thread 21320.0x79fc]
[New Thread 21320.0x2e18]
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .reloc
[New Thread 21320.0x606c]
[New Thread 21320.0x8a84]
[New Thread 21320.0x7230]
[New Thread 21320.0x8050]
[New Thread 21320.0x68cc]
[New Thread 21320.0x53bc]
[New Thread 21320.0x7be0]
[New Thread 21320.0x845c]
[New Thread 21320.0x6d88]
[New Thread 21320.0x85c4]
[New Thread 21320.0x7558]
[New Thread 21320.0x69b8]
[New Thread 21320.0x79b0]
[New Thread 21320.0x1528]
BFD: C:\Windows\SysWOW64\WMVCORE.DLL: Warning: Ignoring section flag IMAGE_SCN_MEM_NOT_PAGED in section .reloc
[New Thread 21320.0x7848]
[New Thread 21320.0x76f4]
[New Thread 21320.0x69a8]
[New Thread 21320.0x7738]
[New Thread 21320.0x2a78]
[New Thread 21320.0x6eb8]

Breakpoint 1, TDEStreamDialogPanel::DisplayDialog (this=0x86e54b0, pStreamRow=0xd171468, pTime=0, pKeySide=0x8666224,
pLeftPreferred=0x8666220) at D:\Sources\DE\src\DE\Wnd\DialogPanel.cpp:681
681 D:\Sources\DubEdit\src\DE\Wnd\DialogPanel.cpp: No such file or directory.
(gdb) c
Continuing.

Breakpoint 1, TDEStreamDialogPanel::DisplayDialog (this=0x86e54b0, pStreamRow=0xd171468, pTime=1007, pKeySide=0x8666224,
pLeftPreferred=0x8666220) at D:\Sources\DE\src\DE\Wnd\DialogPanel.cpp:681
681 in D:\Sources\DE\src\DE\Wnd\DialogPanel.cpp
(gdb) s
Warning:
Cannot insert breakpoint -753.
Error accessing memory address 0x61187280: Input/output error.

0x004a8f47 in TDEStreamDialogPanel::DisplayDialog (this=0x86e54b0, pStreamRow=0xd171468, pTime=1007, pKeySide=0x8666224,
pLeftPreferred=0x8666220) at D:\Sources\DE\src\DE\Wnd\DialogPanel.cpp:681
681 in D:\Sources\DE\src\DE\Wnd\DialogPanel.cpp
(gdb) s
Warning:
Cannot insert breakpoint -758.
Error accessing memory address 0x61187280: Input/output error.

(gdb) s
Warning:
Cannot insert breakpoint -763.
Error accessing memory address 0x61187280: Input/output error.

(gdb) s
Warning:
Cannot insert breakpoint -768.
Error accessing memory address 0x61187280: Input/output error.

(gdb) s
Warning:
Cannot insert breakpoint -773.
Error accessing memory address 0x61187280: Input/output error.

(gdb)

Discussion

  • Giles

    Giles - 2012-12-22

    Following investigations on the issue with other versions:
    Tried with same binary and previous version of GDB:
    7.4 --> Same error
    7.0 --> Same error
    6.8 --> Cannot set the breakpoint (probable incompatibility of debug information) but running the program raises the following error that looks a lot like what occurs with version 7:
    Error accessing memory address 0x6: Input/output error.

    Assuming the problems comes from debug data that cause the debuggers to fail I tried to recompile with different versions of MinGW (my binary was compiled with 4.7)
    4.6 --> same error
    4.5 --> same error (had to remove a lot of new C++11 code to compile)
    Return to the good old 4.4 version I was still using few days ago --> the error disappears (had to remove the remaining C++11 code (constexpr) and to bring back some missing windows header).
    Note that this MinGW 4.4 is not the official one but the TDM release. But I tried also the 4.7 release from TDM and it has the same issue as the official 4.7.
    So the problem must have been introduced somewhere in version 4.5.

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-11
    • milestone: --> OTHER
    • type: --> Bug
    • resolution: --> none
    • category: --> Unknown
    • patch_attached: --> False
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks