Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. GDB Overflows when entering a function
Forum Updated to NodeBB v4.3 + New Features

GDB Overflows when entering a function

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LoPiTaL
    wrote on last edited by
    #1

    Hi everybody!
    I am having a problem when trying to debug a function: when the debugger stops in a breakpoint inside the function, no local variables information is shown, the debug controls (Step Over, Step Into, and so) don't work and after several seconds a window with the message "The gdb process terminated unexpectedly (code 3)" appears.
    If I set the breakpoint in the caller function, then everything works fine, until I step into the called function, when the debugger hangs up once again.

    The "Debugger Log" window, shows the following:

    @>~"../../../../src/gdb-7.5.1/gdb/utils.c:1081: internal-error: virtual memory exhausted: can't allocate 2147450881 bytes.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nQuit this debugging session? "

    ~"(y or n) [answered Y; input not from terminal]\n"
    ~"../../../../src/gdb-7.5.1/gdb/utils.c:1081: internal-error: virtual memory exhausted: can't allocate 2147450881 bytes.\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable.\nCreate a core file of GDB? "
    ~"(y or n) [answered Y; input not from terminal]\n"@

    So, it seems that the GDB debugger somehow overflows.
    There is any workaround to prevent this?

    I am working under Windows 7, using Qt 5.2.1 (I have downloaded the package "Qt 5.2.1 for Android (Windows 32-bit)"

    Thanks in advance,
    LoPiTaL

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved