LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-07-2010, 02:06 PM   #1
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Rep: Reputation: 167Reputation: 167
Question unwanted glibc crash messages


I am writing a script using man2html and some man pages cause man2html to crash ie
Code:
gunzip --to-stdout /usr/man/man7/groff_hdtbl.7.gz |man2html -r
will cause a glibc crashdump like so
Code:
*** glibc detected *** man2html: free(): invalid next size (fast): 0x0000000000613610 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x78812)[0x7f0dc8832812]
/lib64/libc.so.6(cfree+0x73)[0x7f0dc8836623]
man2html[0x405ac8]
man2html[0x407300]
man2html[0x406fa2]
man2html[0x407300]
man2html[0x406fa2]
man2html[0x407300]
man2html[0x4086f4]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x7f0dc87d8c7d]
man2html[0x400f99]
======= Memory map: ========
00400000-0
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?

Last edited by Keith Hedger; 12-07-2010 at 02:14 PM.
 
Old 12-07-2010, 03:24 PM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,482

Rep: Reputation: 421Reputation: 421Reputation: 421Reputation: 421Reputation: 421
See /etc/profile.d/glibc.sh and then http://www.gnu.org/s/libc/manual/htm...-Checking.html

Last edited by Richard Cranium; 12-07-2010 at 03:25 PM. Reason: Left out link
 
1 members found this post helpful.
Old 12-08-2010, 01:04 PM   #3
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Original Poster
Rep: Reputation: 167Reputation: 167
Thanks!
Adding this:
Code:
export MALLOC_CHECK_=4
to the script cures the problem nice one
 
Old 12-08-2010, 11:35 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,482

Rep: Reputation: 421Reputation: 421Reputation: 421Reputation: 421Reputation: 421
(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.
 
Old 12-09-2010, 12:39 PM   #5
Keith Hedger
Member
 
Registered: Jun 2010
Location: Devon,UK
Distribution: Linux From Scratch, Slackware64,
Posts: 836

Original Poster
Rep: Reputation: 167Reputation: 167
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/glibc.sh 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.
 
  


Reply

Tags
crash, glibc, messages


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Move Unwanted messages From Mailq to Diffrent Folder manusys Linux - Newbie 3 04-08-2010 07:01 AM
unwanted log messages on the screen pranavchoudhary Red Hat 8 09-07-2006 01:58 AM
How to trap kernel crash error messages red_lego_man Linux - Newbie 8 06-26-2006 03:01 AM
xmms crash xine crash mplayer crash paledread Linux - Software 9 03-09-2004 07:09 AM
Kernel echoing messages on VC (unwanted behavior) lhoff Mandriva 3 12-05-2003 03:28 PM


All times are GMT -5. The time now is 01:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration