Bug 268471 (V-nix) - KStars crashed on exiting
Summary: KStars crashed on exiting
Status: RESOLVED WORKSFORME
Alias: V-nix
Product: kstars
Classification: Applications
Component: general (show other bugs)
Version: 1.6.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Akarsh Simha
URL:
Keywords: needs_verification
Depends on:
Blocks:
 
Reported: 2011-03-14 15:47 UTC by V-nix
Modified: 2015-01-27 16:43 UTC (History)
4 users (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 V-nix 2011-03-14 15:47:41 UTC
Application: kstars (1.6.0)
KDE Platform Version: 4.5.1 (KDE 4.5.1)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-27-generic x86_64
Distribution: Ubuntu 10.10

-- Information about the crash:
- What I was doing when the application crashed:

KStars crashed onexiting KStars; attached devices (telescope mount, webcam) were not detached before shutdown of KStars

-- Backtrace:
Application: KStars (kstars), signal: Aborted
[Current thread is 1 (Thread 0x7f28d7150760 (LWP 2121))]

Thread 3 (Thread 0x7f28c9ddc700 (LWP 2122)):
#0  0x00007f28d24fc203 in __poll (fds=<value optimized out>, nfds=<value optimized out>, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007f28cd889009 in ?? () from /lib/libglib-2.0.so.0
#2  0x00007f28cd8897b5 in g_main_loop_run () from /lib/libglib-2.0.so.0
#3  0x00007f28ca5133c4 in ?? () from /usr/lib/libgio-2.0.so.0
#4  0x00007f28cd8ae7e4 in ?? () from /lib/libglib-2.0.so.0
#5  0x00007f28d5876971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#6  0x00007f28d250892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f28bc458700 (LWP 2125)):
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:97
#1  0x00007f28d24a11dc in _L_lock_12347 () from /lib/libc.so.6
#2  0x00007f28d249fc78 in __libc_free (mem=0x7f28d27a0e40) at malloc.c:3736
#3  0x00007f28d30c646c in cleanup (this=<value optimized out>, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#4  ~QScopedPointer (this=<value optimized out>, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#5  QObject::~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:963
#6  0x00007f28d30d9e4d in QEventDispatcherGlib::~QEventDispatcherGlib (this=0xc70110, __in_chrg=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:394
#7  0x00007f28d2fb8ac4 in QThreadPrivate::finish (arg=<value optimized out>) at thread/qthread_unix.cpp:302
#8  0x00007f28d2fb9286 in ~__pthread_cleanup_class (arg=0x7f28d33def40) at /usr/include/pthread.h:545
#9  QThreadPrivate::start (arg=0x7f28d33def40) at thread/qthread_unix.cpp:271
#10 0x00007f28d5876971 in start_thread (arg=<value optimized out>) at pthread_create.c:304
#11 0x00007f28d250892d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f28d7150760 (LWP 2121)):
[KCrash Handler]
#6  0x00007f28d2455ba5 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#7  0x00007f28d24596b0 in abort () at abort.c:92
#8  0x00007f28d248f43b in __libc_message (do_abort=<value optimized out>, fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#9  0x00007f28d24994b6 in malloc_printerr (action=3, str=0x7f28d2569ca2 "corrupted double-linked list", ptr=<value optimized out>) at malloc.c:6283
#10 0x00007f28d249c921 in _int_free (av=0x7f28d27a0e40, p=0x282c030) at malloc.c:4973
#11 0x00007f28d249fc83 in __libc_free (mem=<value optimized out>) at malloc.c:3738
#12 0x00007f28d2ffedfc in QString::free (d=0x282c0e0) at tools/qstring.cpp:1151
#13 0x0000000000439ef1 in ~QString (this=0x26d1f10) at /usr/include/qt4/QtCore/qstring.h:882
#14 INDIDriver::updateLocalTab (this=0x26d1f10) at ../../../kstars/kstars/indi/indidriver.cpp:245
#15 0x000000000043e6dc in INDIDriver::qt_metacall (this=0x26d1f10, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff0d291a10) at ./indidriver.moc:206
#16 0x00007f28d30c4b27 in QMetaObject::activate (sender=0x2638360, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#17 0x0000000000431a33 in DeviceManager::processStandardError (this=0x2638360) at ../../../kstars/kstars/indi/devicemanager.cpp:172
#18 0x000000000043347c in DeviceManager::qt_metacall (this=0x2638360, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fff0d291b60) at ./devicemanager.moc:90
#19 0x00007f28d30c4b27 in QMetaObject::activate (sender=0x26d0550, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0xffffffffffffffff) at kernel/qobject.cpp:3280
#20 0x00007f28d304a0ec in QProcessPrivate::_q_canReadStandardError (this=0x274c2b0) at io/qprocess.cpp:941
#21 0x00007f28d3087460 in QProcessPrivate::waitForFinished (this=0x274c2b0, msecs=-1) at io/qprocess_unix.cpp:1122
#22 0x00007f28d3045afa in QProcess::waitForFinished (this=0x26d0550, msecs=-1) at io/qprocess.cpp:1742
#23 0x00007f28d3045cca in QProcess::close (this=0x26d0550) at io/qprocess.cpp:1492
#24 0x0000000000432243 in DeviceManager::~DeviceManager (this=0x2638360, __in_chrg=<value optimized out>) at ../../../kstars/kstars/indi/devicemanager.cpp:67
#25 0x000000000044d1ae in INDIMenu::~INDIMenu (this=0x23d8800, __in_chrg=<value optimized out>) at ../../../kstars/kstars/indi/indimenu.cpp:93
#26 0x00007f28d30bed5f in QObjectPrivate::deleteChildren (this=0xc675a0) at kernel/qobject.cpp:1957
#27 0x00007f28d409a168 in QWidget::~QWidget (this=0xc03d50, __in_chrg=<value optimized out>) at kernel/qwidget.cpp:1589
#28 0x00007f28d4e6f985 in KMainWindow::~KMainWindow (this=0xc03d50, __in_chrg=<value optimized out>) at ../../kdeui/widgets/kmainwindow.cpp:473
#29 0x000000000059d4d3 in KStars::~KStars (this=0xc03d50, __in_chrg=<value optimized out>, __vtt_parm=<value optimized out>) at ../../../kstars/kstars/kstars.cpp:132
#30 0x00007f28d30bec08 in QObject::event (this=0xc03d50, e=0x849) at kernel/qobject.cpp:1202
#31 0x00007f28d40946df in QWidget::event (this=0xc03d50, event=0x296e360) at kernel/qwidget.cpp:8646
#32 0x00007f28d447c41b in QMainWindow::event (this=0xc03d50, event=0x296e360) at widgets/qmainwindow.cpp:1417
#33 0x00007f28d4ead683 in KXmlGuiWindow::event (this=0x849, ev=0x849) at ../../kdeui/xmlgui/kxmlguiwindow.cpp:130
#34 0x00007f28d403efdc in QApplicationPrivate::notify_helper (this=0xa2f9c0, receiver=0xc03d50, e=0x296e360) at kernel/qapplication.cpp:4396
#35 0x00007f28d4044aed in QApplication::notify (this=0x7fff0d292f40, receiver=0xc03d50, e=0x296e360) at kernel/qapplication.cpp:4277
#36 0x00007f28d4d91156 in KApplication::notify (this=0x7fff0d292f40, receiver=0xc03d50, event=0x296e360) at ../../kdeui/kernel/kapplication.cpp:310
#37 0x00007f28d30accdc in QCoreApplication::notifyInternal (this=0x7fff0d292f40, receiver=0xc03d50, event=0x296e360) at kernel/qcoreapplication.cpp:732
#38 0x00007f28d30afc22 in sendEvent (receiver=0x0, event_type=<value optimized out>, data=0xa16510) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#39 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0xa16510) at kernel/qcoreapplication.cpp:1373
#40 0x00007f28d30afefe in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1016
#41 0x00000000005cd5a2 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../../kstars/kstars/main.cpp:191

Possible duplicates by query: bug 268173, bug 263711, bug 243262, bug 242656, bug 228333.

Reported using DrKonqi
Comment 1 Alexey Khudiakov 2011-03-15 16:17:56 UTC
This is nasty one. Crash happens in the destructor of QString. 

Could you run kstars from console using command below and post output here?

$ KDE_DEBUG=yes kstars


Does kstars crash if you start it and immediately close it? Or do you need to do something to trigger crash?
Comment 2 V-nix 2011-03-18 20:40:29 UTC
Hello,

I was trying to control the telescope mount (a Losmandy G11) with KStars, but other then using the 'Device Manager' and the INDI interface in KStars, I didn't do much. 
However, I may have shutdown KStars whilst it was still attempting to connect to the mount.

As instructed I tried the KDE_DEBUG=yes kstars command, with the following output after closing KStars again:

kstars(4331) KStarsDateTime::fromString: "Could not parse Date/Time string: " "" 
kstars(4331) KStarsDateTime::fromString: "Valid date formats: " 
kstars(4331) KStarsDateTime::fromString:   1950-02-25   ;  1950-02-25T05:30:00 
kstars(4331) KStarsDateTime::fromString:   25 Feb 1950  ;  25 Feb 1950 05:30:00 
kstars(4331) KStarsDateTime::fromString:   Sat Feb 25 1950  ;  Sat Feb 25 05:30:00 1950 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD61,421 not found." 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD10,700 not found." 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD20,794 not found." 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD2,151 not found." 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD190,248 not found." 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD142,860 not found." 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD1,581 not found." 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD1,581 not found." 
kstars(4331) ConstellationLines::ConstellationLines: "Star HD98,230 not found." 
kstars(4331)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
Comment 3 simion314 2012-10-10 17:19:59 UTC
Hi, is this bug stil present in latest version of KDE? If yes  please send a new debug info.
Comment 4 Jasem Mutlaq 2015-01-27 16:43:49 UTC
There were issues with the device manager a couple of years ago, all issues should be resolved by now. Closing the bug since it works for me in all conditions above with even more equipment under stress testing using the GIT version.