Subject: pkg/35182: TME sun3 emulator asserts when FTP getting large file
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <sigmfsk@aol.com>
List: pkgsrc-bugs
Date: 12/04/2006 13:45:00
>Number:         35182
>Category:       pkg
>Synopsis:       TME sun3 emulator asserts when FTP getting large file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Dec 04 13:45:00 +0000 2006
>Originator:     Arthur Townsend
>Release:        3.1
>Organization:
>Environment:
3.1 for i386
>Description:
TME asserts when ftp getting pkgsrc.tar from netbsd.org.  if changed to a print statement instead of assert, it prints a few times during the ftp, but the final .tar file is correct (same checksum).  I have not seen the problem other than than when ftping that file.

>How-To-Repeat:
Log into the emulator (running NetBSD 3.0 inside the emulator), then ftp get pkgsrc.tar from ftp.netbsd.org.
>Fix:
Just comment out the assert.  The resulting file will be correct.  Patch for ic/i825x6.c follows:


--- i825x6.c.orig       2006-11-16 14:11:51.000000000 -0500
+++ i825x6.c    2006-11-19 09:30:51.000000000 -0500
@@ -874,7 +874,16 @@
       }
 
       /* the Receive Unit must have no resources: */
+
+/* the first assert following always asserts when ftp getting pkgsrc.tar
+   from netbsd.org.  if changed to a print statement instead of assert
+   it prints a few times during the ftp, but the final .tar file is correct
+   (same checksum).  I have not seen the problem other than than when ftping
+   that file.
+
       assert (i825x6->tme_i825x6_rfd_address == TME_I825X6_RU_ADDRESS_UNDEF);
+*/
+
       assert (i825x6->tme_i825x6_rbd_offset_address == TME_I825X6_RU_ADDRESS_UNDEF);
       assert (i825x6->tme_i825x6_fbl == NULL && i825x6->tme_i825x6_fbl_size == 0);