|
From: Nicholas N. <nj...@cs...> - 2005-02-17 03:12:27
|
On Wed, 16 Feb 2005, Jeremy Fitzhardinge wrote: >> What <pid> do I use? > > The pid of your valgrind which is under the control of gdb. Ie, look at > its maps while it is stopped in gdb. I wasn't running Valgrind under gdb... I was just using gdb to analyse the core file. Anyway, I run Valgrind under GDB and the maps are: 00000000-08048000 ---p 00000000 03:06 16 /tmp/.pad.11393.1 (deleted) 08048000-080a3000 r-xp 00000000 00:12 8428197 /v/filer3/v1q009/njn/grind/head2/inst/bin/valgrind 080a3000-080a6000 rw-p 0005a000 00:12 8428197 /v/filer3/v1q009/njn/grind/head2/inst/bin/valgrind 080a6000-080ca000 rwxp 00000000 00:00 0 080ca000-b1000000 ---p 00000000 03:06 16 /tmp/.pad.11393.1 (deleted) b1000000-b1013000 r-xp 00000000 03:01 26832 /lib/ld-2.2.5.so b1013000-b1014000 rw-p 00013000 03:01 26832 /lib/ld-2.2.5.so b1030000-b1032000 r-xp 00000000 03:01 26903 /lib/libdl-2.2.5.so b1032000-b1033000 rw-p 00001000 03:01 26903 /lib/libdl-2.2.5.so b1033000-b1146000 r-xp 00000000 03:01 26889 /lib/libc-2.2.5.so b1146000-b114c000 rw-p 00113000 03:01 26889 /lib/libc-2.2.5.so b114c000-b1151000 rw-p 00000000 00:00 0 b8048000-b8103000 r-xp 00000000 00:12 8428199 /v/filer3/v1q009/njn/grind/head2/inst/lib/valgrind/stage2 b8103000-b8105000 rw-p 000ba000 00:12 8428199 /v/filer3/v1q009/njn/grind/head2/inst/lib/valgrind/stage2 b8105000-b825b000 rw-p 00000000 00:00 0 bfffe000-c0000000 rwxp fffff000 00:00 0 The bad address was 0xb805ab88, ie. within stage2, which doesn't seem unreasonable. >> Executable range (nil)-0x203f00 is outside theacceptable range >> 0x50000000-0x52bfe000 >> valgrind: failed to load /u/njn/grind/head4/.in_place/stage2: Cannot >> allocate memory >> >> ie. the outer (non-PIE) Valgrind can't even load the PIE one. Now I'm >> confused. > > What does "readelf -hl .in_place/stage2" say? See attachment. N |