|
From: Nicholas N. <nj...@ca...> - 2003-11-17 22:15:38
|
On Mon, 17 Nov 2003, Per von Zweigbergk wrote: > When running tvtime under Valgrind, I get an error message about > OVERLAPPING EXE SEGMENTS (full error message text below.) The same error > message occurs with --skin=memcheck. > > OVERLAPPING EXE SEGMENTS > new: start 0x10000000, size 4096 > old: start 0x10000000, size 131072 The problem is that your program is mapping two executable segments to the same address. Valgrind's handling of text segment loading is fairly simplistic, and falls over if anything tricky like this happens; we haven't bothered being more clever because in practice tricky cases happen extremely rarely. AFAIK this is the first time anyone has reported the problem. 0x10000000 is a pretty strange address for normal Linux boxes, I assume your program is deliberately mapping things there, eg. with MAP_FIXED? dlopen() doesn't tend to put segments at that address. Maybe the segments are executable but not actually text? Maybe your program does some JIT compiling? It would help if you could explain exactly why your program is mapping two segments to the same address, and whether the segments contain code, and any other relevant info. Thanks. N |