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. Existence of gmon file after running Qt5.8 application with -pg -g with mingw g++ 6.3.0 causes gdborig.exe to crash on windows when creating QFileDiologue

Existence of gmon file after running Qt5.8 application with -pg -g with mingw g++ 6.3.0 causes gdborig.exe to crash on windows when creating QFileDiologue

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 1.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.
  • S Offline
    S Offline
    Stoke
    wrote on last edited by Stoke
    #1

    Hello, I was having an odd error when debugging that seemed to come out of nowhere, I was getting gdborig crashes out of nowhere, when nothing codewise appeared to be responsible, I knew it had to do with -pg though since I just added it recently to my cmake file inorder to use gprof on windows. The crash only happens when launching a QFileDiologue AFAIK, all other gui functionality seemed to work (buttons, trees, docked windows etc..) . QFileDiologue loads everything in the file diologue gui accept file thumbnail images, and right before it is about to do that it crashes

    I reverted to a previous commit (right before the crash) and sure enough it worked. However strangely it also worked with -pg added back in which really made me scratch my head. I figured that the only thing that could cause an error only after the first run would be persistent files which only exist after the first run (gmon). I deleted gmon and sure enough it worked.

    I'm not sure what causes this problem, is it possible to stop this from happening? What causes this issue?

    1 Reply Last reply
    0
    • Vinod KuntojiV Offline
      Vinod KuntojiV Offline
      Vinod Kuntoji
      wrote on last edited by Vinod Kuntoji
      #2

      @Stoke,
      If you dont give -pg option to gcc, gprof will read the old gmon.out file if it exists.

      C++, Qt, Qt Quick Developer,
      PthinkS, Bangalore

      S 1 Reply Last reply
      2
      • Vinod KuntojiV Vinod Kuntoji

        @Stoke,
        If you dont give -pg option to gcc, gprof will read the old gmon.out file if it exists.

        S Offline
        S Offline
        Stoke
        wrote on last edited by Stoke
        #3

        @Vinod-Kuntoji I was using -pg as a compilation and linking option, not a gprof option unless I can do -pg as just a gprof option, though I was getting odd results with out -pg as well if there was still a gmon.out file (or a ghost gmon.out file if the debuging session ended from a segfault instead of graceful failure)

        1 Reply Last reply
        0
        • Vinod KuntojiV Offline
          Vinod KuntojiV Offline
          Vinod Kuntoji
          wrote on last edited by
          #4

          @stoke,
          Can you share those odd results?

          C++, Qt, Qt Quick Developer,
          PthinkS, Bangalore

          1 Reply Last reply
          1

          • Login

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