Bug 36390

Summary: cvsup core dumps on FreeBSD/Alpha 4.5-RELEASE
Product: Base System Reporter: Nicholas Paufler <echofox>
Component: alphaAssignee: freebsd-alpha (Nobody) <alpha>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.5-RELEASE   
Hardware: Any   
OS: Any   

Description Nicholas Paufler 2002-03-27 22:50:02 UTC
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.
Comment 1 John Polstra freebsd_committer freebsd_triage 2002-03-28 19:14:45 UTC
State Changed
From-To: open->closed

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.