Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[jeux] erreurs de segmentation (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
swilmet
n00b
n00b


Joined: 14 Mar 2007
Posts: 70
Location: Belgium

PostPosted: Sun Dec 28, 2008 11:10 am    Post subject: [jeux] erreurs de segmentation (résolu) Reply with quote

Bonjour !
J'ai acheté un nouvel ordinateur, j'ai installé gentoo dessus et j'ai quelques soucis :
Quote:

seb@asus ~ $ xmoto
Erreur de segmentation
seb@asus ~ $ fillets
Erreur de segmentation
seb@asus ~ $ emilia-pinball
Initing SDL

Erreur de segmentation
seb@asus ~ $ time gltron
[error] cannot load .gltronrc from /home/seb/.gltronrc
[warning] old config file found, overriding using defaults
[warning] defunct config file found, overriding using defaults
Erreur de segmentation

real 0m33.716s
user 0m32.722s
sys 0m0.808s


En lançant n'importe quel jeux que j'ai installé j'ai une erreur de segmentation, et ça dure plus ou moins 30 sec pour que le message s'affiche.

J'ai une carte nvidia GeForce 7000M, j'ai donc suivi le guide officiel et tout à l'air de bien fonctionner :
Quote:

asus ~ # glxinfo | grep dir
direct rendering: Yes
asus ~ # eselect opengl show
nvidia
asus ~ # eselect opengl list
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11

En changeant opengl à xorg-x11, j'ai plus d'accélération 3D, donc je suppose que le problème ne vient pas de là.

Avez-vous une idée ?

Edit : j'ai oublié de dire que j'étais bien dans le groupe games.


Last edited by swilmet on Mon Dec 29, 2008 4:33 pm; edited 2 times in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1912
Location: 127.0.0.1

PostPosted: Sun Dec 28, 2008 11:14 am    Post subject: Reply with quote

Salut,

emerge --info stp.
Quote:
Initing SDL

Erreur de segmentation

Tu devrais essayer de réinstaller la libsdl. emerge -1 libsdl
Back to top
View user's profile Send private message
swilmet
n00b
n00b


Joined: 14 Mar 2007
Posts: 70
Location: Belgium

PostPosted: Sun Dec 28, 2008 11:31 am    Post subject: Reply with quote

J'ai réinstallé libsdl mais ça ne change rien.
Voilà les infos :
Quote:
asus ~ # emerge --info
Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26-gentoo-r4 i686)
=================================================================
System uname: 2.6.26-gentoo-r4 i686 AMD Turion(tm) 64 X2 Mobile Technology TL-62
Timestamp of tree: Sat, 27 Dec 2008 16:30:16 +0000
ccache version 2.4 [enabled]
app-shells/bash: 3.2_p33
dev-lang/python: 2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61-r2
sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils: 2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool: 1.5.26
virtual/os-headers: 2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.first-world.info/ "
LANG="fr_BE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl acpi alsa avahi bash-completion berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd dvdr encode esd ffmpeg flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg mad midi mmx mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp pam pcre perl png pppd python readline reflection sdl session spl sse sse2 ssl svg sysfs tcpd theora tiff truetype unicode vorbis x264 x86 xml xorg xulrunner xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1912
Location: 127.0.0.1

PostPosted: Sun Dec 28, 2008 11:46 am    Post subject: Reply with quote

Quote:

CFLAGS="-O2 -march=athlon-xp -msse3 -pipe -fomit-frame-pointer"
CXXFLAGS="-O2 -march=i686 -pipe"

Comment se fait t'il que tes CXXFLAGS soient différents de tes CFLAGS ?
Back to top
View user's profile Send private message
swilmet
n00b
n00b


Joined: 14 Mar 2007
Posts: 70
Location: Belgium

PostPosted: Sun Dec 28, 2008 11:53 am    Post subject: Reply with quote

Ah merci, quand j'ai changé mes CFLAGS j'avais pas vu que les CXXFLAGS n'étaient pas changé automatiquement en même temps.
Maintenant j'ai mis
Quote:
CXXFLAGS="$CFLAGS"

dans /etc/make.conf

Je vais recompiler quelques jeux pour voir si c'était ça.
EDIT : ça n'a pas l'air d'être ça, à moins que se soit une librairie quelconque codée en C++, mais de toute façon l'ancien CXXFLAGS était bon aussi, je pense que c'est juste moins optimisé pour ma machine.
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1912
Location: 127.0.0.1

PostPosted: Sun Dec 28, 2008 2:10 pm    Post subject: Reply with quote

Dans ce cas, installe sys-devel/gdb pour essayer de trouver l'origine du problème.
Back to top
View user's profile Send private message
xaviermiller
Bodhisattva
Bodhisattva


Joined: 23 Jul 2004
Posts: 8711
Location: ~Brussels - Belgique

PostPosted: Sun Dec 28, 2008 4:28 pm    Post subject: Reply with quote

essaie d'abord un revdep-rebuild ;)
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
swilmet
n00b
n00b


Joined: 14 Mar 2007
Posts: 70
Location: Belgium

PostPosted: Sun Dec 28, 2008 8:21 pm    Post subject: Reply with quote

Le revdep-rebuild n'a rien recompilé.
Pour gdb, il faut pas d'abord compiler avec l'option -g de gcc ? Et puis je connais pas très bien gdb, j'ai seulement lu un petit tuto il y a longtemps...
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1912
Location: 127.0.0.1

PostPosted: Mon Dec 29, 2008 12:42 am    Post subject: Reply with quote

swilmet wrote:

Pour gdb, il faut pas d'abord compiler avec l'option -g de gcc ?

Oui et non : tu n'auras pas les symboles de debug, mais tu auras au moins la liste des libs utilisées au moment du crash. çà pourra peut-être te donner une piste... sinon essaye au petit bonheur la chance : emerge -1 glibc && emerge --onlydeps --emptytree --oneshot libsdl

PS : vive -ggdb et FEATURES=splitdebug dans ce genre de cas. C'est sûr que çà prend un peu plus de place sur le système mais bon, on est sur gentoo, on passe notre temps à compiler, alors en cas de problème, les infos utiles sont là.
Back to top
View user's profile Send private message
swilmet
n00b
n00b


Joined: 14 Mar 2007
Posts: 70
Location: Belgium

PostPosted: Mon Dec 29, 2008 4:33 pm    Post subject: Reply with quote

Après avoir exécuté emerge --onlydeps --emptytree --oneshot libsdl, ça fonctionne maintenant :)
Merci pour l'aide.
Back to top
View user's profile Send private message
ppg
Apprentice
Apprentice


Joined: 05 Oct 2008
Posts: 178
Location: Toulouse

PostPosted: Mon Dec 29, 2008 5:40 pm    Post subject: Reply with quote

Sinon c'est peut être un peu tard, mais j'avais un seg' fault à cause de sqlite en lançant xmoto.
Si tu as un nouveau seg' fault essaye de changer de version de sqlite.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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