Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151306 - sci-astronomy/stellarium-0.8.2 craches at startup (x86_64)
Summary: sci-astronomy/stellarium-0.8.2 craches at startup (x86_64)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-14 03:05 UTC by Igor Ulyanov
Modified: 2006-11-13 14:29 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
PATCH fixing the crash due to using OpenGL without an OpenGL context (stellarium-0.8.2-opengl-without-context.patch,964 bytes, patch)
2006-11-13 14:29 UTC, Hans de Goede
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Igor Ulyanov 2006-10-14 03:05:15 UTC
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
Aborted (core dumped)

I have a backtrace, but debugging symbols not found:

(gdb) bt
#0  0x00002b76058a5565 in raise () from /lib/libc.so.6
#1  0x00002b76058a676e in abort () from /lib/libc.so.6
#2  0x00002b76054d1634 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#3  0x00002b76054cf7b6 in std::set_unexpected ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#4  0x00002b76054cf7e3 in std::terminate ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#5  0x00002b76054cf8ca in __cxa_throw ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#6  0x00002b76054cfba9 in operator new ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#7  0x00002b76054ad701 in std::string::_Rep::_S_create ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#8  0x00002b76054ae33b in std::string::_Rep::_M_clone ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#9  0x00002b76054af755 in std::string::reserve ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#10 0x00002b76054af89e in std::string::append ()
   from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6
#11 0x00000000005177f1 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
#12 0x000000000051f3c0 in std::operator+<char, std::char_traits<char>, std::allo---Type <return> to continue, or q <return> to quit---
cator<char> > ()
#13 0x0000000000446af5 in std::operator+<char, std::char_traits<char>, std::allocator<char> > ()
#14 0x00002b7605893134 in __libc_start_main () from /lib/libc.so.6
#15 0x000000000040a419 in ?? ()
#16 0x00007fffa6222288 in ?? ()
#17 0x0000000000000000 in ?? ()

Portage 2.1.1-r1 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.17-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.12.5
Last Sync: Fri, 13 Oct 2006 16:30:09 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="/distfiles/distfiles ftp://10.7.10.16/pub http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib alsa ao arts atm bash-completion berkdb bitmap-fonts cli crypt cups dbus dga dhcp dlloader doc dri dvd dvdread eds elibc_glibc emacs emboss encode examples fat firefox flac foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog javascript jpeg kernel_linux lesstif linguas_en linguas_ru lzw lzw-tiff motif mp3 mpeg mplayer ncurses nls nptl nptlonly nvidia opengl pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session slang spell spl ssl subversion svg symlink tcpd tga tiff truetype truetype-fonts type1-fonts unicode usb userland_GNU video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i810 video_cards_mga video_cards_neomagic video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis wmf xorg xpm xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 didier fabert 2006-10-15 04:52:29 UTC
exactly the same problem here
but 0.8.1 works fine
Comment 2 Malcolm Lashley (RETIRED) gentoo-dev 2006-10-22 13:38:19 UTC
Here is the fucktarded bit of code from translator.cpp

        //change systemLangName to ISO 639 / ISO 3166.
        unsigned int pos = Translator::systemLangName.find(':', 0);
        if(pos != Translator::systemLangName.npos)
               Translator::systemLangName.resize(pos);

string::npos is arch-specific length, so we will try to resize to 0xFFFFFFFF if : is not found, which crashes us... 

Changing to  
                std::string::size_type pos = Translator::systemLangName.find(':', 0);

Yeilds a stellariam which loads and shows me pretty stuff.

I'll knock up a patch.



Comment 3 Malcolm Lashley (RETIRED) gentoo-dev 2006-10-22 13:55:35 UTC
Fixed in CVS. Enjoy.
Comment 4 Malcolm Lashley (RETIRED) gentoo-dev 2006-10-22 14:01:36 UTC
@Mr Bones - fed patch upstream to existing bug 
[ 1566760 ] Segmentation fault on Fedora Core 5 64bit
Comment 5 Igor Ulyanov 2006-10-23 12:09:00 UTC
It would be nice, if somebody make an updated ebuild with this patch. 
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2006-10-23 13:14:29 UTC
It's already in portage.  If you need it, remerge it.
Comment 7 Hans de Goede 2006-11-13 14:29:34 UTC
Created attachment 101880 [details, diff]
PATCH fixing the crash due to using OpenGL without an OpenGL context

Hi,

I'm a Fedora developer and got involved in this through
Fedora, see:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=210525

I've found an additional problem with stellarium which makes it crash when using opensource dri drivers. Stellarium makes OpenGL calls before an OpenGL context
has been created, this may work with certain OpenGL drivers, but will not work with all drivers. Here is a patch fixing this.