------- Comment #3 from walter dot zimmer at dlr dot de 2006-03-24 16:57 ------- (In reply to comment #1) > Mudflap needs memory to set up runtime data structures, so you simply need > more > (virtual) memory. I investigated further and found that it is not the size of the memory that matters. The problem seems to be that we also use fortran code, which is not mudflapped, but needs the gfortran library. The mudflapped C code uses malloc(), which gets wrapped into calls to __mfwrap_malloc(). Unfortunately, libgfortran also uses malloc(), which is instrumented by libmudflap but shouldn't, as this exactly is causing the error.
One workaround is to use g77 instead of gfortran, as libg2c apparently doesn't call malloc(). The other proposal we came up with is to link the fortran part as dynamic library at runtime, but we didn't try this yet. Therefore, I guess this is not a bug in mudflap. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26446