This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Turning off verbose dump
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: L A Walsh <gcc at tlinx dot org>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Wed, 25 Jan 2017 09:19:34 +0000
- Subject: Re: Turning off verbose dump
- Authentication-results: sourceware.org; auth=none
- References: <58884C05.1050002@tlinx.org>
On 25 January 2017 at 06:56, L A Walsh wrote:
> I am trying to debug a prog but keep having my output flushed off the screen
> by an unwanted memory map dump.
>
> Shouldn't that only be dumped by request?
>
> How do I turn it off?
What kind of memory map dump? What OS are you using? Does the program
exit with an error?
At a guess, you've got some heap corruption that malloc is detecting
when you try to free and invalid pointer, and it aborts the program
and dumps some info. If that's the case you need to fix your code. Try
using valgrind or ASan to find the problem.
In the meantime, can't you just use a pager to stop the output scrolling away?