Bug 81303 - KStars crashes after loading in a segmentation fault
Summary: KStars crashes after loading in a segmentation fault
Status: RESOLVED WORKSFORME
Alias: None
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: RedHat Enterprise Linux Linux
: NOR crash
Target Milestone: ---
Assignee: kstars
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-11 09:36 UTC by Xavier Fung
Modified: 2005-01-11 05:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Fung 2004-05-11 09:36:35 UTC
Version:            (using KDE KDE 3.2.2)
Installed from:    RedHat RPMs
Compiler:          gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7) 
OS:                Linux

Hello.

I have compiled Kstars from source again. This time the compliation went fine with the workaround you previously mentioned in another bug report. However, I have got a SIGSEGV when launching Kstars. I have tried using "gdb $(which kstars)" and got the following output:

[xavier@localhost kstars]$ gdb $(which kstars)
GNU gdb Red Hat Linux (6.0post-0.20040223.19rh)
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"...(no debugging symbols found)...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/kstars
Error while mapping shared library sections:
: Success.
Error while reading shared library symbols:
: No such file or directory.
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...[Thread debugging using libthread_db enabled]
[New Thread -150743904 (LWP 13862)]
(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...(no debugging symbols found)...Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
(no debugging symbols found)...Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
(no debugging symbols found)...Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
(no debugging symbols found)...Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
(no debugging symbols found)...Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
(no debugging symbols found)...Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
(no debugging symbols found)...Error while reading shared library symbols:
: No such file or directory.
Error while reading shared library symbols:
: No such file or directory.
(no debugging symbols found)...Error while reading shared library symbols:
: No such file or directory.
ASSERT: "i <= nodes" in /usr/lib/qt-3.3/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.3/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.3/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.3/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.3/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.3/include/qvaluelist.h (372)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -150743904 (LWP 13862)]
0x052528a9 in QString::QString () from /usr/lib/qt-3.3/lib/libqt-mt.so.3

-------------------------------------------------------------------

It seems I have got a segmentation fault. I have tried launching kstars by "kstars --sync --nocrashhandler" and it resulted in segmentation fault.

I am now running Fedora Core 2 Test 3.
Thanks for hunting again!

Xavier Fung
Comment 1 kstars 2004-06-01 09:42:37 UTC
Please try this again after updating CVS...
Comment 2 Satish K. Pagare 2004-09-03 14:10:45 UTC
Hi,

I am getting SEGV with the same error messages.
kdebase 3.1-12
RH9

Also the file valaava.dat is not there in the package I downloaded. :(

./kstars
QString::arg(): Argument missing: Otherwise, press Cancel to continue loading without this file., valaav.dat
ASSERT: "i <= nodes" in /usr/lib/qt-3.1/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.1/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.1/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.1/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.1/include/qvaluelist.h (372)
ASSERT: "i <= nodes" in /usr/lib/qt-3.1/include/qvaluelist.h (372)


Here's the backtrace :-
[New Thread 1093287936 (LWP 1485)]
0xffffe002 in ?? ()
#0  0xffffe002 in ?? ()
#1  0x406d45bd in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
#2  <signal handler called>
#3  0x080a2157 in KSMoon::findPhase(KSSun const*) ()
#4  0x080c25b6 in KStarsData::updateTime(GeoLocation*, SkyMap*, bool) ()
#5  0x080b05b3 in KStars::updateTime(bool) ()
#6  0x080cfcc1 in KStars::privatedata::buildGUI() ()
#7  0x080cf2ac in KStars::datainitFinished(bool) ()
#8  0x080b0901 in KStars::qt_invoke(int, QUObject*) ()
#9  0x40a6a0c9 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#10 0x40a6a48d in QObject::activate_signal_bool(int, bool) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#11 0x080c64e3 in KStarsData::initFinished(bool) ()
#12 0x080c12a0 in KStarsData::slotInitialize() ()
#13 0x080c6696 in KStarsData::qt_invoke(int, QUObject*) ()
#14 0x40a6a0c9 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#15 0x40a69f6d in QObject::activate_signal(int) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#16 0x40d4b68b in QTimer::timeout() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#17 0x40a8af12 in QTimer::event(QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#18 0x40a0bf24 in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#19 0x40a0bb19 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#20 0x406681e9 in KApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/libkdecore.so.4
#21 0x409e6d95 in QEventLoop::activateTimers() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#22 0x409c48e8 in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#23 0x40a1fcf6 in QEventLoop::enterLoop() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#24 0x40a1fb98 in QEventLoop::exec() () from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#25 0x40a0c151 in QApplication::exec() ()
   from /usr/lib/qt-3.1/lib/libqt-mt.so.3
#26 0x080e482a in main ()
#27 0x42015574 in __libc_start_main () from /lib/tls/libc.so.6
Comment 3 kstars 2005-01-11 05:51:38 UTC
This must be a problem with the reporter's specific setup.  If the reporter could reply with an update (are you still having the problem with more recent 3.3.x code?), I will reopen the bug if necessary.  Works for me.