|
From: Yeshurun, M. <mei...@in...> - 2005-09-06 08:18:16
|
Hi,
I once had this problem and Tom showed me how to solve it (hopefully it
will work in your case as well).
When not using PIE, in the configure script, change the value of
KICKSTART_BASE to 0xA0000000 (i.e. just change the 'B' to 'A') for the
relevant platform, and configure,make,make install again.
When you are using PIE, the way to do the same thing is to increase the
value subtraced from exe_end to compute exe_base in line 272 of
coregrind/stage1.c
Good luck,
Meir=20
-----Original Message-----
From: val...@li...
[mailto:val...@li...] On Behalf Of
Christoph Bartoschek
Sent: Tuesday, September 06, 2005 11:06 AM
To: val...@li...
Subject: [Valgrind-users] newSuperblock's request for 1048576 bytes
failed with valgrind 3.0.1
Hi,
I have another report about problems with memory. Is there anything one
could=20
try to get rid of this? Should I send you more debug information? This
error=20
comes when we use --enable-pie and when we do not use this option:
VG_(get_memory_from_mmap): newSuperblock's request for 1048576 bytes
failed.
VG_(get_memory_from_mmap): 256366456 bytes already allocated.
Sorry. You could try using a tool that uses less memory;
eg. addrcheck instead of memcheck.
---- Debugging information follows --------
Valgrind's range is: 0xB0000000 .. 0xBFFFFFFF
<<< SHOW_SEGMENTS: VG_(get_memory_from_mmap) failure (56 segments, 13=20
segnames)
( 0) /usr/local/opt/i386-20050729/lib/valgrind/stage2
( 1) /lib/ld-2.3.4.so
( 2) /lib/libdl.so.2
( 3) /lib/tls/libc.so.6
( 4) /usr/local/opt/i386-20050729/lib/valgrind/vgtool_memcheck.so
( 5)
/lfs/user/peyer/vlsi/xr_050819.restrict/trunk/xrslocl2/bin/mem-dbg.32bit
/bonnRouteLocalN
( 6) /usr/local/opt/i386-20050729/lib/valgrind/vg_preload_core.so
( 7) /usr/local/opt/i386-20050729/lib/valgrind/vgpreload_memcheck.so
( 8) /var/run/nscd/passwd
( 9) /lib/tls/libpthread.so.0
(10) /usr/local/opt/i386-20050729/gcc/lib/libstdc++.so.6.0.3
(11) /lib/tls/libm.so.6
(12) /usr/local/opt/i386-20050729/gcc/lib/libgcc_s.so.1
0: 0x08048000-0x081A6000 1433600 pr=3D0x5 fl=3D0x020C d=3D0x023 =
i=3D275865
o=3D0 =20
(5)
1: 0x081A6000-0x082F2000 1359872 pr=3D0x7 fl=3D0x000C d=3D0x023 =
i=3D275865 =20
o=3D1433600 (5)
2: 0x082F2000-0x08809000 5337088 pr=3D0x7 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
3: 0x1B8E4000-0x1B8FA000 90112 pr=3D0x5 fl=3D0x020C d=3D0x803 =
i=3D2445991
o=3D0 =20
(1)
4: 0x1B8FA000-0x1B8FC000 8192 pr=3D0x7 fl=3D0x000C d=3D0x803 =
i=3D2445991
o=3D86016 =20
(1)
5: 0x1B8FC000-0x1B8FD000 4096 pr=3D0x3 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
6: 0x1B8FD000-0x1B8FE000 4096 pr=3D0x5 fl=3D0x020C d=3D0x025 =
i=3D400002
o=3D0 =20
(6)
7: 0x1B8FE000-0x1B8FF000 4096 pr=3D0x3 fl=3D0x000C d=3D0x025 =
i=3D400002
o=3D0 =20
(6)
8: 0x1B8FF000-0x1B904000 20480 pr=3D0x5 fl=3D0x020C d=3D0x025 =
i=3D400011
o=3D0 =20
(7)
9: 0x1B904000-0x1B905000 4096 pr=3D0x3 fl=3D0x000C d=3D0x025 =
i=3D400011
o=3D16384 =20
(7)
10: 0x1B905000-0x1B909000 16384 pr=3D0x3 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
11: 0x1B919000-0x1B927000 57344 pr=3D0x5 fl=3D0x020C d=3D0x803 =
i=3D2448457
o=3D0 =20
(9)
12: 0x1B927000-0x1B929000 8192 pr=3D0x3 fl=3D0x000C d=3D0x803 =
i=3D2448457
o=3D53248 =20
(9)
13: 0x1B929000-0x1B92B000 8192 pr=3D0x3 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
14: 0x1B92B000-0x1B9F1000 811008 pr=3D0x5 fl=3D0x020C d=3D0x025 =
i=3D482689
o=3D0 =20
(10)
15: 0x1B9F1000-0x1B9F6000 20480 pr=3D0x3 fl=3D0x000C d=3D0x025 =
i=3D482689
o=3D806912 =20
(10)
16: 0x1B9F6000-0x1B9FB000 20480 pr=3D0x3 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
17: 0x1B9FB000-0x1BA1C000 135168 pr=3D0x5 fl=3D0x020C d=3D0x803 =
i=3D2448456
o=3D0 =20
(11)
18: 0x1BA1C000-0x1BA1E000 8192 pr=3D0x3 fl=3D0x000C d=3D0x803 =
i=3D2448456
o=3D131072 =20
(11)
19: 0x1BA1E000-0x1BA26000 32768 pr=3D0x5 fl=3D0x020C d=3D0x025 =
i=3D482685
o=3D0 =20
(12)
20: 0x1BA26000-0x1BA27000 4096 pr=3D0x3 fl=3D0x000C d=3D0x025 =
i=3D482685
o=3D28672 =20
(12)
21: 0x1BA27000-0x1BA28000 4096 pr=3D0x3 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
22: 0x1BA28000-0x1BB3B000 1126400 pr=3D0x5 fl=3D0x020C d=3D0x803 =
i=3D2448455
o=3D0 =20
(3)
23: 0x1BB3B000-0x1BB3C000 4096 pr=3D0x1 fl=3D0x000C d=3D0x803 =
i=3D2448455=20
o=3D1126400 (3)
24: 0x1BB3C000-0x1BB3F000 12288 pr=3D0x3 fl=3D0x000C d=3D0x803 =
i=3D2448455=20
o=3D1130496 (3)
25: 0x1BB3F000-0x1BB41000 8192 pr=3D0x3 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
26: 0x1BB41000-0x1BB43000 8192 pr=3D0x5 fl=3D0x020C d=3D0x803 =
i=3D2448447
o=3D0 =20
(2)
27: 0x1BB43000-0x1BB45000 8192 pr=3D0x3 fl=3D0x000C d=3D0x803 =
i=3D2448447
o=3D4096 =20
(2)
28: 0x1BB45000-0x1BB46000 4096 pr=3D0x3 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
29: 0x1BB46000-0x1BD46000 2097152 pr=3D0x7 fl=3D0x0084 d=3D0x000 i=3D0
o=3D0 =20
(-1)
30: 0x1BD46000-0x1BD7B000 217088 pr=3D0x1 fl=3D0x000D d=3D0x803 =
i=3D2349199
o=3D0 =20
(8)
31: 0x1BD7B000-0x3E68F000 579944448 pr=3D0x7 fl=3D0x0084 d=3D0x000 =
i=3D0
o=3D0 =20
(-1)
32: 0x52BE2000-0x52C00000 122880 pr=3D0x7 fl=3D0x0034 d=3D0x000 i=3D0
o=3D0 =20
(-1)
33: 0x52C00000-0xB0000000 1564475392 pr=3D0x0 fl=3D0x0004 d=3D0x000 =
i=3D0
o=3D0 =20
(-1)
34: 0xB0000000-0xB0132000 1253376 pr=3D0x5 fl=3D0x020C d=3D0x025 =
i=3D400001
o=3D0 =20
(0)
35: 0xB0132000-0xB0133000 4096 pr=3D0x7 fl=3D0x000C d=3D0x025 =
i=3D400001 =20
o=3D1249280 (0)
36: 0xB0133000-0xB0A1F000 9355264 pr=3D0x7 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
37: 0xB0A1F000-0xB0B1F000 1048576 pr=3D0x7 fl=3D0x0104 d=3D0x000 i=3D0 =
=20
o=3D2097152 (-1)
38: 0xB0B1F000-0xB0B20000 4096 pr=3D0x0 fl=3D0x0104 d=3D0x000 i=3D0
o=3D0 =20
(-1)
39: 0xB0B20000-0xB0B30000 65536 pr=3D0x3 fl=3D0x0104 d=3D0x000 i=3D0
o=3D4096 =20
(-1)
40: 0xB0B30000-0xB0D73000 2371584 pr=3D0x7 fl=3D0x0104 d=3D0x000 i=3D0
o=3D0 =20
(-1)
41: 0xB0D7C000-0xB0FEC000 2555904 pr=3D0x7 fl=3D0x0104 d=3D0x000 i=3D0
o=3D0 =20
(-1)
42: 0xB1000000-0xB1016000 90112 pr=3D0x5 fl=3D0x000C d=3D0x803 =
i=3D2445991
o=3D0 =20
(1)
43: 0xB1016000-0xB1018000 8192 pr=3D0x7 fl=3D0x000C d=3D0x803 =
i=3D2445991
o=3D86016 =20
(1)
44: 0xB1018000-0xB1019000 4096 pr=3D0x7 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
45: 0xB102D000-0xB102F000 8192 pr=3D0x5 fl=3D0x000C d=3D0x803 =
i=3D2448447
o=3D0 =20
(2)
46: 0xB102F000-0xB1031000 8192 pr=3D0x7 fl=3D0x000C d=3D0x803 =
i=3D2448447
o=3D4096 =20
(2)
47: 0xB1031000-0xB1145000 1130496 pr=3D0x5 fl=3D0x000C d=3D0x803 =
i=3D2448455
o=3D0 =20
(3)
48: 0xB1145000-0xB1148000 12288 pr=3D0x7 fl=3D0x000C d=3D0x803 =
i=3D2448455=20
o=3D1130496 (3)
49: 0xB1148000-0xB124B000 1060864 pr=3D0x7 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
50: 0xB124B000-0xB1266000 110592 pr=3D0x5 fl=3D0x000C d=3D0x025 =
i=3D400010
o=3D0 =20
(4)
51: 0xB1266000-0xB1267000 4096 pr=3D0x7 fl=3D0x000C d=3D0x025 =
i=3D400010
o=3D110592 =20
(4)
52: 0xB1267000-0xB1304000 643072 pr=3D0x7 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
53: 0xB1304000-0xBFFCF000 248295424 pr=3D0x7 fl=3D0x0104 d=3D0x000 =
i=3D0
o=3D0 =20
(-1)
54: 0xBFFEA000-0xC0000000 90112 pr=3D0x7 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
55: 0xFFFFE000-0xFFFFF000 4096 pr=3D0x0 fl=3D0x0004 d=3D0x000 i=3D0
o=3D0 =20
(-1)
>>>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing &
QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Valgrind-users mailing list
Val...@li...
https://lists.sourceforge.net/lists/listinfo/valgrind-users
|
|
From: Yeshurun, M. <mei...@in...> - 2005-09-06 10:31:59
|
Multiply the subtracted value by 2, try running Valgrind again, and if it's not enough, try multiplying by 2 again, and so on. In general, you should use the smallest value that works. You should do the same for KICKSTART_BASE with the non-PIE build, i.e. multiply by 2 the value you're subtracting from it until it works. Use the highest value for KICKSTART_BASE that works. Regards, Meir -----Original Message----- From: val...@li... [mailto:val...@li...] On Behalf Of Christoph Bartoschek Sent: Tuesday, September 06, 2005 11:45 AM To: val...@li... Subject: Re: [Valgrind-users] newSuperblock's request for 1048576 bytes failed with valgrind 3.0.1 Am Dienstag, 6. September 2005 10:17 schrieb Yeshurun, Meir: > Hi, > > I once had this problem and Tom showed me how to solve it (hopefully it > will work in your case as well). > > When not using PIE, in the configure script, change the value of > KICKSTART_BASE to 0xA0000000 (i.e. just change the 'B' to 'A') for the > relevant platform, and configure,make,make install again. > > When you are using PIE, the way to do the same thing is to increase the > value subtraced from exe_end to compute exe_base in line 272 of > coregrind/stage1.c Thanks, what is a suggested value for subtracting from exe_end in the PIE=20 case? Christoph ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Valgrind-users mailing list Val...@li... https://lists.sourceforge.net/lists/listinfo/valgrind-users |
|
From: Christoph B. <bar...@or...> - 2005-09-06 08:44:32
|
Am Dienstag, 6. September 2005 10:17 schrieb Yeshurun, Meir: > Hi, > > I once had this problem and Tom showed me how to solve it (hopefully it > will work in your case as well). > > When not using PIE, in the configure script, change the value of > KICKSTART_BASE to 0xA0000000 (i.e. just change the 'B' to 'A') for the > relevant platform, and configure,make,make install again. > > When you are using PIE, the way to do the same thing is to increase the > value subtraced from exe_end to compute exe_base in line 272 of > coregrind/stage1.c Thanks, what is a suggested value for subtracting from exe_end in the PIE case? Christoph |