From nobody@FreeBSD.org  Wed Mar 27 14:47:12 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 0A88937B442
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 27 Mar 2002 14:47:07 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2RMkJ657777;
	Wed, 27 Mar 2002 14:46:19 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203272246.g2RMkJ657777@freefall.freebsd.org>
Date: Wed, 27 Mar 2002 14:46:19 -0800 (PST)
From: Nicholas Paufler <echofox@discordia.ca>
To: freebsd-gnats-submit@FreeBSD.org
Subject: cvsup core dumps on FreeBSD/Alpha 4.5-RELEASE
X-Send-Pr-Version: www-1.0

>Number:         36390
>Category:       alpha
>Synopsis:       cvsup core dumps on FreeBSD/Alpha 4.5-RELEASE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-alpha
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 27 14:50:02 PST 2002
>Closed-Date:    Thu Mar 28 11:15:54 PST 2002
>Last-Modified:  Thu Mar 28 11:15:54 PST 2002
>Originator:     Nicholas Paufler
>Release:        4.5-RELEASE
>Organization:
The Internet Centre
>Environment:
FreeBSD endor.incentre.net 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Tue Jan 29 07:52:50 GMT 2002     murray@axpbuilder.freebsdmall.com:/usr/src/sys/compile/GENERIC  alpha

>Description:
I just did an FTP install of 4.5-RELEASE onto an AlphaStation 400 4/233. The install went smoothly (save for the DEC network card causing the machine to hang while waiting for SCSI devices to settle) but now I am trying to get it into a more usable state.

I grabbed the cvsup-without-gui Alpha package and pkg_added it and attempted to use cvsup to update ports, but it core dumps:

npaufler@endor:/usr/local/etc> sudo cvsup ports-supfile


***
*** runtime error:
***    Value out of range
***    file "/tmp/a/ports/lang/ezm3/work/ezm3-1.0/libs/libm3/src/uid/Common/TimeStamp.m3", line 63
***

  use option @M3stackdump to get a stack trace
Abort trap (core dumped)



I've tried installing a few variant packages (cvsup.tgz, some versions from older -releases) but they all crash in the same manner.

Running it with the stack dump enabled as suggested gives the following:

npaufler@endor:/usr/local/etc> sudo cvsup @M3stackdump ports-supfile


***
*** runtime error:
***    Value out of range
***    file "/tmp/a/ports/lang/ezm3/work/ezm3-1.0/libs/libm3/src/uid/Common/TimeStamp.m3", line 63
***

------------------ EXCEPTION HANDLER STACK ---------------------
0x11ffa118 LOCK  mutex = 0x120190720
0x11ffa108 RAISES {}
0x11ffa1b8 RAISES {}
0x11ffb638 TRY-FINALLY  proc = 0x12002ea10   frame = 0x11ffa2f8
0x11ffb0c0 TRY-EXCEPT  {Main.Error}
0x11ffab48 TRY-EXCEPT  {Thread.Alerted}
----------------------------------------------------------------
Abort trap (core dumped)


>How-To-Repeat:
Install FreeBSD 4.5-RELEASE on an AlphaStation 400 4/233.
Install the cvsup (or cvsup-without-gui) package built for Alpha.
Try and cvsup using one of the supplied ports-supfile or stable-supfile.

cvsup will then core dump.
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: jdp 
State-Changed-When: Thu Mar 28 11:14:45 PST 2002 
State-Changed-Why:  
It turns out that the date on the machine in question was set to 
some time in the year 1912.  That caused an overflow in a Modula-3 
date calculation. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=36390 
>Unformatted:
