Results 1 to 2 of 2

Thread: Error with Debug Binaries

  1. #1
    Join Date
    May 2008
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Error with Debug Binaries

    My project application runs smoothly when built in release mode.
    However, when it is run after building in debug mode, I get a segmentation fault in a line which is very generic and I have been using it as a template.

    QApplication app( argc, argv );

    The full file is :

    Qt Code:
    1. #include <QApplication>
    2. #include "mainwindowimpl.h"
    3.  
    4.  
    5.  
    6.  
    7.  
    8. int main(int argc, char ** argv)
    9. {
    10. QApplication app( argc, argv );
    11.  
    12. MainWindowImpl win;
    13. win.show();
    14. app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
    15.  
    16.  
    17. return app.exec();
    18. }
    To copy to clipboard, switch view to plain text mode 

    Back trace is :

    Starting program: E:\QMTSim\QMTSim1.0\bin/test5.exe

    Program received signal SIGSEGV, Segmentation fault.
    0x051bc66d in ?? ()
    (gdb) bt
    #0 0x051bc66d in ?? ()
    #1 0x7c91cbab in _libkernel32_a_iname ()
    #2 0x7c916178 in _libkernel32_a_iname ()
    #3 0x7c9162da in _libkernel32_a_iname ()
    #4 0x7c801bb9 in _libkernel32_a_iname ()
    #5 0x7e42dbfb in _libkernel32_a_iname ()
    #6 0x7c90eae3 in _libkernel32_a_iname ()
    #7 0x7e41fecc in _libkernel32_a_iname ()
    #8 0x7e41ff66 in _libkernel32_a_iname ()
    #9 0x1017700a in qt_create_internal_window(QEventDispatcherWin32 const*) (
    eventDispatcher=0x394b8) at kernel/qeventdispatcher_win.cpp:535
    #10 0x10177632 in QPrinter::~QPrinter() ()
    at kernel/qeventdispatcher_win.cpp:635
    #11 0x00d91c25 in ?? ()
    #12 0x00d91d4d in ?? ()
    #13 0x1014694c in QCoreApplication::init() (this=0x23fde0)
    at kernel/qcoreapplication.cpp:461
    #14 0x101464e7 in QCoreApplication::QCoreApplication(QCoreApplicatio nPrivate&)
    (this=0x23fde0, p=@0x34fd0) at kernel/qcoreapplication.cpp:392
    #15 0x00d1ba4b in ?? ()
    #16 0x00409ea1 in qMain(int, char**) (argc=1, argv=0x34f98) at src/main.cpp:10
    #17 0x0041c2b4 in WinMain (instance=0x400000, prevInstance=0x0, cmdShow=10)
    at qtmain_win.cpp:140
    ---Type <return> to continue, or q <return> to quit---
    #18 0x0041bcea in main ()
    (gdb) bt > log.txt
    A parse error in expression, near ` log.txt'.
    (gdb) q
    The program is running. Exit anyway? (y or n) y

    E:\QMTSim\QMTSim1.0\bin>
    Full project can be got at code.google.com/p/qmtsim

    I have not been able to figure out what to do as this goes beyond my realm.

    Please help me in debugging this, me and my project is waiting to go ahead .

    Thanks for your time and co-operation.
    Last edited by jpn; 28th June 2008 at 21:55. Reason: missing tags

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Error with Debug Binaries

    Maybe the debug versions of Qt libraries got damaged somehow?

Similar Threads

  1. Some very weird compilation warnings
    By MarkoSan in forum Qt Programming
    Replies: 21
    Last Post: 23rd January 2008, 16:48
  2. Replies: 2
    Last Post: 8th November 2007, 20:15
  3. Qt4 open src mingw from a PC to another
    By nvictor in forum Installation and Deployment
    Replies: 11
    Last Post: 1st May 2007, 17:41
  4. Adding custom defines when on debug build
    By chus in forum Qt Programming
    Replies: 2
    Last Post: 2nd March 2007, 11:38
  5. Replies: 11
    Last Post: 22nd March 2006, 19:06

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.