Sunday, July 6th 2008, 3:26pm UTC+1

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, May 11th 2008, 12:14pm

Why my app crashed?

My application crashed frenquently recent.

I see the core file, the crash reason is the signal 6.
I run the gdb to check what's going on.
Here is the detail info of it.
Anybody can help me to analysis the reason?
It has puzzled me for a long time.
Does it because of the wrong library?

I appreciate you guys can give any idea about it, thank you.



GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `/home/cdatc/AirNet.1/bin/sdd'.
Program terminated with signal 6, Aborted.
Reading symbols from /usr/lib/libmid.so...done.
Loaded symbols for /usr/lib/libmid.so
Reading symbols from /usr/lib/libxerces-c.so.27...done.
Loaded symbols for /usr/lib/libxerces-c.so.27
Reading symbols from /usr/lib/libprogbar.so.1...done.
Loaded symbols for /usr/lib/libprogbar.so.1
Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
Loaded symbols for /usr/lib/libSDL-1.2.so.0
Reading symbols from /usr/lib/libxmlcfg.so.1...done.
Loaded symbols for /usr/lib/libxmlcfg.so.1
Reading symbols from /usr/lib/qt-3.3.3/lib/libqt-mt.so.3...done.
Loaded symbols for /usr/lib/qt-3.3/lib/libqt-mt.so.3
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libpthread.so.0...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libasound.so.2...done.
Loaded symbols for /lib/libasound.so.2
Reading symbols from /usr/lib/libmng.so.1...done.
Loaded symbols for /usr/lib/libmng.so.1
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/X11R6/lib/libXrender.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/libXrandr.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXrandr.so.2
Reading symbols from /usr/X11R6/lib/libXcursor.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXcursor.so.1
Reading symbols from /usr/X11R6/lib/libXinerama.so.1...done.
Loaded symbols for /usr/X11R6/lib/libXinerama.so.1
Reading symbols from /usr/X11R6/lib/libXft.so.2...done.
Loaded symbols for /usr/X11R6/lib/libXft.so.2
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
Reading symbols from /usr/lib/qt-3.3.3/plugins/styles/bluecurve.so...done.
Loaded symbols for /usr/lib/qt-3.3/plugins/styles/bluecurve.so
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcUTF8Load.so.2
Reading symbols from /usr/lib/gconv/EUC-CN.so...done.
Loaded symbols for /usr/lib/gconv/EUC-CN.so
Reading symbols from /usr/lib/gconv/libGB.so...done.
Loaded symbols for /usr/lib/gconv/libGB.so
Reading symbols from /usr/lib/qt-3.3.3/plugins/inputmethods/libqimsw-multi.so...done.
Loaded symbols for /usr/lib/qt-3.3/plugins/inputmethods/libqimsw-multi.so
Reading symbols from /usr/lib/qt-3.3.3/plugins/inputmethods/libqimsw-none.so...done.
Loaded symbols for /usr/lib/qt-3.3/plugins/inputmethods/libqimsw-none.so
Reading symbols from /usr/lib/qt-3.3.3/plugins/inputmethods/libqsimple.so...done.
Loaded symbols for /usr/lib/qt-3.3/plugins/inputmethods/libqsimple.so
Reading symbols from /usr/lib/qt-3.3.3/plugins/inputmethods/libqxim.so...done.
Loaded symbols for /usr/lib/qt-3.3/plugins/inputmethods/libqxim.so
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xomGeneric.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/libesd.so.0...done.
Loaded symbols for /usr/lib/libesd.so.0
Reading symbols from /usr/lib/libaudiofile.so.0...done.
Loaded symbols for /usr/lib/libaudiofile.so.0
#0 0x00a4e7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0 0x00a4e7a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1 0x008197a5 in raise () from /lib/tls/libc.so.6
#2 0x0081b209 in abort () from /lib/tls/libc.so.6
#3 0x0084d71a in __libc_message () from /lib/tls/libc.so.6
#4 0x00854e94 in _int_malloc () from /lib/tls/libc.so.6
#5 0x00856401 in malloc () from /lib/tls/libc.so.6
#6 0x007c73b7 in operator new () from /usr/lib/libstdc++.so.6
#7 0x00fc5ad7 in QString::QString () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#8 0x00fb2e44 in QLocalePrivate::isDigit () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#9 0x00fb3626 in QLocalePrivate::longLongToString () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#10 0x00fc66fa in QString::setNum () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#11 0x00fcb9f4 in QString::number () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#12 0x080e61fe in std::find_if<__gnu_cxx::__normal_iterator<PLAN_INFO*, std::vector<PLAN_INFO, std::allocator<PLAN_INFO> > >, OneCertainPlan> (
__first={_M_current = 0x9399248}, __last={_M_current = 0x939e900}, __pred=
{<std::unary_function<PLAN_INFO,bool>> = {<No data fields>}, planidStr = {static null = {static null = <same as static member of an already seen type>, d = 0x85e70c0, static shared_null = 0x85e70c0}, d = 0x9238538, static shared_null = 0x85e70c0}}) at sdd_dstrip.h:700
#13 0x080e2c5b in DSView::updateStripList (this=0x926c148) at sdd_dsview.cpp:468
#14 0x080e44c6 in DSView::update (this=0x926c148) at sdd_dsview.cpp:447
#15 0x0829396f in DSView::qt_invoke (this=0x926c148, _id=70, _o=0xbffca670) at tmp/moc_sdd_dsview.cpp:121
#16 0x00cfe3d9 in QObject::activate_signal () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#17 0x00cfeb2a in QObject::activate_signal () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#18 0x0829ed2a in PlanReceived::planUpdated (this=0x0) at /usr/lib/qt-3.3/include/qmetaobject.h:261
#19 0x00cfbb34 in QObject::event () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#20 0x00c9f8f9 in QApplication::internalNotify () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#21 0x00c9fa8a in QApplication::notify () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#22 0x00c93c6e in QEventLoop::activateTimers () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#23 0x00c4fc2e in QEventLoop::processEvents () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#24 0x00cb4f25 in QEventLoop::enterLoop () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#25 0x00cb4e7e in QEventLoop::exec () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#26 0x00c9eafb in QApplication::exec () from /usr/lib/qt-3.3/lib/libqt-mt.so.3
#27 0x0815985d in main (argc=1, argv=0xbffcac74) at sdd_main.cpp:52
(gdb)
  • Go to the top of the page

2

Sunday, May 11th 2008, 6:43pm

without any code?
no chance, even in dream!
Nicolas
  • Go to the top of the page

3

Tuesday, May 13th 2008, 10:08am

Hi,
Sorry, the code is too long. in the past 2 years, the application run correctly.
But recently, it crashed a lot (the whole app is re-installed on other machines). I 'm wondering if there any possibability that
the shared libarary corrupted that make the crash happened.

Just help me to analysis the reason why this happed.

I appreciate you guys give me any idea, It's out of my ability.
  • Go to the top of the page

stinny

Beginner

Posts: 26

Location: Prague

Occupation: CS student

4

Tuesday, May 13th 2008, 11:20am

I am afraid that there is only one thing we can advise: debug intensively, check all your allocations, deallocations and pointers, try to reproduce the error with minimum code, don't give up. These errors are mostly hard to fix, but good coding style (writing clean & clear code, using test classes, using assertions, making debug output) can help you a lot.
  • Go to the top of the page

5

Tuesday, May 13th 2008, 2:47pm

At first try to analyse in exactly what situations the application crashes. It can give you a clue about a part of code responsible for that.
  • Go to the top of the page

6

Wednesday, May 14th 2008, 2:14am

Hi,
Do you guys have any idea of why program crashed by recived the sigabrt (signal 6)?
If it is segment fault, the signal should be 11.
What situation the program(shared library) may emit the sigabrt?

Thanks a lot!
  • Go to the top of the page

Rate this thread