|
From: Gav W. <gav...@fa...> - 2005-01-25 11:51:12
|
i'm trying to profile a program that happens to be linked with sdl (and opengl fwiw). i'm getting: ==14779== Reading syms from /usr/lib/libSDL-1.2.so.0.7.0 (0x4F447000) ==14779== object doesn't have a symbol table ==14779== object doesn't have any debug info ./ffx: error while loading shared libraries: libSDL-1.2.so.0: cannot enable executable stack as shared object requires: Invalid argument i couldn't find any reference to this error on the mailing list, faq, or google. what is it, why am i getting it and what can i do to get rid of it? cheers for any help you can offer, gav |
|
From: Dennis L. <pla...@in...> - 2005-01-25 12:19:26
|
At 12:44 25.01.2005, you wrote: >i'm trying to profile a program that happens to be linked with sdl (and >opengl fwiw). > >i'm getting: > >==14779== Reading syms from /usr/lib/libSDL-1.2.so.0.7.0 (0x4F447000) >==14779== object doesn't have a symbol table >==14779== object doesn't have any debug info >./ffx: error while loading shared libraries: libSDL-1.2.so.0: cannot enable >executable stack as shared object requires: Invalid argument Looks like grsecurity to me, are you running a grsecurity kernel ? or any other unusual kernel/compiler/libraries etc. ? >i couldn't find any reference to this error on the mailing list, faq, or >google. what is it, why am i getting it and what can i do to get rid of it? > >cheers for any help you can offer, > >gav > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting >Tool for open source databases. Create drag-&-drop reports. Save time >by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. >Download a FREE copy at http://www.intelliview.com/go/osdn_nl >_______________________________________________ >Valgrind-users mailing list >Val...@li... >https://lists.sourceforge.net/lists/listinfo/valgrind-users Carpe quod tibi datum est |
|
From: Gav W. <gav...@fa...> - 2005-01-25 12:32:40
|
Dennis Lubert wrote:
> At 12:44 25.01.2005, you wrote:
>>i'm trying to profile a program that happens to be linked with sdl (and
>>opengl fwiw).
>>
>>i'm getting:
>>
>>==14779== Reading syms from /usr/lib/libSDL-1.2.so.0.7.0 (0x4F447000)
>>==14779== object doesn't have a symbol table
>>==14779== object doesn't have any debug info
>>./ffx: error while loading shared libraries: libSDL-1.2.so.0: cannot
>>enable executable stack as shared object requires: Invalid argument
>
> Looks like grsecurity to me, are you running a grsecurity kernel ? or any
> other unusual kernel/compiler/libraries etc. ?
here's my system info:
Linux fun 2.6.9-gentoo-r1 #10 Tue Jan 11 16:56:58 GMT 2005 i686 Intel(R)
Pentium(R) M processor 1700MHz GenuineIntel GNU/Linux
i dont have any security options enabled, nor do i have the extended
profiling support.
g++ (GCC) 3.4.3 (Gentoo Linux 3.4.3, ssp-3.4.3-0, pie-8.7.6.6)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
GNU C Library 20041102 release version 2.3.4, by Roland McGrath et al.
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.4.3 (Gentoo Linux 3.4.3, ssp-3.4.3-0,
pie-8.7.6.6).
Compiled on a Linux 2.6.8 system on 2004-11-08.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Native POSIX Threads Library by Ulrich Drepper et al
The C stubs add-on version 2.1.2.
GNU Libidn by Simon Josefsson
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
|
|
From: Tom H. <th...@cy...> - 2005-01-25 14:46:17
|
In message <ct5bfm$e1b$1...@se...>
Gav Wood <gav...@fa...> wrote:
> i'm trying to profile a program that happens to be linked with sdl (and
> opengl fwiw).
>
> i'm getting:
>
> ==14779== Reading syms from /usr/lib/libSDL-1.2.so.0.7.0 (0x4F447000)
> ==14779== object doesn't have a symbol table
> ==14779== object doesn't have any debug info
> ./ffx: error while loading shared libraries: libSDL-1.2.so.0: cannot enable
> executable stack as shared object requires: Invalid argument
>
> i couldn't find any reference to this error on the mailing list, faq, or
> google. what is it, why am i getting it and what can i do to get rid of it?
Does it work without valgrind? That error isn't normally anything to
do with valgrind - it is what you get if you try and a run a program
that requires an executable stack on a system that isn't prepared to
provide one.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|
|
From: Gav W. <gav...@fa...> - 2005-01-25 18:01:59
Attachments:
x.cpp
|
> Does it work without valgrind? That error isn't normally anything to > do with valgrind - it is what you get if you try and a run a program > that requires an executable stack on a system that isn't prepared to > provide one. yeah - it runs perfectly (aside from the performance issues i'm trying to profile). the program attached exhibits the same behaviour when compiled with: g++ x.cpp -o x -I/usr/include/SDL -lSDL here's the full output: ==14702== Callgrind-0.9.9, a call-graph generating cache profiler for x86-linux. ==14702== Copyright (C) 2002-2004, and GNU GPL'd, by J.Weidendorfer, N.Nethercote et al. ==14702== Using valgrind-2.2.0, a program supervision framework for x86-linux. ==14702== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==14702== For more details, rerun with: -v ==14702== ./x: error while loading shared libraries: libSDL-1.2.so.0: cannot enable executable stack as shared object requires: Invalid argument ==14702== ==14702== Events : Ir Dr Dw I1mr D1mr D1mw I2mr D2mr D2mw ==14702== Collected : 17596 4597 3197 361 135 129 358 135 129 ==14702== ==14702== I refs: 17,596 ==14702== I1 misses: 361 ==14702== L2i misses: 358 ==14702== I1 miss rate: 2.5% ==14702== L2i miss rate: 2.3% ==14702== ==14702== D refs: 7,794 (4,597 rd + 3,197 wr) ==14702== D1 misses: 264 ( 135 rd + 129 wr) ==14702== L2d misses: 264 ( 135 rd + 135 wr) ==14702== D1 miss rate: 3.3% ( 2.9% + 4.0% ) ==14702== L2d miss rate: 3.3% ( 2.9% + 4.0% ) ==14702== ==14702== L2 refs: 625 ( 496 rd + 129 wr) ==14702== L2 misses: 622 ( 493 rd + 129 wr) ==14702== L2 miss rate: 2.4% ( 2.2% + 4.0% ) gav |
|
From: Josef W. <Jos...@gm...> - 2005-01-26 13:16:21
|
Hi, I suppose it is the same with "valgrind --tool=none ..." ? I cannot reproduce it. Can you provide the output of "strace ./x" and of "valgrind --tool=none -v --trace-syscalls=yes ./x" to compare them? Josef On Tuesday 25 January 2005 19:01, Gav Wood wrote: > ==14702== Callgrind-0.9.9, a call-graph generating cache profiler for > x86-linux. > ==14702== Copyright (C) 2002-2004, and GNU GPL'd, by J.Weidendorfer, > N.Nethercote et al. > ==14702== Using valgrind-2.2.0, a program supervision framework for > x86-linux. > ==14702== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. > ==14702== For more details, rerun with: -v > ==14702== > ./x: error while loading shared libraries: libSDL-1.2.so.0: cannot enable > executable stack as shared object requires: Invalid argument > ==14702== > ==14702== Events : Ir Dr Dw I1mr D1mr D1mw I2mr D2mr D2mw > ==14702== Collected : 17596 4597 3197 361 135 129 358 135 129 > ==14702== > ==14702== I refs: 17,596 > ==14702== I1 misses: 361 > ==14702== L2i misses: 358 > ==14702== I1 miss rate: 2.5% > ==14702== L2i miss rate: 2.3% > ==14702== > ==14702== D refs: 7,794 (4,597 rd + 3,197 wr) > ==14702== D1 misses: 264 ( 135 rd + 129 wr) > ==14702== L2d misses: 264 ( 135 rd + 135 wr) > ==14702== D1 miss rate: 3.3% ( 2.9% + 4.0% ) > ==14702== L2d miss rate: 3.3% ( 2.9% + 4.0% ) > ==14702== > ==14702== L2 refs: 625 ( 496 rd + 129 wr) > ==14702== L2 misses: 622 ( 493 rd + 129 wr) > ==14702== L2 miss rate: 2.4% ( 2.2% + 4.0% ) > > gav |
|
From: Gav W. <gav...@fa...> - 2005-01-27 10:38:18
Attachments:
strace.out
vagrind-trace.out
|
> I suppose it is the same with "valgrind --tool=none ..." ? yes. > I cannot reproduce it. doh. > Can you provide the output of "strace ./x" and of > "valgrind --tool=none -v --trace-syscalls=yes ./x" to compare them? attached gav |
|
From: Igmar P. <mai...@jd...> - 2005-02-02 09:59:23
|
> =3D=3D14779=3D=3D Reading syms from /usr/lib/libSDL-1.2.so.0.7.0 (0x4F447= 000) > =3D=3D14779=3D=3D=A0=A0=A0=A0object=A0doesn't=A0have=A0a=A0symbol=A0table > =3D=3D14779=3D=3D=A0=A0=A0=A0object=A0doesn't=A0have=A0any=A0debug=A0info > ./ffx: error while loading shared libraries: libSDL-1.2.so.0: cannot enab= le > executable stack as shared object requires: Invalid argument >=20 > i couldn't find any reference to this error on the mailing list, faq, or > google. what is it, why am i getting it and what can i do to get rid of i= t? >=20 > cheers for any help you can offer, Are you by any change running a kernel with PAX enabled ? If the answer is= =20 'yes', then start reading=20 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=3D132149 Since this is SDL, I can highly imagine that it uses asm somewhere, which= =20 causes the problems. I personally hardly believe that it's a valgrind=20 issue, since mappings are done by the kernel. =09Igmar |