[Kstars-devel] Fwd: KStars Crashes While loading in Ubuntu 11.10

Alexey Khudyakov alexey.skladnoy at gmail.com
Sat Oct 15 20:51:06 UTC 2011


On 15.10.2011 06:44, Akarsh Simha wrote:
>> I have a feeling that it's upstream, because I can't reproduce it. I
>
Was anyone able to reproduce bug? Here few observations I made from 
reading reports:

1. If bug happens it happens every time.

2. Removing ~/.kde/apps/kstars directory helps at least some users
    so issue could be related to settings. And we cannot reproduce it
    because no one have settings which lead to crash.

3. Crash affect 32-bit and 64-bit systems.

4. There are two sources of crash. First one is in asteroidscomponent

#7  QString (other=..., this=0x7fffbc36f110) at
../../src/corelib/tools/qstring.h:729
#8  QLocalePrivate::stringToLongLong (this=0x2b8e440, number=..., base=10,
ok=0x7fffbc36f28f, group_sep_mode=QLocalePrivate::FailOnGroupSeparators) at
tools/qlocale.cpp:4490
#9  0x0000003bb9cb7af2 in QString::toLongLong (this=0x3f5a280, ok=0x0, 
base=10)
at tools/qstring.cpp:5499
#10 0x0000003bb9cb7c19 in QString::toInt (this=<optimized out>, ok=0x0,
base=<optimized out>) at tools/qstring.cpp:5637
#11 0x0000000000488e62 in AsteroidsComponent::loadData (this=0x4456fc0) 
at /usr/src/debug/kstars-4.7.1/kstars/skycomponents
/asteroidscomponent.cpp:117


Second is much more worrysome. It looks like crash happens before main 
is entered! Probably during globals initialization.

#6  0x00007fddb0335cd2 in QLocalePrivate::stringToLongLong(QString 
const&, int,
bool*, QLocalePrivate::GroupSeparatorMode) const () from
/usr/lib64/qt4/libQtCore.so.4
#7  0x00007fddb03529c6 in QString::toLongLong(bool*, int) const () from
/usr/lib64/qt4/libQtCore.so.4
#8  0x00007fddb0352a45 in QString::toInt(bool*, int) const () from
/usr/lib64/qt4/libQtCore.so.4
#9  0x0000000000455d28 in _start ()


In all cases crash happens in the QString internals and in the 
frequently used part of it. I could imagine (not nessesarily true, my 
imagination is limited) only memory corruption so it make sense to run 
valgrind on kstars.

Also different distributions are affected.


More information about the Kstars-devel mailing list