Results 1 to 5 of 5

Thread: weird segmentation fault on startup

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2015
    Posts
    42
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt5
    Platforms
    Windows

    Default weird segmentation fault on startup

    Hi there,

    I'm currently experiencing a strange behaviour.

    Qt Code:
    1. DEFINES += QT_NO_DEBUG_OUTPUT
    2. CONFIG += release
    3. TARGET = myProg
    4. TEMPLATE = app
    To copy to clipboard, switch view to plain text mode 

    When built as realease it leads to a segmentation error on startup insight the IDE.

    I switch to debug mode using modified pro file

    Qt Code:
    1. #DEFINES += QT_NO_DEBUG_OUTPUT
    2. #CONFIG += release
    3. TARGET = myProg
    4. TEMPLATE = app
    To copy to clipboard, switch view to plain text mode 

    It runs fine.

    sigsegv.jpg

    When it occurs, it compiles and starts. On startup it runs into the error. The strange thing now is: I can press the "resume"-button, and it works. Program starts after hitting this button twice. Furthermore I can deploy the resulting *.exe and it works without any problems.

    However I'm not a pro-programmer. I'm more or less coming from the "user"-side and I used Qt as a substitute for Matlab. That's why I'm not to familiar with debugging methods. I debugged algorithms and functions, observed incrementors and condition. But this seems to be beyond my horizon. Looks like it involves system-functions and -libraries. I would be glad if somebody could give me a hint on how to start finding out all about this.

    I did an update to latest Qt5-version. No effect.

    version.png

    Thanks in advance, Lars
    Last edited by mustermann.klaus@gmx.de; 28th February 2021 at 15:32. Reason: spelling corrections

Similar Threads

  1. Crash at startup giving segmentation fault
    By Tanu@123 in forum Qt Programming
    Replies: 0
    Last Post: 20th June 2018, 06:57
  2. Very slow startup by the first run
    By denizlitr in forum Qt for Embedded and Mobile
    Replies: 14
    Last Post: 2nd November 2016, 07:30
  3. QT app crash at startup
    By pl01 in forum Newbie
    Replies: 4
    Last Post: 5th June 2013, 10:45
  4. weird weird mingw32-make
    By KillGabio in forum Qt Programming
    Replies: 19
    Last Post: 20th January 2012, 20:09
  5. QToolBar go away! On startup anyway.
    By bitChanger in forum Qt Programming
    Replies: 1
    Last Post: 10th February 2006, 18:22

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.