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. Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Qt Creator

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

    Why does Qt Creator not jump to the erroneous program code but instead jump to an error address when a segmentation fault occurs during debugging?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      That happens when the segfault happens in library for which you do not have source code or debugging symbols.

      (Z(:^

      1 Reply Last reply
      3
      • H Offline
        H Offline
        hy1011
        wrote on last edited by
        #3

        Contains source code and should be able to jump to the erroneous program without debugging symbols when the program encounters an error

        JonBJ sierdzioS 2 Replies Last reply
        0
        • H hy1011

          Contains source code and should be able to jump to the erroneous program without debugging symbols when the program encounters an error

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

          @hy1011
          What source code? Your own? How does that relate to if the seg fault is in a library for which you do not have source code or cannot be found? Post the stack trace when you get the SEGV so we can see just where it is dying.

          1 Reply Last reply
          0
          • H hy1011

            Contains source code and should be able to jump to the erroneous program without debugging symbols when the program encounters an error

            sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            @hy1011 said in Qt Creator:

            Contains source code and should be able to jump to the erroneous program without debugging symbols when the program encounters an error

            Debugger stops exactly where segfault occurs. Often this is somewhere in Qt libraries, 3rd party libs or system libs. You just need to move a few steps back in stack view to find the last part of your code which got executed (and is usually the reason for the crash).

            (Z(:^

            1 Reply Last reply
            3

            • Login

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