Bug 31650

Summary: man(1) dumps core with groff/troff seg fault
Product: Base System Reporter: lyndon <lyndon>
Component: gnuAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-RELEASE   
Hardware: Any   
OS: Any   

Description lyndon 2001-10-31 04:00:00 UTC
man(1) dumps core on some manpages (I believe these are not preformatted pages).  groff(1) also dumps core with any (or no) options.  The specific error is a segmentation fault from groff: troff.  Backtrace shows in main()->free()->free().  When attempting to recompile groff with symbols, the problem disappears.  Subsequent builds did not restore the problem.

Fix: 

Compile and install groff from /usr/src/gnu/usr.bin/groff.  It appears that the source code on the 4.4-RELEASE cdrom does not contain the bug.
How-To-Repeat: Install clean from a 4.4-RELEASE cdrom.  Run man(1) on a manpage for which a preformatted version does not exist on disk.
Comment 1 Johan Karlsson freebsd_committer freebsd_triage 2001-10-31 10:46:48 UTC
State Changed
From-To: open->closed

As you say the problem does not appear in  
the src after release. We can not do anything about 
the release after the release. Hence problem solved.
Comment 2 ru freebsd_committer freebsd_triage 2001-10-31 12:43:11 UTC
On Tue, Oct 30, 2001 at 07:58:55PM -0800, Lyndon Griffin wrote:
> 
> man(1) dumps core on some manpages (I believe these are not preformatted pages).
> groff(1) also dumps core with any (or no) options.
> The specific error is a segmentation fault from groff: troff.
> Backtrace shows in main()->free()->free().
> When attempting to recompile groff with symbols, the problem disappears.
> Subsequent builds did not restore the problem.
> 
What are the sizes and MD5 checksums of /usr/bin/groff and /usr/bin/troff?


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age
Comment 3 Johan Karlsson freebsd_committer freebsd_triage 2001-10-31 15:24:29 UTC
State Changed
From-To: closed->open

Ok, there seems to be a real problem which should be mentioned in  
the ERRATA.
Comment 4 k 2001-10-31 18:06:42 UTC
Yes, it does seem like a bigger problem.
Where did you get your CD set from,
did you download the ISO images and burned your own CDs
or did you buy them from some place?

If you downloaded them can you please verify that the md5
checksum is correct for the images.
According to CHECKSUM.MD5 on ftp.se.freebsd.org:
MD5 (4.4-disc2.iso) = 87c51fae8aa5e448243fd53a9ed70627
MD5 (4.4-disc3.iso) = bef91f95beeae551412e1ea99ffc9fd1
MD5 (4.4-disc4.iso) = f7e1ee195735d185d91682147e2e3ffd
MD5 (4.4-mini.iso) = 33f1812cd11a38fab1f42d9399b30b60
MD5 (4.4-install.iso) = 7dc237940080379760f9deac29f08384


/Johan K

Ps please cc freebsd-gnats-submit@FreeBSD.ORG any reply, so our PR database
will record your mails. Be sure to use the same subject.


On Wed, Oct 31, 2001 at 16:58 (+0000) +0000, Lyndon Griffin wrote:
> Final output:
> 
> betelgeuse:/cdrom/$ md5check.pl
> file bin/bin.bq does not match
> file packages/All/./gal-0.11.2.tgz does not match
> file src/scontrib.cg does not match
> file XF86336/PC98-Servers does not match
> file XF86336/Servers does not match
> file XF86336/Xlkit.tgz does not match 
> 
> This looks like more than a GNU/troff problem... 
> 
> Lyndon Griffin writes: 
> 
> > johan@FreeBSD.org writes: 
> > 
> >> Synopsis: man(1) dumps core with groff/troff seg fault  
> >> 
> >> State-Changed-From-To: closed->open
> >> State-Changed-By: johan
> >> State-Changed-When: Wed Oct 31 07:24:29 PST 2001
> >> State-Changed-Why:  Ok, there seems to be a real problem which should be 
> >> mentioned in  the ERRATA.  
> >> 
> > 
> > I threw together a PERL script to check all the published MD5's against 
> > their real values.  So far, I've had one other hit besides bin.bq, which 
> > I've verified is incorrect.  The hit is packages/All/gal-0.11.2.tgz:
> > published:  MD5 (./gal-0.11.2.tgz) = 6247063a176ff2d5ca640957758a8779
> > actual:  MD5 (./gal-0.11.2.tgz) = 58f75ee41f30999d3730ce4256fd3062  
> > 

-- 
Johan Karlsson		mailto:k@numeri.campus.luth.se
Comment 5 Johan Karlsson freebsd_committer freebsd_triage 2001-11-01 09:09:36 UTC
State Changed
From-To: open->closed

Submitter reports that his images do not 
pass a md5 checksum test. And concludes  
the PR should be closed.