-   Slackware (
-   -   unwanted glibc crash messages (

Keith Hedger 12-07-2010 03:06 PM

unwanted glibc crash messages
I am writing a script using man2html and some man pages cause man2html to crash ie

gunzip --to-stdout /usr/man/man7/groff_hdtbl.7.gz |man2html -r
will cause a glibc crashdump like so

*** glibc detected *** man2html: free(): invalid next size (fast): 0x0000000000613610 ***
======= Backtrace: =========
======= Memory map: ========

the crash ISN'T the problem its all the bumpf it prints out I need to find a way to suppress this output because it mucks up the dialog box I'm using, tried redirecting stderr, using setterm -msg off, googling, apropos etc but no luck any ideas?

Richard Cranium 12-07-2010 04:24 PM

See /etc/profile.d/ and then

Keith Hedger 12-08-2010 02:04 PM

Adding this:

export MALLOC_CHECK_=4
to the script cures the problem nice one:)

Richard Cranium 12-09-2010 12:35 AM

(scratches chin)

Well, you may consider the messages to be bumf, but man2html could be corrupting memory. Now, if you never run man2html as root, then it may not be a big deal (since you won't be corrupting any system services). If you stay logged in for long periods of time as the user running man2html, you may see some really odd behavior in some of your programs (like your window manager if you are running under X). I hope that you reported the issue to the man2html maintainers.

Keith Hedger 12-09-2010 01:39 PM

I am aware of the danger of memory overflow problems especially when run as root hence i left the MALLOC_CHECK in /etc/profile.d/ alone and only set it in the script which only gets run once in a while and never as root and my machine is shut down most nights so this is not a problem ( but thanks for the head up anyway ), didn't think to report the bug but I will now as it is easily reproducible.

All times are GMT -5. The time now is 08:32 PM.