Results 1 to 3 of 3

Thread: Segmentation fault after Launching Qt app

  1. #1
    Join Date
    Feb 2010
    Posts
    31
    Qt products
    Qt4
    Platforms
    Windows

    Default Segmentation fault after Launching Qt app

    Hi,

    I have a Qt app running on linux and i am able to build it properly.But after the application is launched ,immediately its giving SIGSEGV error .I got the following gdb backtrace output.


    Qt Code:
    1. #0 0x0000ffff in ?? ()
    2. #1 0xb618036d in mbtowc (pwc=0x0, s=0x9808598 "Ь\200\t\001", n=1) at mbtowc.c:65
    3. #2 0xb5de25cc in ?? () from /usr/lib/libX11.so.6
    4. #3 0xb5de186f in ?? () from /usr/lib/libX11.so.6
    5. #4 0xb5dbc28b in _XlcConvert () from /usr/lib/libX11.so.6
    6. #5 0xb5dc3b3f in _Xlcmbstowcs () from /usr/lib/libX11.so.6
    7. #6 0xb5dc3bd3 in _Xmbstowcs () from /usr/lib/libX11.so.6
    8. #7 0xb5dd998f in _XimParseStringFile () from /usr/lib/libX11.so.6
    9. #8 0xb5dd7a84 in _XimLocalOpenIM () from /usr/lib/libX11.so.6
    10. #9 0xb5dd612d in _XimOpenIM () from /usr/lib/libX11.so.6
    11. #10 0xb5dd5e50 in _XimRegisterIMInstantiateCallback () from /usr/lib/libX11.so.6
    12. #11 0xb5dba038 in XRegisterIMInstantiateCallback () from /usr/lib/libX11.so.6
    13. #12 0xb6ebc097 in QXIMInputContext (this=0x98e3f10) at inputmethod/qximinputcontext_x11.cpp:366
    14. #13 0xb6ebab91 in QInputContextFactory::create (key=@0x967c9fc, parent=0xbf888fd8)
    15. at inputmethod/qinputcontextfactory.cpp:135
    16. #14 0xb6890bb5 in QApplication::inputContext (this=0xbf888fd8) at kernel/qapplication.cpp:4979
    17. #15 0xb68dabc8 in QWidgetPrivate::inputContext (this=0x9861a00) at kernel/qwidget.cpp:290
    18. #16 0xb68de51b in QWidget::inputContext (this=0x980fd98) at kernel/qwidget.cpp:309
    19. #17 0xb68979e9 in QApplicationPrivate::setFocusWidget (focus=0x980fd98,
    20. reason=Qt::ActiveWindowFocusReason) at kernel/qapplication.cpp:2107
    21. #18 0xb68e161e in QWidget::setFocus (this=0x980fd98, reason=Qt::ActiveWindowFocusReason)
    22. at kernel/qwidget.cpp:5714
    23. #19 0xb6897f94 in QApplication::setActiveWindow (act=0xbf888f54) at kernel/qapplication.cpp:2460
    24. #20 0xb690756c in QApplication::x11ProcessEvent (this=0xbf888fd8, event=0xbf888c8c)
    25. at kernel/qapplication_x11.cpp:3462
    26. #21 0xb6932c6a in x11EventSourceDispatch (s=0x966ac80, callback=0, user_data=0x0)
    27. at kernel/qguieventdispatcher_glib.cpp:146
    28. #22 0xb5ee2b88 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
    To copy to clipboard, switch view to plain text mode 

    Could anyone has any idea?plz help me out?

    Regards,
    Payal

  2. #2
    Join Date
    Sep 2009
    Posts
    72
    Thanked 10 Times in 10 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi
    Platforms
    Unix/X11 Windows

    Default Re: Segmentation fault after Launching Qt app

    Hard to guess from this. could you please paste ur main() from where ur launching application.

  3. #3
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Segmentation fault after Launching Qt app

    Since #0 is 0xFFFF, you could be trashing the stack and it crashed trying to return from a subroutine. Buffer overrun perhaps.

Similar Threads

  1. segmentation fault
    By navid in forum Qt Programming
    Replies: 3
    Last Post: 20th December 2009, 11:40
  2. Segmentation fault
    By Schimanski in forum Qt Programming
    Replies: 20
    Last Post: 31st August 2009, 16:26
  3. Segmentation Fault
    By Krish_ng in forum Qt Programming
    Replies: 8
    Last Post: 7th August 2007, 10:49
  4. Segmentation Fault
    By merry in forum General Programming
    Replies: 4
    Last Post: 12th March 2007, 04:08
  5. segmentation fault
    By shamik in forum Qt Programming
    Replies: 3
    Last Post: 24th November 2006, 07:33

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.