Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Mar 2003 17:13:45 +0900
From:      Kimura Fuyuki <fuyuki@hadaly.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/50118: calendar(1) dumps core if there is ./calendar/
Message-ID:  <861y13bwp2.wl%fuyuki@hadaly.org>

next in thread | raw e-mail | index | archive | help

>Number:         50118
>Category:       bin
>Synopsis:       calendar(1) dumps core if there is ./calendar/
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 19 00:20:11 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Kimura Fuyuki
>Release:        FreeBSD 5.0-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD hadaly.dyndns.org 5.0-RELEASE-p4 FreeBSD 5.0-RELEASE-p4 #2: Fri Mar 7 13:26:51 JST 2003 root@hadaly.dyndns.org:/.2/obj/usr/src/sys/NS i386


	
>Description:
calendar(1) dumps core if there is a directory named "calendar" in the
current working directory.
	
>How-To-Repeat:
$ calendar
calendar: no calendar file: ``calendar''
$ mkdir calendar
$ calendar
cpp: Internal error: Segmentation fault (program tradcpp0)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html>; for instructions.
	
>Fix:
Need some stat(2)s, e.g:

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/calendar/io.c?rev=1.22&content-type=text/x-cvsweb-markup

But `f' mode for freopen looks nice for me:

http://cvsweb.netbsd.org/bsdweb.cgi/src/usr.bin/calendar/calendar.c?rev=1.27&content-type=text/x-cvsweb-markup
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861y13bwp2.wl%fuyuki>