NetBSD Problem Report #47448
From www@NetBSD.org Tue Jan 15 02:57:57 2013
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
by www.NetBSD.org (Postfix) with ESMTP id ED10963E893
for <gnats-bugs@gnats.NetBSD.org>; Tue, 15 Jan 2013 02:57:56 +0000 (UTC)
Message-Id: <20130115025756.13A4163E893@www.NetBSD.org>
Date: Tue, 15 Jan 2013 02:57:56 +0000 (UTC)
From: jgw@sdf.org
Reply-To: jgw@sdf.org
To: gnats-bugs@NetBSD.org
Subject: makemandb(8) segfaults on certain manpages
X-Send-Pr-Version: www-1.0
>Number: 47448
>Category: bin
>Synopsis: makemandb(8) segfaults on certain manpages
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 15 03:00:01 +0000 2013
>Closed-Date: Sun Mar 15 17:47:08 +0000 2015
>Last-Modified: Sun Mar 15 17:47:08 +0000 2015
>Originator: Jeff Woodall
>Release: 6.0.1/i386
>Organization:
>Environment:
NetBSD ituner.sleepy.cat 6.0.1 NetBSD 6.0.1 (GENERIC) i386
>Description:
The makemandb(8) tool crashes when it encounters certain types of man pages, usually those of programs outside of the pkgsrc system. For example, here is the gdb(1) output when running makemandb(8) just on /usr/local/man which contains the AT&T ksh93 shell man page sh.1:
--
thinkctr# gdb -q /usr/sbin/makemandb
Reading symbols from /usr/sbin/makemandb...\
(no debugging symbols found)...done.
(gdb) run -C /usr/local/etc/man-local.conf -v
Building temporary file cache
Parsing: /usr/local/man/man1/sh.1
Program received signal SIGSEGV, Segmentation fault.
0x0804adc4 in pman_sh ()
(gdb) kill inferior 1
(gdb) quit
--
Note that the /usr/local/man/man1/sh.1 does render with some errors
using mandoc(1) and nearly error-free with 'groff -man -Tascii'. Attempts at simply tweaking /etc/man.conf to use groff(1) still segfault; makemandb(8) isn't handling formatter errors gracefully.
>How-To-Repeat:
Build ksh93 as a local package and install the man pages under /usr/local/man , then run makemandb with standard man.conf file.
>Fix:
Partial work-around is to comment out references to /usr/local/man in /etc/man.conf. The probably also occurs with certain man pages in older pkgsrc versions, ie. ../man/man1/mksh.1 (an OpenBSD man page).
>Release-Note:
>Audit-Trail:
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc:
Subject: Re: bin/47448: makemandb(8) segfaults on certain manpages
Date: Mon, 14 Jan 2013 22:17:49 -0500
On Jan 15, 3:00am, jgw@sdf.org (jgw@sdf.org) wrote:
-- Subject: bin/47448: makemandb(8) segfaults on certain manpages
Fixed on head. We will issue a pullup.
christos
From: "David H. Gutteridge" <dhgutteridge@sympatico.ca>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: bin/47448: makemandb(8) segfaults on certain manpages
Date: Sat, 14 Mar 2015 17:42:58 -0400
This PR was resolved in pullup ticket 786[1] over two years ago.
I think it can be closed.
1. http://releng.netbsd.org/cgi-bin/req-6.cgi?show=786
Dave
State-Changed-From-To: open->closed
State-Changed-By: snj@NetBSD.org
State-Changed-When: Sun, 15 Mar 2015 17:47:08 +0000
State-Changed-Why:
Fixed on the netbsd-6 branch in February 2013.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.