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. Is it possible to have a segment fault because of the QML debugging ?
Forum Updated to NodeBB v4.3 + New Features

Is it possible to have a segment fault because of the QML debugging ?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
segfaultdebugger
9 Posts 4 Posters 250 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
    AntGP
    wrote last edited by
    #1

    I was experiencing a very weird event: a segmentation fault at every execution of the debugger. Initially, I thought I'd messed up a QHash I was using heavily. I used the debugger and step-by-step tool so extensively that I hadn't attempted a real execution for hours.

    Then, I noticed that the segfault happened even when the debugging was paused. This made me suspicious, so i first tried to stop the debug at the very start of the program on the main and it still crashed even if it was on pause. And i started to notice a correlation bettwen the time of the segfault and the time the local variable view took to load.
    So I tried to execute the program without the debugger, and it worked fine. When closing the expression evaluator, it still crashed, but once I cleared the expressions, it stopped crashing.

    So, my question is: is it supposed to be possible to cause a segmentation fault with the Expression Evaluator tab?
    Or am i the choosen one, the only one able to segfault the world, unable to download Qt5, destroyer of nativ C++ library, the one unable to use a slot for a connect

    I didn't manage to recover the exact expression that caused the segfault because I deleted them all, but I think it was something like a QHash with only one entry, cast into its key.

    JonBJ 1 Reply Last reply
    0
    • A AntGP

      I was experiencing a very weird event: a segmentation fault at every execution of the debugger. Initially, I thought I'd messed up a QHash I was using heavily. I used the debugger and step-by-step tool so extensively that I hadn't attempted a real execution for hours.

      Then, I noticed that the segfault happened even when the debugging was paused. This made me suspicious, so i first tried to stop the debug at the very start of the program on the main and it still crashed even if it was on pause. And i started to notice a correlation bettwen the time of the segfault and the time the local variable view took to load.
      So I tried to execute the program without the debugger, and it worked fine. When closing the expression evaluator, it still crashed, but once I cleared the expressions, it stopped crashing.

      So, my question is: is it supposed to be possible to cause a segmentation fault with the Expression Evaluator tab?
      Or am i the choosen one, the only one able to segfault the world, unable to download Qt5, destroyer of nativ C++ library, the one unable to use a slot for a connect

      I didn't manage to recover the exact expression that caused the segfault because I deleted them all, but I think it was something like a QHash with only one entry, cast into its key.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote last edited by
      #2

      @AntGP said in Is it possible to have a segment fault because of the QML debugging ?:

      So, my question is: is it supposed to be possible to cause a segmentation fault with the Expression Evaluator tab?

      Sadly I have seen this reported here previously. There was one such a few(?) months ago. Might have been a widgets application and might have been an assertion failure, but something similar to yours. I believe that may have been reported for fixing, as I think Creator is not "supposed" to "crash" on an expression evaluation.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        AntGP
        wrote last edited by AntGP
        #3

        should i try to report the bug ? idk how, but sins i'm working on the community edition, it the main point to have one : having random people such as me, using the software the wrongest way possible to help inproving it

        1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote last edited by aha_1980
          #4

          @AntGP @JonB I think it is https://forum.qt.io/topic/161612/qt-creator-crashes-sigabrt-on-expression-error and that already links to a bugreport: https://bugreports.qt.io/browse/QTCREATORBUG-32747

          You can comment and vote there.

          Qt has to stay free or it will die.

          JonBJ 1 Reply Last reply
          2
          • aha_1980A aha_1980

            @AntGP @JonB I think it is https://forum.qt.io/topic/161612/qt-creator-crashes-sigabrt-on-expression-error and that already links to a bugreport: https://bugreports.qt.io/browse/QTCREATORBUG-32747

            You can comment and vote there.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote last edited by
            #5

            @aha_1980
            Yep, that was the one, thank you for locating it. It does not look like anyone is presently acting on it?

            1 Reply Last reply
            0
            • aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote last edited by
              #6

              @JonB Doesn't look so. As said, comment and vote on the bug report to signal the importance.

              Qt has to stay free or it will die.

              1 Reply Last reply
              0
              • A AntGP has marked this topic as solved
              • A Offline
                A Offline
                AntGP
                wrote last edited by AntGP
                #7

                how do i vote a bug report ? i don't see any button

                jsulmJ 1 Reply Last reply
                0
                • A AntGP

                  how do i vote a bug report ? i don't see any button

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote last edited by
                  #8

                  @AntGP said in Is it possible to have a segment fault because of the QML debugging ?:

                  i don't see any button

                  Did you log-in?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    AntGP
                    wrote last edited by
                    #9

                    indeed, now there was a button

                    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