NetBSD Problem Report #15070
Received: (qmail 22544 invoked from network); 28 Dec 2001 00:19:11 -0000
Message-Id: <200112280019.fBS0JBJ05478@vixen.snipe444.org>
Date: Thu, 27 Dec 2001 16:19:11 -0800 (PST)
From: cliff@snipe444.org
To: gnats-bugs@gnats.netbsd.org
Subject: xman core dumps when reading some man pages
X-Send-Pr-Version: 3.95
>Number: 15070
>Category: xsrc
>Synopsis: xman core dumps when reading some man pages
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: xsrc-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 28 00:20:00 +0000 2001
>Closed-Date: Fri Dec 28 10:21:28 +0000 2001
>Last-Modified: Thu Jan 03 08:28:26 +0000 2002
>Originator:
>Release: NetBSD 1.5.2
>Organization:
>Environment:
System: NetBSD vixen 1.5.2 NetBSD 1.5.2 (GENERIC) #3: Sat Aug 18 23:37:05 CEST 2001 he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC i386
>Description:
When using xman to read a man page in the new section(colors for Tk)
it had a segmentation fault. Reading other man pages can cause the
same problem.
>How-To-Repeat:
>Fix:
Thier was an uninitialized temporary(stack) variable.
--- misc.c.orig Tue Nov 6 19:00:17 2001
+++ misc.c Thu Dec 27 15:54:09 2001
@@ -402,7 +402,7 @@
FILE *
Format(ManpageGlobals * man_globals, char * entry)
{
- FILE * file;
+ FILE * file = 0;
#ifdef HAS_MKSTEMP
int fd;
#endif
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: martin
State-Changed-When: Fri Dec 28 02:15:22 PST 2001
State-Changed-Why:
Patch applied, thanks!
>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.