PDA

View Full Version : sigsegv ?



mero
28th November 2009, 15:31
Sometimes I got sigsegv in my application and I can't find what is wrong...
Anyone ?



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

squidge
28th November 2009, 18:01
Since the sigsegv is in malloc.c, I think it's safe to assume you have memory corruption somewhere in your app.