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. valgrind in qtcreator crashed
Forum Update on Monday, May 27th 2025

valgrind in qtcreator crashed

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 5 Posters 2.1k 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.
  • G Offline
    G Offline
    GuYan
    wrote on last edited by
    #1

    I tried to use valgrind tools to analyze my application. But it can't work. So I created a plain QWidgets project and it still can't work. The Qt version is 5.12.2, QtCreator 4.9 and I run it in vmware Linux. The log is as followed.

    ==5882== Callgrind, a call-graph generating cache profiler
    ==5882== Copyright (C) 2002-2017, and GNU GPL'd, by Josef Weidendorfer et al.
    ==5882== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
    ==5882== Command: /home/guyan/QtProjects/build-memcheck-Desktop_Qt_5_12_2_GCC_64bit-Debug/memcheck
    ==5882== 
    ==5882== For interactive control, run 'callgrind_control -h'.
    ==5882== 
    ==5882== Process terminating with default action of signal 11 (SIGSEGV)
    ==5882==  General Protection Fault
    ==5882==    at 0x276C7162: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
    ==5882==    by 0x276D4505: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
    ==5882==    by 0x276D49B6: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
    ==5882==    by 0x26F609F2: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
    ==5882==    by 0x27472E50: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
    ==5882==    by 0x2733B811: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
    ==5882==    by 0x273368DA: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
    ==5882==    by 0x25C4F476: ??? (in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0)
    ==5882==    by 0x25C22E1D: ??? (in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0)
    ==5882==    by 0x25C1E543: ??? (in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0)
    ==5882==    by 0x25C1EF2C: ??? (in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0)
    ==5882==    by 0x257C5841: QXcbGlxWindow::createVisual() (qxcbglxwindow.cpp:66)
    ==5882== 
    ==5882== Events    : Ir
    ==5882== Collected : 0
    ==5882== 
    ==5882== I   refs:      0
    

    It seems that the faults are caused by vmware player. So is there any way to solve it?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      Did you install the wmware tools also ?
      also this seems a bit odd
      libGLX_mesa.so.0.0.0

      Does openGl generally work in your virtual machine ?

      G 1 Reply Last reply
      1
      • G Offline
        G Offline
        GuYan
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • mrjjM mrjj

          Hi
          Did you install the wmware tools also ?
          also this seems a bit odd
          libGLX_mesa.so.0.0.0

          Does openGl generally work in your virtual machine ?

          G Offline
          G Offline
          GuYan
          wrote on last edited by
          #4

          @mrjj Yes, I have installed the vmware tools. And I tried a simple programme with OpenGL Library. It do works.
          About libGLX_mesa.so.0.0.0, I really don't know what it is. So what can I do?

          mrjjM 1 Reply Last reply
          0
          • G GuYan

            @mrjj Yes, I have installed the vmware tools. And I tried a simple programme with OpenGL Library. It do works.
            About libGLX_mesa.so.0.0.0, I really don't know what it is. So what can I do?

            mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @GuYan
            Really not sure what else could be wrong then.
            valgrind really dont use openGL so its a bit odd to start with.
            Does valgrind work if you start it from commandline ?

            btw: what linux distro do you use ?

            G 1 Reply Last reply
            1
            • mrjjM mrjj

              @GuYan
              Really not sure what else could be wrong then.
              valgrind really dont use openGL so its a bit odd to start with.
              Does valgrind work if you start it from commandline ?

              btw: what linux distro do you use ?

              G Offline
              G Offline
              GuYan
              wrote on last edited by
              #6

              @mrjj The problem is the same when I run it from commandline. I wonder if the openGL is used by the Qt application.
              And I use the Ubuntu 18.04LTS.

              mrjjM 1 Reply Last reply
              0
              • G GuYan

                @mrjj The problem is the same when I run it from commandline. I wonder if the openGL is used by the Qt application.
                And I use the Ubuntu 18.04LTS.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @GuYan
                well if you didnt use any openGL Qt features in your app, it should not.

                Give it a day. Maybe others have run into same issue.

                G 1 Reply Last reply
                0
                • mrjjM mrjj

                  @GuYan
                  well if you didnt use any openGL Qt features in your app, it should not.

                  Give it a day. Maybe others have run into same issue.

                  G Offline
                  G Offline
                  GuYan
                  wrote on last edited by
                  #8

                  @mrjj OK, thanks. If it still can't work. I may install the Linux directly.

                  mrjjM 1 Reply Last reply
                  0
                  • G GuYan

                    @mrjj OK, thanks. If it still can't work. I may install the Linux directly.

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @GuYan
                    ok. good plan.
                    even it should also work virtually.

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      rejuce
                      wrote on last edited by rejuce
                      #10

                      i encounter exatly the same problem under ubuntu 18.04lts under vmware trying to use valgrind on my qwidgets app

                      Command: /home/jk/QtProjetcs/FOSVoith/build-trunkQT-Desktop_Qt_5_12_3_GCC_64bit2-Profile/trunkQT
                      ==7915==
                      ==7915== For interactive control, run 'callgrind_control -h'.
                      ==7915==
                      ==7915== Process terminating with default action of signal 11 (SIGSEGV)
                      ==7915== General Protection Fault
                      ==7915== at 0x2EE64162: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
                      ==7915== by 0x2EE71505: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
                      ==7915== by 0x2EE719B6: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
                      ==7915== by 0x2E6FD9F2: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
                      ==7915== by 0x2EC0FE50: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
                      ==7915== by 0x2EAD8811: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
                      ==7915== by 0x2EAD38DA: ??? (in /usr/lib/x86_64-linux-gnu/dri/vmwgfx_dri.so)
                      ==7915== by 0x2D3E8184: ??? (in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0)
                      ==7915== by 0x2D3BFE33: ??? (in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0)
                      ==7915== by 0x2D3BB543: ??? (in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0)
                      ==7915== by 0x2D3BBF2C: ??? (in /usr/lib/x86_64-linux-gnu/libGLX_mesa.so.0.0.0)
                      ==7915== by 0x2CF7D841: QXcbGlxWindow::createVisual() (qxcbglxwindow.cpp:66)
                      ==7915==
                      ==7915== Events : Ir
                      ==7915== Collected : 380114336
                      ==7915==
                      ==7915== I refs: 380,114,336

                      did smd find a solution?

                      1 Reply Last reply
                      0
                      • Z Offline
                        Z Offline
                        Zekses
                        wrote on last edited by
                        #11

                        It works after doing this: export LIBGL_ALWAYS_SOFTWARE=1
                        Huge thanks to ppl in slack/qt for the solution

                        s_milena__97S 1 Reply Last reply
                        7
                        • Z Zekses

                          It works after doing this: export LIBGL_ALWAYS_SOFTWARE=1
                          Huge thanks to ppl in slack/qt for the solution

                          s_milena__97S Offline
                          s_milena__97S Offline
                          s_milena__97
                          wrote on last edited by
                          #12

                          @Zekses Thank you. Really helpful! ❤️ It saved me for my software verification student project!

                          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