NetBSD Problem Report #196
From gnats Fri Apr 1 00:59:00 1994
Received: from rafal.slip.uiuc.edu (rafal.slip.uiuc.edu [128.174.22.238]) by sun-lamp.cs.berkeley.edu (8.6.8/8.6.6) with ESMTP id AAA23123 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 1 Apr 1994 00:58:57 -0800
Message-Id: <199404010858.CAA00406@rafal.slip.uiuc.edu>
Date: Fri, 1 Apr 1994 02:58:26 -0600
From: Rafal Boni <rafal@rafal.slip.uiuc.edu>
Reply-To: r-boni@uiuc.edu
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: mail dumps core if you have new mail
X-Send-Pr-Version: 3.2
>Number: 196
>Category: bin
>Synopsis: mail dumps core if user has new mail
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gnats-admin
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 01 01:05:01 +0000 1994
>Closed-Date: Fri Apr 01 09:13:43 +0000 1994
>Last-Modified:
>Originator: Rafal Boni
>Release: -current, SUP'd Mar. 30th
>Organization:
...me organized? Ha!
>Environment:
System: NetBSD rafal.slip.uiuc.edu 0.9a RAFAL#2 i386
Sources SUPed on Mar. 30, 1994
>Description:
Yet another missing cast to off_t causes mail to think that some
temp file or other [technical description, eh?] is munged. Mail
therefore panics and dumps core..
>How-To-Repeat:
1. Mail youself some junk
2. type "mail"
3. watch mail dump core..
>Fix:
*** fio.c.fixed Fri Apr 1 02:51:41 1994
--- fio.c Fri Apr 1 02:51:52 1994
***************
*** 209,217 ****
panic("Insufficient memory for %d messages", msgCount);
dot = message;
size -= sizeof (struct message);
fflush(f);
! (void) lseek(fileno(f), (off_t) sizeof *message, 0);
if (read(fileno(f), (char *) message, size) != size)
panic("Message temporary file corrupted");
message[msgCount].m_size = 0;
message[msgCount].m_lines = 0;
--- 209,217 ----
panic("Insufficient memory for %d messages", msgCount);
dot = message;
size -= sizeof (struct message);
fflush(f);
! (void) lseek(fileno(f), (long) sizeof *message, 0);
if (read(fileno(f), (char *) message, size) != size)
panic("Message temporary file corrupted");
message[msgCount].m_size = 0;
message[msgCount].m_lines = 0;
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cgd
State-Changed-When: Fri Apr 1 01:13:43 PST 1994
State-Changed-Why:
already fixed...
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.