[Bug libmudflap/26446] Running large program compiled with mudflap aborts even before reaching main()

walter dot zimmer at dlr dot de gcc-bugzilla@gcc.gnu.org
Thu Feb 23 17:43:00 GMT 2006



------- Comment #2 from walter dot zimmer at dlr dot de  2006-02-23 17:43 -------
(In reply to comment #1)
> Mudflap needs memory to set up runtime data structures, so you simply need more
> (virtual) memory.

Ok, I understand. Thanks!

> cat /proc/meminfo
MemTotal:      4038480 kB
[...]
SwapTotal:     8385912 kB

Seems like adding even more memory is no simple task :)

A quick calculation on the other hand rises the question, if this much memory
shouldn't be enough. It's about 3000 times the memory of the application (4mb).

Are there any tricks how to get mudflap to use less memory? Variables don't
work, as it exits before evaluating them, so it would have to be a compile time
option.

Sadly, this is already a reduced version of our binary, so we can't get this
smaller, so I guess we have to do without mudflap's services.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26446



More information about the Gcc-bugs mailing list