Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stellarium segmentation fault [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
YuriyRusinov
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 208
Location: Saint-Petersburg, Russia

PostPosted: Wed Oct 04, 2006 6:45 am    Post subject: Stellarium segmentation fault [SOLVED] Reply with quote

Hello !

I emerged program stellarium-0.8.1. I try to run /usr/bin/stellarium and receive error message
Code:

 -------------------------------------------------------
[ This is Stellarium 0.8.1 - http://www.stellarium.org ]
[ Copyright (C) 2000-2006 Fabien Chereau et al         ]
 -------------------------------------------------------
Segmentation fault


Whare is my error and what I have to do in order to correct it ? When I merge this program using gcc-3.4.6, all works fine. Machine Amd64 Athlon 3000. Thanks in advance.
_________________
Best regards,
Yuriy Rusinov.


Last edited by YuriyRusinov on Wed Nov 21, 2007 3:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
Xaid
Guru
Guru


Joined: 30 Oct 2004
Posts: 474
Location: Edmonton / Alberta

PostPosted: Thu Oct 05, 2006 3:35 am    Post subject: Reply with quote

I emerged Stellarium after reading your post to try it but got exactly the same error.

Since I'm on a Hardened profile, it aborted instead of segfaulting and I actually got a bit more info.
In my case, it seems that its segfaulting as its trying to convert to my locale, here's the output before it dies:
Code:

 -------------------------------------------------------
[ This is Stellarium 0.8.1 - http://www.stellarium.org ]
[ Copyright (C) 2000-2006 Fabien Chereau et al         ]
 -------------------------------------------------------
WARNING : Can't find the configuration key "localization:time_display_format", d efault empty string returned
ERROR : unrecognized time_display_format :  system_default used.
WARNING : Can't find the configuration key "localization:date_display_format", d efault empty string returned
ERROR : unrecognized date_display_format :  system_default used.
Application locale is system
Localizing TUI for locale: system
WARNING : Can't find the configuration key "localization:time_zone", default emp ty string returned
Loading Solar System data...(loaded)
Loading location: "Paris", 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 nebula Loading NGC name data...( 225 names loaded)
Loading Nebula Textures...(74 textures loaded)
Loading Constellation boundary data...(782 segments loaded)
Load star names from /usr/share/stellarium/data/sky_cultures/western/star_names. fab
WARNING : Can't find the configuration key "astro:flag_telescopes", default 0 va lue returned
WARNING : Can't find the configuration key "astro:flag_telescope_name", default 0 value returned
Loading Cities data...(2069 cities loaded)
Localizing TUI for locale: system
stellarium: stack smashing attack in function void StelUI::localizeTui()()
Aborted

I'll try re-emerging it without the nls USE flag and see if it makes a difference.

Edit: I am using gcc-3.4.6-r1.
Back to top
View user's profile Send private message
Xaid
Guru
Guru


Joined: 30 Oct 2004
Posts: 474
Location: Edmonton / Alberta

PostPosted: Thu Oct 05, 2006 3:53 am    Post subject: Reply with quote

That didn't help, I even tried compiling it with a vanilla gcc 3.4.6 without any luck.

I'm not using any accelerated OpenGL drivers, but the error doesn't seem to be related to that.
Back to top
View user's profile Send private message
YuriyRusinov
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 208
Location: Saint-Petersburg, Russia

PostPosted: Thu Oct 05, 2006 6:30 am    Post subject: Reply with quote

Therefore this is stellarium bug ?
_________________
Best regards,
Yuriy Rusinov.
Back to top
View user's profile Send private message
Xaid
Guru
Guru


Joined: 30 Oct 2004
Posts: 474
Location: Edmonton / Alberta

PostPosted: Thu Oct 05, 2006 6:35 am    Post subject: Reply with quote

I'm not sure, you mentioned that if you compile it with gcc-3.4.6 then it'll work fine, right?

The reason its failing on my end might be related to my setup since I'm on hardened, and the fact that I'm using software rendering and not accelerated drivers.

I would suggest emerging it with "debug" then post your gdb dump to see what might be the problem.
Back to top
View user's profile Send private message
YuriyRusinov
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 208
Location: Saint-Petersburg, Russia

PostPosted: Fri Oct 06, 2006 6:43 am    Post subject: Reply with quote

Here is my gdb dump for this
Code:

gdb /usr/bin/stellarium
GNU gdb 6.4
Copyright 2005 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 "x86_64-pc-linux-gnu"...(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/stellarium
(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 46946376424416 (LWP 10627)]
 -------------------------------------------------------
[ This is Stellarium 0.8.1 - http://www.stellarium.org ]
[ Copyright (C) 2000-2006 Fabien Chereau et al         ]
 -------------------------------------------------------

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 46946376424416 (LWP 10627)]
0x00002ab28c8a74ef in glViewport ()
   from //usr/lib64/opengl/xorg-x11/lib/libGL.so.1


_________________
Best regards,
Yuriy Rusinov.
Back to top
View user's profile Send private message
malteo
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 101
Location: Pescara, Italy

PostPosted: Sun Oct 15, 2006 2:46 pm    Post subject: Reply with quote

I get this after upgrading Stellarium to 0.8.2
Code:

malte@polimetilmetacrilato ~ $ stellarium
 -------------------------------------------------------
[ This is Stellarium 0.8.2 - http://www.stellarium.org ]
[ Copyright (C) 2000-2006 Fabien Chereau et al         ]
 -------------------------------------------------------
terminate called after throwing an instance of 'std::bad_alloc'
  what():  St9bad_alloc
Abortito

I'm on ~amd64
Back to top
View user's profile Send private message
weaksauce
Apprentice
Apprentice


Joined: 17 Nov 2005
Posts: 204
Location: NYC

PostPosted: Tue Oct 17, 2006 1:06 am    Post subject: Reply with quote

malteo, I'm having the same problem with stellarium. I was assuming it was a beta nvidia driver thing, but maybe not. What video are you using? I'm also on ~amd64. I just downgraded to 0.8.1, it's not like there could have been huge improvements in 0.8.2
Back to top
View user's profile Send private message
YuriyRusinov
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 208
Location: Saint-Petersburg, Russia

PostPosted: Tue Oct 17, 2006 7:17 am    Post subject: Reply with quote

Is this a stellarium bug ?
_________________
Best regards,
Yuriy Rusinov.
Back to top
View user's profile Send private message
malteo
Tux's lil' helper
Tux's lil' helper


Joined: 12 Mar 2003
Posts: 101
Location: Pescara, Italy

PostPosted: Tue Oct 17, 2006 8:27 am    Post subject: Reply with quote

I'm using nvidia beta drivers too.
Back to top
View user's profile Send private message
YuriyRusinov
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 208
Location: Saint-Petersburg, Russia

PostPosted: Tue Oct 17, 2006 10:13 am    Post subject: Reply with quote

Me too.
_________________
Best regards,
Yuriy Rusinov.
Back to top
View user's profile Send private message
YuriyRusinov
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 208
Location: Saint-Petersburg, Russia

PostPosted: Wed Nov 21, 2007 2:59 pm    Post subject: Reply with quote

Problem was solved by re-emerging some libraries, obtained from
Code:
emerge -epv stellarium

_________________
Best regards,
Yuriy Rusinov.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum