Description of problem: Stellarium segfaults if LANG variable is set to is_IS.UTF-8. Does not segfault if set to us_US. Version-Release number of selected component (if applicable): stellarium-0.8.2-5.fc7 How reproducible: Always Steps to Reproduce: 1. Run stellarium 2. Watch it crash. Actual results: Segmentation fault Expected results: Working program Additional info: [jreykdal@az03081 ~]$ stellarium ------------------------------------------------------- [ This is Stellarium 0.8.2 - http://www.stellarium.org ] [ Copyright (C) 2000-2006 Fabien Chereau et al ] ------------------------------------------------------- Application locale is en_US Localizing TUI for locale: en_US Loading Solar System data...(loaded) Loading location: "Reykjavik", on Earth (landscape is: "guereins") Loading Hipparcos star data...(118217 stars loaded [2200 dropped]). Loading Hipparcos double stars...(8824 stars loaded) Loading Hipparcos periodic variable stars...(1930 stars loaded) Load star names from /usr/share/stellarium/data/sky_cultures/western/star_names.fab Loading NGC data... (13226 items loaded [3175 dropped]) ...no position data for Barnard's galaxy ...no position data for Papillon ...no position data for γ Cas nebulaLoading NGC name data...( 225 names loaded) Loading Nebula Textures...(75 textures loaded) Loading Constellation boundary data from /usr/share/stellarium/data/constellations_boundaries.dat ... (782 segments loaded) Load star names from /usr/share/stellarium/data/sky_cultures/western/star_names.fab Loading Cities data...(2069 cities loaded) Localizing TUI for locale: en_US Script completed. Segmentation fault
I could reproduced your bug with stellarium-0.8.2. But when I install stellarium-0.9.0-2 from rawhide the issue doesn't occur. So you may be helpful, if you can installed stellarium-0.9.0-2 from rawhide and check the occurrence of your reported issue.
Created attachment 160547 [details] strace output
(In reply to comment #1) > I could reproduced your bug with stellarium-0.8.2. But when I install > stellarium-0.9.0-2 from rawhide the issue doesn't occur. > > So you may be helpful, if you can installed stellarium-0.9.0-2 from rawhide and > check the occurrence of your reported issue. > > that was not working too well for me. I tried using strace and noticed that it crashed while looking at /etc/localtime stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1141, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1141, ...}) = 0 stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1141, ...}) = 0 --- SIGSEGV (Segmentation fault) @ 0 (0) --- +++ killed by SIGSEGV +++ I then tried to losen the restrictions on that file and then it works...once. That really bugs me. It works sometimes but not always.
You may be helpful, if you are able to create a backtrace. I have tried it, but I was not able to get control on gdb after stellarium was started.
I was able to create a backtrace. Perhaps someone have an idea what is going wrong here #0 0x0000003a3ee77160 in strlen () from /lib64/libc.so.6 #1 0x0000003a3ee8feb7 in strftime_l () from /lib64/libc.so.6 #2 0x0000003a3ee8f38b in strftime_l () from /lib64/libc.so.6 #3 0x000000000052cd1b in StelApp::get_printable_date_local (this=0x9532c0, JD=2454319.1536689815) at stel_utility.h:45 #4 0x0000000000496a23 in StelUI::updateTopBar (this=0x96e1f0) at stel_ui.cpp:284 #5 0x0000000000497bb0 in StelUI::gui_update_widgets (this=0xae00000121, delta_time=297991280) at stel_ui.cpp:1307 #6 0x000000000052ba53 in StelApp::update (this=0x9532c0, delta_time=<value optimized out>) at stelapp.cpp:253 #7 0x0000000000444403 in StelApp::start_main_loop (this=0x9532c0) at stel_sdl.cpp:483 #8 0x0000000000443258 in main (argc=<value optimized out>, argv=0x7fff11c30578) at stelapp.h:86 #9 0x0000003a3ee1dab4 in __libc_start_main () from /lib64/libc.so.6 #10 0x0000000000409509 in _start ()
Got some hints. If I change "flag_show_date" in config.ini to "false" then everything works fine. The date in is_IS would be displayed as Ágú 06 (with accented characters) so that might be what crashes the program.
Created attachment 160833 [details] Patch to solve the weekday issue Patch to solve the weekday displaying issue.
I have found the reason for the issue. stellarim create a struct tm from scratch without setting the weekday. If you have a locale where the weekday will be displayed, you will got a segfault. I have create a patch, which should solve the issue. It will be nice, if you can do a test.
Nice job...seems to work. Thank you very much.
stellarium-0.8.2-6.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
stellarium-0.8.2-6.fc7.i386.rpm works great.
stellarium-0.8.2-6.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.