This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH RFA: Add -static-libstdc++ option to g++


Andrew Haley wrote:

Toon Moene wrote:

Andrew Haley wrote:

  You might be able to get at it by breakpointing at the start of the
arg
handling code in g++spec.c, and setting a watchpoint on
one-after-the-end-of
the argv array, for example.
Valgrind Memcheck is your friend.
Only if your application is small enough.  I have a 260 Mbyte
application that it won't get "mapped into memory".

I don't understand. In what way won't it get "mapped into memory"?

Strictly speaking, I do not understand either, because the error message is rather cryptic:


+ valgrind /scratch/harmonie/hm_home/MPI/bin/MASTERODB -maladin -vmeteo -eHARM -c001 -t60 -fh06 -asli
valgrind: mmap(0x726f000, 1796198400) failed in UME with error 22 (Invalid argument).
valgrind: this can be caused by executables with very large text, data or bss segments.


However, I interpret this as "your executable (either code or data) is too large to be handled".

--
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
At home: http://moene.org/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/gcc-4.5/changes.html


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]