Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Why is GDB "terminating"?

Why is GDB "terminating"?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 3 Posters 428 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    I am trying to test / debug "viewportMargins" , and it runs OK , but "GDB" terminates in debug. Why?

    Actually I need to "get" current viewport margins and I am not sure at what point (of constructor code ?) I can do that.

    7e992b69-f5c4-41b7-ae85-a3d0e312f62e-image.png

    1 Reply Last reply
    0
    • cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote on last edited by
      #2

      By the looks of it you are using Linux. Which flavor of Linux and most importantly which version of gdb?

      It is known that Ubuntu 22.04 is shipping a "beta" version of gdb (12.0.90) which has problems, and the fix is to upgrade to gdb version 12.1.0.

      1 Reply Last reply
      0
      • andrA Offline
        andrA Offline
        andr
        wrote on last edited by
        #3

        There might be a hint in the debugger log (right pane of Views->Views...->Debugger Log), but it could well be that GDB simply crashes.

        If this persists, you can also use LLDB. This will not be uniformly better, but possibly not crash in this exact location.

        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