[comp.protocols.appletalk] CAP atis segmentation fault

brian@natinst.com (Brian H. Powell) (08/04/89)

     We're running the CAP 5.0 software on a Sun 3/160 running SunOS 4.0.3.
We've had this problem for some time, under SunOS 4.0 and SunOS 4.0.1 and
maybe even SunOS 3.2 before that.

     Every now and then (about every month or so), our "atis" program dumps
core with a "signal 11, Segmentation fault."  I compiled "atis" (but not the
cap libraries) with the -g flag for debugging, and got a backtrace from the
core file:

#0  0x4c0c in do_ddp_chksum ()
#1  0x4a58 in ddp_protocol ()
#2  0x764e in kip_get ()
#3  0x69a4 in fdlistenread ()
#4  0x6f26 in abSelect ()
#5  0x6d68 in abSleep ()
#6  0x2bba in main (argc=1, argv=(char **) 0xeffffd4) (atis.c line 387)

     It looks like the "cnt" passed to do_ddp_chksum is bogus:

_do_ddp_chksum(0x231d8,0xfffffff5,0x1560) + 1a

     (cnt is the -11.)  This happens at the second call to "ddp_chksum" in
"ddp_protocol".  Could be a variety of problems, I suppose.

     I've looked at the code, but nothing leaps to mind.  I'm not exactly
familiar with this stuff.  Anybody have any ideas what could be going wrong?

Brian H. Powell					National Instruments Corp.
	brian@natinst.com			12109 Technology Blvd.
	uunet!cs.utexas.edu!natinst!brian	Austin, Texas 78727-6204
	AppleLink:NATINST			(512) 250-9119