Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Valgrind et OpenGL
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
MsK`
n00b
n00b


Joined: 16 Jan 2004
Posts: 28
Location: Paris - France

PostPosted: Sat Jan 07, 2006 2:42 pm    Post subject: Valgrind et OpenGL Reply with quote

Bonjour,

Je suis étudiant en informatique et nous avons un projet à réaliser utilisant OpenGL. Le problème se trouve quand je veux vérifier le bon fonctionnement de mon programme avec valgrind, à la fac ( debian ), ca marche très bien, sur mon portable ainsi que sur mon desktop, tous deux sous gentoo, j'ai cette erreur :
Quote:
==20446== Memcheck, a memory error detector for x86-linux.
==20446== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==20446== Using valgrind-2.4.0, a program supervision framework for x86-linux.
==20446== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==20446== For more details, rerun with: -v
==20446==
./serpent: error while loading shared libraries: libGL.so.1: cannot enable executable stack as shared object requires: Invalid argument
==20446== Jump to the invalid address stated on the next line
==20446== at 0x5B2: ???
==20446== by 0x1B8EF319: _dl_signal_error (in /lib/ld-2.3.5.so)
==20446== by 0x1B8EE705: _dl_map_object_deps (in /lib/ld-2.3.5.so)
==20446== by 0x1B8E5830: dl_main (in /lib/ld-2.3.5.so)
==20446== by 0x1B8F2874: _dl_sysdep_start (in /lib/ld-2.3.5.so)
==20446== by 0x1B8E4B64: _dl_start (in /lib/ld-2.3.5.so)
==20446== by 0x1B8E47E6: (within /lib/ld-2.3.5.so)
==20446== Address 0x5B2 is not stack'd, malloc'd or (recently) free'd
==20446==
==20446== Process terminating with default action of signal 11 (SIGSEGV)
==20446== Access not within mapped region at address 0x5B2
==20446== at 0x5B2: ???
==20446== by 0x1B8EF319: _dl_signal_error (in /lib/ld-2.3.5.so)
==20446== by 0x1B8EE705: _dl_map_object_deps (in /lib/ld-2.3.5.so)
==20446== by 0x1B8E5830: dl_main (in /lib/ld-2.3.5.so)
==20446== by 0x1B8F2874: _dl_sysdep_start (in /lib/ld-2.3.5.so)
==20446== by 0x1B8E4B64: _dl_start (in /lib/ld-2.3.5.so)
==20446== by 0x1B8E47E6: (within /lib/ld-2.3.5.so)
==20446==
==20446== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==20446== malloc/free: in use at exit: 0 bytes in 0 blocks.
==20446== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==20446== For counts of detected errors, rerun with: -v
==20446== No malloc'd blocks -- no leaks are possible.

Je pense qu'il s'agit d'un problème avec l'installation du support OpenGL des drivers de la carte graphique. ( nvidia sur le desktop, ati fglrx sur le portable ). Une idée pour corriger ce problème ?
_________________
Gentoo GNU/Linux - MSI KT4 Ultra - AMD Athlon XP 2000+ - 512Mo DDR - nVidia GeForce 3
Gentoo GNU/Linux - IBM ThinkPad T43p - Intel Pentium M 1.86Ghz - 1Go DDR-2 - ATI FireGL v3200
Back to top
View user's profile Send private message
_droop_
l33t
l33t


Joined: 30 May 2004
Posts: 957

PostPosted: Sat Jan 07, 2006 10:14 pm    Post subject: Reply with quote

Bonjour,

Tu es en hardened sur tes gentoo ? Parce que ca semble liée à un patch sécurité du noyau...

Bonne journée.

edit : pourrais tu modifier ton titre pour respecter les convention de ce forum : https://forums.gentoo.org/viewtopic-t-69179.html, merci d'avance :wink:
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Sat Jan 07, 2006 10:40 pm    Post subject: Reply with quote

lié à un profile hardened ? et à quoi tu vois çà ? 8O mais +1 pour le titre en revanche :wink:

c'est lié à X selon moi... comme tu le dis, mais d'ici à te dire comment solutionner le pb :roll:
Code:
x11-base/xorg-x11  ---> /usr/lib/opengl/xorg-x11/lib/libGL.so.1 -> libGL.so.1.2

un pb de path peut-être ? (par rapport à ceux sur deb)

[Edit] peut-être une piste ici (cherche ds la age avec "libGL") :)
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
_droop_
l33t
l33t


Joined: 30 May 2004
Posts: 957

PostPosted: Sun Jan 08, 2006 9:01 am    Post subject: Reply with quote

boozo wrote:
lié à un profile hardened ? et à quoi tu vois çà ?


Re,

au "cannot enable executable stack as shared object requires". C'est le genre de message qu l'on peut avoir quand on utilise SELinux.

C'est dans une faq selinux (non officiel): http://www.crypt.gen.nz/selinux/faq.html#CP.19.

Après ca pourrait être très bien être autre chose...

Bonne journée.
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