Results 1 to 2 of 2

Thread: sigsegv ?

  1. #1
    Join Date
    Sep 2009
    Location
    Warsaw/Poland
    Posts
    56
    Thanks
    8
    Thanked 4 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default sigsegv ?

    Sometimes I got sigsegv in my application and I can't find what is wrong...
    Anyone ?

    Qt Code:
    1. Program received signal SIGSEGV, Segmentation fault.
    2. malloc_consolidate (av=<value optimized out>) at malloc.c:5089
    3. 5089 malloc.c: No such file or directory.
    4. in malloc.c
    5. Current language: auto
    6. The current source language is "auto; currently c".
    7. (gdb) bt
    8. #0 malloc_consolidate (av=<value optimized out>) at malloc.c:5089
    9. #1 0x00b034b2 in _int_malloc (av=<value optimized out>, bytes=<value optimized out>) at malloc.c:4338
    10. #2 0x00b05868 in *__GI___libc_malloc (bytes=16404) at malloc.c:3638
    11. #3 0x004c56bd in qMalloc (size=16404) at global/qmalloc.cpp:55
    12. #4 0x004ce32b in QByteArray::resize (this=0x8b5b094, size=16384) at tools/qbytearray.cpp:1336
    13. #5 0x00557693 in QRingBuffer::clear (this=0x8b5ac78) at ../../include/QtCore/private/../../../src/corelib/tools/qringbuffer_p.h:206
    14. #6 QRingBuffer (this=0x8b5ac78) at ../../include/QtCore/private/../../../src/corelib/tools/qringbuffer_p.h:66
    15. #7 QIODevicePrivate (this=0x8b5ac78) at io/qiodevice.cpp:121
    16. #8 0x0054e71f in QFilePrivate (this=0x8b5ac78) at io/qfile.cpp:93
    17. #9 0x0054ebb3 in QFile (this=0xbfffeaf8, name=...) at io/qfile.cpp:383
    18. #10 0x00586192 in QConfFileSettingsPrivate::syncConfFile (this=0x8115318, confFileNo=1) at io/qsettings.cpp:1443
    19. #11 0x005872e3 in QConfFileSettingsPrivate::sync (this=0x8115318) at io/qsettings.cpp:1387
    20. ---Type <return> to continue, or q <return> to quit---
    21. #12 0x0057b641 in QConfFileSettingsPrivate::flush (this=0x8115318) at io/qsettings.cpp:1394
    22. #13 0x0057b622 in QSettingsPrivate::update (this=0x8115318) at io/qsettings.cpp:405
    23. #14 0x0057bc20 in QSettings::event (this=0x8c1d400, event=0xbd73d0) at io/qsettings.cpp:3330
    24. #15 0x01094f54 in QApplicationPrivate::notify_helper (this=0x80d1220, receiver=0xbffff244, e=0x88f35d8) at kernel/qapplication.cpp:4056
    25. #16 0x0109c67c in QApplication::notify (this=0xbffff2d8, receiver=0xbffff244, e=0x88f35d8) at kernel/qapplication.cpp:3603
    26. #17 0x005bb6cb in QCoreApplication::notifyInternal (this=0xbffff2d8, receiver=0xbffff244, event=0x88f35d8) at kernel/qcoreapplication.cpp:610
    27. #18 0x005bc2b2 in QCoreApplication::sendEvent (receiver=0x0, event_type=0, data=0x80d12f0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:213
    28. #19 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x80d12f0) at kernel/qcoreapplication.cpp:1247
    29. #20 0x005bc47d in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1140
    30. #21 0x005e63ff in QCoreApplication::sendPostedEvents (s=0x80d9b10) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:218
    31. #22 postEventSourceDispatch (s=0x80d9b10) at kernel/qeventdispatcher_glib.cpp:210
    32. #23 0x00c90e78 in g_main_dispatch (context=0x80d9a90) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:1960
    33. ---Type <return> to continue, or q <return> to quit---
    34. #24 IA__g_main_context_dispatch (context=0x80d9a90) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2513
    35. #25 0x00c94720 in g_main_context_iterate (context=0x80d9a90, block=<value optimized out>, dispatch=1, self=0x80d72c8) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2591
    36. #26 0x00c94853 in IA__g_main_context_iteration (context=0x80d9a90, may_block=1) at /build/buildd/glib2.0-2.22.2/glib/gmain.c:2654
    37. #27 0x005e602c in QEventDispatcherGlib::processEvents (this=0x80d7028, flags=...) at kernel/qeventdispatcher_glib.cpp:327
    38. #28 0x01135be5 in QGuiEventDispatcherGlib::processEvents (this=0x80d7028, flags=...) at kernel/qguieventdispatcher_glib.cpp:202
    39. #29 0x005b9c79 in QEventLoop::processEvents (this=0xbffff1c4, flags=DWARF-2 expression error: DW_OP_reg operations must be used either alone or in conjuction with DW_OP_piece.
    40. ) at kernel/qeventloop.cpp:149
    41. #30 0x005ba0ca in QEventLoop::exec (this=0xbffff1c4, flags=...) at kernel/qeventloop.cpp:201
    42. #31 0x005bc53f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:888
    43. #32 0x01094dd7 in QApplication::exec () at kernel/qapplication.cpp:3525
    44. #33 0x0808c067 in main (argc=1, argv=0xbffff3d4) at /home/mero/Projekty_moje/otwarte/sourceforge.net/SCC/scc/src/main.cpp:64
    To copy to clipboard, switch view to plain text mode 

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

    Default Re: sigsegv ?

    Since the sigsegv is in malloc.c, I think it's safe to assume you have memory corruption somewhere in your app.

Similar Threads

  1. QSqlQueryModel::setQuery - SIGSEGV
    By onamatic in forum Qt Programming
    Replies: 14
    Last Post: 27th January 2009, 11:26
  2. QAbstractSocket::abort() with SIGSEGV
    By mtrpoland in forum Qt Programming
    Replies: 1
    Last Post: 24th February 2008, 18:05
  3. Program crashes (SIGSEGV)
    By Voldemort in forum Qt Programming
    Replies: 47
    Last Post: 21st May 2007, 21:09
  4. QUrlOperator doesn't emit finished signal
    By hayati in forum Qt Programming
    Replies: 16
    Last Post: 26th March 2007, 21:25

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.