Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. During debugging GDB crashes in Qt creator
Forum Updated to NodeBB v4.3 + New Features

During debugging GDB crashes in Qt creator

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 801 Views
  • 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.
  • J Offline
    J Offline
    James A
    wrote on last edited by
    #1

    Hai All,

    I was doing a remote debugging using Qt Creator 6.0.2 , while debugging if I click step over immediately the remote application gets crashed with the below error

    ../../../gdb-9.1/gdb/gdbserver/linux-low.c:2569: A problem internal to GDBserver has been detected.
    int maybe_hw_step(thread_info*): Assertion `has_single_step_breakpoints (thread)' failed.
    19:09:33: Application finished with exit code 1.
    

    Debugger info

    james@james-pc:~$ gdb-multiarch -v
    GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
    Copyright (C) 2020 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.
    

    How to fix this problem ?

    Regards,
    James A

    JonBJ 1 Reply Last reply
    0
    • J James A

      Hai All,

      I was doing a remote debugging using Qt Creator 6.0.2 , while debugging if I click step over immediately the remote application gets crashed with the below error

      ../../../gdb-9.1/gdb/gdbserver/linux-low.c:2569: A problem internal to GDBserver has been detected.
      int maybe_hw_step(thread_info*): Assertion `has_single_step_breakpoints (thread)' failed.
      19:09:33: Application finished with exit code 1.
      

      Debugger info

      james@james-pc:~$ gdb-multiarch -v
      GNU gdb (Ubuntu 9.2-0ubuntu1~20.04.1) 9.2
      Copyright (C) 2020 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.
      

      How to fix this problem ?

      Regards,
      James A

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @James-A
      Do you not think this is an internal GDBserver error?

      1 Reply Last reply
      0
      • J Offline
        J Offline
        James A
        wrote on last edited by
        #3

        I was able to fix this problem by removing the gprof compiler flags from the pro file

        QMAKE_CXXFLAGS+=-pg
        QMAKE_LFLAGS+=-pg
        
        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