Results 1 to 6 of 6

Thread: Segfault when running debug in Win7 x64 (gdb-MinGW)

  1. #1
    Join Date
    Jun 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Question Segfault when running debug in Win7 x64 (gdb-MinGW)

    I'm using Windows 7 x64 and I just installed the latest Qt 4.7.0 (x86).

    With no changes to the configuration, i've created a test Qt GUI application. No code and no extra components were added. As i'm used to the Visual Studio environment i pressed F5 to launch the application. This should launch the debugger and eventually the application... but it crashes in a few seconds due to a Segfault. I have to manually kill the debugger.

    I tried to install the Windows debugging tools (both x86 as x64), but enabling them in the options window has no effect at all.
    In release mode any application compiles, links and runs fine.

    Because I have to force-kill the debugger, the application output is empty.

    edit:
    I found some additional information about the segfault:
    0 CMGxSrv!?removeCOMHook@@YAHXZ C:\Windows\SysWOW64\HsSrv.dll 0 0x1000b331
    1 ?? 0 0xc5a84153
    2 ?? 0 0x00000000

    edit 2:
    I searched for more details about the error above and I discovered that HsSrv.dll is part of my sound card driver (Asus Xonar D2X). How could this possibly be related to Qt?!
    Last edited by BitMaster; 26th June 2010 at 00:55.

  2. #2
    Join Date
    Jun 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Segfault when running debug in Win7 x64 (gdb-MinGW)

    Isn't there anything I could do to trace the source of the error?
    If i search for any error messages related to HsSrv.dll, "division by zero" is mentioned.

    Maybe there is a way to detach this dll from my application?

    I certainly hope that I don't have to contact Asus for this, as there really isn't a good way to contact them. They probably won't solve this problem anyway, i'm afraid.

    Every suggestion is very welcome! Thanks for your help

  3. #3
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Segfault when running debug in Win7 x64 (gdb-MinGW)

    Quote Originally Posted by BitMaster View Post
    Isn't there anything I could do to trace the source of the error?
    If i search for any error messages related to HsSrv.dll, "division by zero" is mentioned.

    Maybe there is a way to detach this dll from my application?

    I certainly hope that I don't have to contact Asus for this, as there really isn't a good way to contact them. They probably won't solve this problem anyway, i'm afraid.

    Every suggestion is very welcome! Thanks for your help
    ------------------------------------------------------------------------------
    Hi,

    i have the same Problem with Qt-Debugger and Asus Xonar D1. You have already a solution to the problem? It´s realy important ...

    Greetings from Germany
    nanochen

  4. #4
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Segfault when running debug in Win7 x64 (gdb-MinGW)

    oh, I found the problem and the following is to eliminate the problem:
    - open msconfig.exe
    - go to register "system start" (i have german version of windows 7 64 bit)
    - disable HsMgr
    - restart windows
    READY

    The Asus Xonar Driver and Tool works great and the Qt Debugger makes his work


    best regards
    nanochen
    Last edited by nanochen; 4th December 2010 at 11:31.

  5. #5
    Join Date
    Jun 2010
    Posts
    4
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Segfault when running debug in Win7 x64 (gdb-MinGW)

    Haha, never thought anyone would ever reply to this.
    I never solved it, but thanks for your answer, i will try it soon

  6. #6
    Join Date
    Feb 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs up Re: Segfault when running debug in Win7 x64 (gdb-MinGW)

    Save issue here (I have a Xonar D2X).
    I never thought it was related to my sound card =|

    Thanks for the fix !

Similar Threads

  1. Replies: 3
    Last Post: 29th January 2010, 09:06
  2. Unable to build Qt 4.4.0 debug libs with MinGW (pch error)
    By AlGaN in forum Installation and Deployment
    Replies: 2
    Last Post: 7th June 2008, 14:24
  3. debug with MinGW & Qt 4.4.0
    By andrew209 in forum Installation and Deployment
    Replies: 2
    Last Post: 30th May 2008, 17:07
  4. debug error eclipse+qt mingw
    By sakthi in forum Qt Programming
    Replies: 0
    Last Post: 19th January 2008, 04:44
  5. Failure to build Debug libs - Vista Mingw Qt 4.3.2
    By pmabie in forum Installation and Deployment
    Replies: 8
    Last Post: 15th October 2007, 18:04

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.