|
From: Sefer T. <se...@ho...> - 2003-12-23 21:07:59
|
Hi,
I'm experiencing that problem as well when using the HEAD branch of the cvs.
bash$ /opt/valgrind/bin/valgrind /bin/ls
Executable is mapped outside of range 0x80cf000-0xbffff000
failed to load /opt/valgrind/lib/valgrind/stage2: Cannot allocate memory
I have Mandrake 9.2 (with all the cooker additions) running on kernel
2.4.23, glibc 2.3.3, binutils 2.14.19.0.7, gcc 3.3.2
Basically it's a fairly standard system, containing up to date versions of
most development tools.
Here's some information on the files based on the ideas suggested in the
previous conversations on the issue.
Does that give any additional clues? Anything else I can provide?
bash$ readelf -hlS /opt/valgrind/bin/valgrind
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x804941c
Start of program headers: 52 (bytes into file)
Start of section headers: 533632 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 4
Size of section headers: 40 (bytes)
Number of section headers: 30
Section header string table index: 27
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk
Inf Al [ 0] NULL 00000000 000000 000000 00
0 0 0 [ 1] .init PROGBITS 080480d4 0000d4 000017 00
AX 0 0 4 [ 2] .text PROGBITS 08048100 000100
04c321 00 AX 0 0 32 [ 3] __libc_freeres_fn PROGBITS 08094430
04c430 0004c1 00 AX 0 0 16 [ 4] .fini PROGBITS
080948f4 04c8f4 00001a 00 AX 0 0 4 [ 5] .rodata PROGBITS
08094920 04c920 013793 00 A 0 0 32 [ 6] __libc_subfreeres PROGBITS
080a80b4 0600b4 00002c 00 A 0 0 4 [ 7] __libc_atexit
PROGBITS 080a80e0 0600e0 000004 00 A 0 0 4 [ 8] .eh_frame
PROGBITS 080a80e4 0600e4 00186c 00 A 0 0 4 [ 9] .data
PROGBITS 080aa960 061960 000f28 00 WA 0 0 32 [10] .ctors
PROGBITS 080ab888 062888 000008 00 WA 0 0 4 [11]
.dtors PROGBITS 080ab890 062890 000008 00 WA 0 0 4
[12] .jcr PROGBITS 080ab898 062898 000004 00 WA 0 0
4 [13] .got PROGBITS 080ab89c 06289c 000010 04 WA 0
0 4 [14] .bss NOBITS 080ab8c0 0628c0 023500 00 WA
0 0 32 [15] __libc_freeres_pt NOBITS 080cedc0 0628c0 000018 00
WA 0 0 4 [16] .comment PROGBITS 00000000 0628c0 0001fb
00 0 0 1 [17] .debug_aranges PROGBITS 00000000 062ac0
000118 00 0 0 8 [18] .debug_pubnames PROGBITS 00000000
062bd8 000228 00 0 0 1 [19] .debug_info PROGBITS
00000000 062e00 01503f 00 0 0 1 [20] .debug_abbrev PROGBITS
00000000 077e3f 001046 00 0 0 1 [21] .debug_line PROGBITS
00000000 078e85 000f8c 00 0 0 1 [22] .debug_frame
PROGBITS 00000000 079e14 00050c 00 0 0 4 [23] .debug_str
PROGBITS 00000000 07a320 006f57 01 MS 0 0 1 [24] .debug_loc
PROGBITS 00000000 081277 001072 00 0 0 1 [25]
.note.ABI-tag NOTE 080480b4 0000b4 000020 00 A 0 0 4
[26] .debug_ranges PROGBITS 00000000 0822e9 000060 00 0 0
1 [27] .shstrtab STRTAB 00000000 082349 000135 00 0
0 1 [28] .symtab SYMTAB 00000000 082930 005e50 10
29 1ff 4 [29] .strtab STRTAB 00000000 088780 005051 00
0 0 1Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000000 0x08048000 0x08048000 0x61950 0x61950 R E 0x1000
LOAD 0x061960 0x080aa960 0x080aa960 0x00f4c 0x24478 RW 0x1000
NOTE 0x0000b4 0x080480b4 0x080480b4 0x00020 0x00020 R 0x4
STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4
Section to Segment mapping:
Segment Sections...
00 .init .text __libc_freeres_fn .fini .rodata __libc_subfreeres
__libc_atexit .eh_frame .note.ABI-tag
01 .data .ctors .dtors .jcr .got .bss __libc_freeres_ptrs
02 .note.ABI-tag
03
bash$ ldd /opt/valgrind/lib/valgrind/stage2
libdl.so.2 => /lib/libdl.so.2 (0x4002e000)
libc.so.6 => /lib/i686/libc.so.6 (0x40031000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bash$ readelf -hlS /opt/valgrind/lib/valgrind/stage2
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Intel 80386
Version: 0x1
Entry point address: 0x8055548
Start of program headers: 52 (bytes into file)
Start of section headers: 1810508 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 8
Size of section headers: 40 (bytes)
Number of section headers: 37
Section header string table index: 34
Section Headers:
[Nr] Name Type Addr Off Size ES Flg Lk
Inf Al [ 0] NULL 00000000 000000 000000 00
0 0 0 [ 1] .interp PROGBITS 08048134 000134 000013 00
A 0 0 1 [ 2] .note.ABI-tag NOTE 08048148 000148
000020 00 A 0 0 4 [ 3] .hash HASH 08048168
000168 0016a4 04 A 4 0 4 [ 4] .dynsym DYNSYM
0804980c 00180c 0039e0 10 A 5 1 4 [ 5] .dynstr STRTAB
0804d1ec 0051ec 005489 00 A 0 0 1 [ 6] .gnu.version VERSYM
08052676 00a676 00073c 02 A 4 0 2 [ 7] .gnu.version_r
VERNEED 08052db4 00adb4 000080 00 A 5 2 4 [ 8] .rel.dyn
REL 08052e34 00ae34 000018 08 A 4 0 4 [ 9] .rel.plt
REL 08052e4c 00ae4c 000168 08 A 4 b 4 [10] .init
PROGBITS 08052fb4 00afb4 000017 00 AX 0 0 4 [11]
.plt PROGBITS 08052fcc 00afcc 0002e0 04 AX 0 0 4
[12] .text PROGBITS 080532b0 00b2b0 058244 00 AX 0 0
16 [13] .fini PROGBITS 080ab4f4 0634f4 00001a 00 AX 0
0 4 [14] .rodata PROGBITS 080ab520 063520 01bde0 00 A
0 0 32 [15] .eh_frame_hdr PROGBITS 080c7300 07f300 000024 00
A 0 0 4 [16] .eh_frame PROGBITS 080c7324 07f324
00008c 00 A 0 0 4 [17] .data PROGBITS 080c8000
080000 000494 00 WA 0 0 32 [18] .dynamic DYNAMIC
080c8494 080494 0000d0 08 WA 5 0 4 [19] .ctors PROGBITS
080c8564 080564 000008 00 WA 0 0 4 [20] .dtors PROGBITS
080c856c 08056c 000008 00 WA 0 0 4 [21] .jcr
PROGBITS 080c8574 080574 000004 00 WA 0 0 4 [22] .got
PROGBITS 080c8578 080578 0000c4 04 WA 0 0 4 [23] .bss
NOBITS 080c8640 080640 0579a0 00 WA 0 0 32 [24]
.comment PROGBITS 00000000 080640 00088e 00 0 0 1
[25] .debug_aranges PROGBITS 00000000 080ed0 000518 00 0 0
8 [26] .debug_pubnames PROGBITS 00000000 0813e8 007a49 00 0
0 1 [27] .debug_info PROGBITS 00000000 088e31 0a6ddf 00
0 0 1 [28] .debug_abbrev PROGBITS 00000000 12fc10 009551 00
0 0 1 [29] .debug_line PROGBITS 00000000 139161 00ddcc
00 0 0 1 [30] .debug_frame PROGBITS 00000000 146f30
01610c 00 0 0 4 [31] .debug_str PROGBITS 00000000
15d03c 018236 01 MS 0 0 1 [32] .debug_loc PROGBITS
00000000 175272 04496d 00 0 0 1 [33] .debug_ranges PROGBITS
00000000 1b9bdf 000318 00 0 0 1 [34] .shstrtab STRTAB
00000000 1b9ef7 000152 00 0 0 1 [35] .symtab
SYMTAB 00000000 1ba614 009150 10 36 501 4 [36] .strtab
STRTAB 00000000 1c3764 00afe0 00 0 0 1Key to Flags:
W (write), A (alloc), X (execute), M (merge), S (strings)
I (info), L (link order), G (group), x (unknown)
O (extra OS processing required) o (OS specific), p (processor specific)
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x08048034 0x08048034 0x00100 0x00100 R E 0x4
INTERP 0x000134 0x08048134 0x08048134 0x00013 0x00013 R 0x1
[Requesting program interpreter: /lib/ld-linux.so.2]
LOAD 0x000000 0x08048000 0x08048000 0x7f3b0 0x7f3b0 R E 0x1000
LOAD 0x080000 0x080c8000 0x080c8000 0x0063c 0x57fe0 RW 0x1000
DYNAMIC 0x080494 0x080c8494 0x080c8494 0x000d0 0x000d0 RW 0x4
NOTE 0x000148 0x08048148 0x08048148 0x00020 0x00020 R 0x4
GNU_EH_FRAME 0x07f300 0x080c7300 0x080c7300 0x00024 0x00024 R 0x4
STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RWE 0x4
Section to Segment mapping:
Segment Sections...
00
01 .interp
02 .interp .note.ABI-tag .hash .dynsym .dynstr .gnu.version
.gnu.version_r .rel.dyn .rel.plt .init .plt .text .fini .rodata
.eh_frame_hdr .eh_frame
03 .data .dynamic .ctors .dtors .jcr .got .bss
04 .dynamic
05 .note.ABI-tag
06 .eh_frame_hdr
07
Thanks,
Sefer.
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
|