Bug 220333

Summary: Geographic location name causes crash on KStars restart
Product: [Applications] kstars Reporter: Carl Knight <SleeplessAtKnight>
Component: generalAssignee: Akarsh Simha <akarsh.simha>
Status: RESOLVED DUPLICATE    
Severity: crash CC: andresbajotierra, mutlaqja
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Carl Knight 2009-12-28 01:00:31 UTC
Version:           1.5.3 (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

Here's the bug report I tried to submit automatically:

Application that crashed: kstars
Version of the application: 1.5.3
KDE Version: 4.3.2 (KDE 4.3.2)
Qt Version: 4.5.2
Operating System: Linux 2.6.31-14-generic i686
Distribution: Ubuntu 9.10

What I was doing when the application crashed:
Set the geographic location in the first start of KStars using the following (example taken from mycities.dat):
Ngileah Observatory              : Bulls, Rangatikei     : New Zealand           : 40 :  7 : 44 : S : 175 : 22 : 44 : E :  12.0 : NZ
Works fine. Then close KStars.
Restart KStars, yields the crash report attached.

 -- Backtrace:
Application: KStars (kstars), signal: Aborted
[KCrash Handler]
#6  0x00753422 in __kernel_vsyscall ()
#7  0x01d5e4d1 in *__GI_raise (sig=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#8  0x01d61932 in *__GI_abort () at abort.c:92
#9  0x01d94ee5 in __libc_message (do_abort=2, fmt=0x1e5659d "*** %s ***: %s terminated\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:189
#10 0x01e14de8 in *__GI___fortify_fail (msg=0x1e56547 "buffer overflow detected") at fortify_fail.c:32
#11 0x01e13e20 in *__GI___chk_fail () at chk_fail.c:29
#12 0x01e13558 in _IO_str_chk_overflow (fp=0xbfd197e0, c=111) at vsprintf_chk.c:35
#13 0x01d9d59e in _IO_default_xsputn (f=0xbfd197e0, data=0xa6e93a8, n=19) at genops.c:485
#14 0x01d7438c in _IO_vfprintf_internal (s=0xbfd197e0, format=0x279448 "%s", ap=0xbfd198c0 "\250\223n\n") at vfprintf.c:1601
#15 0x01e1360d in ___vsprintf_chk (s=0x51dee0 "Ngileah Observat", flags=1, slen=17, format=0x279448 "%s", args=0xbfd198c0 "\250\223n\n") at vsprintf_chk.c:89
#16 0x01e1354d in ___sprintf_chk (s=0x51dee0 "Ngileah Observat", flags=1, slen=17, format=0x279448 "%s") at sprintf_chk.c:33
#17 0x00273321 in SatInit () from /usr/lib/libSatLib.so.4
#18 0x080d822c in _start ()

Looks to me like a string/buffer length issue.
Comment 1 Dario Andres 2009-12-28 17:32:12 UTC
The issue is being tracked at bug 202212. It should be fixed on the next version.

*** This bug has been marked as a duplicate of bug 202212 ***