|
From: Gav W. <gav...@fa...> - 2005-01-25 18:01:59
|
> 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 |