|
From: smiley g. <smi...@ya...> - 2005-09-22 08:41:44
Attachments:
patch_big_exec.txt
|
I have an executable that is 1G in size after debug
recompilation. Valgrind 3.0.1 memcheck fails when
trying to mmap it to read symbols
typically the following error is seen in log file
==22976== Reading syms from <exe> (0x8048000)
==22976== warning: mmap failed on <exe>
The following is a hack that shrinks the shadow memory
temporarily to get the executable onboard finishes the
symbol loading and rollsback the changes.
If you have bigger dlopened shared objects this is not
the right way to go as you may end up loosing part of
the shadow.
I guess Nick is working on a mechanism to get this
done in a lot more clean and legal way.
Apply the patch to coregrind/m_debuginfo/symtab.c
Thanks,
Madhan.
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com |
|
From: Julian S. <js...@ac...> - 2005-09-22 09:40:21
|
Is this on x86 or amd64? The new address-space-manager, which will be in 3.1.X, should make this problem go away permanently as it removes various inflexibilities in address space layout. You can try it now: svn co svn://svn.valgrind.org/branches/ASPACEM LMK if it works. J On Thursday 22 September 2005 09:41, smiley glitter wrote: > I have an executable that is 1G in size after debug > recompilation. Valgrind 3.0.1 memcheck fails when > trying to mmap it to read symbols > > typically the following error is seen in log file > > ==22976== Reading syms from <exe> (0x8048000) > ==22976== warning: mmap failed on <exe> > > The following is a hack that shrinks the shadow memory > temporarily to get the executable onboard finishes the > symbol loading and rollsback the changes. > > If you have bigger dlopened shared objects this is not > the right way to go as you may end up loosing part of > the shadow. > > I guess Nick is working on a mechanism to get this > done in a lot more clean and legal way. > > Apply the patch to coregrind/m_debuginfo/symtab.c > > Thanks, > Madhan. > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com |