[comp.sys.amiga] Possible Manx SDB 5.0 bug, request for reproduce

keithd@well.sf.ca.us (Keith Doyle) (02/23/90)

Hi,

Just discovered an apparent Manx 5.0 SDB bug, and have been interested in
hearing if anyone can reproduce it.  I called Manx, and reported it
to them, but they hadn't yet heard of such a problem.  They may call me 
back about it, but since it could be somehow unique to my hardware, an 
attempt to reproduce the bug on someone's similar configuration, could 
tell me if it's time to fix the hardware.

Configuration:

3MB Amiga 2000 with 1MB Agnes.  FD or HD doesn't matter, 68020 doesn't
matter.  

Symptom:

Resultant program seems to run ok, however,

When using SDB's single-step command "t" on this program, it works ok
until you get to the "strcpy", the next "t" command causes the display
to go black (and I mean black.  Don't think there is even a vert/horiz
sync).

If you edit out either of the assignment statements, it will work ok, or
(more importantly) if you replace your fat agnes with the original skinny 
agnes, the problem will go away as well.  Seems to be related to the fat 
agnes, or perhaps just *my* fat agnes (though it's been working for months
with everything else).  I seem to have a D-step part. (there's a little 
"D" stamped on it anyway).


Compile and link the included C program using the following commands:

	cc -ps -bs bugs.c
	ln -g bugs.o -lc16

Then do:

	sdb bugs

And finally, use the "t" command 3 or 4 times and see if it crashes 
after the strcpy, or if it exits normally.

If you are unable to reproduce this bug on a 2000 with a fat agnes,
please let me know, as I may be able to get another agnes to cure
the problem.  Otherwise, SDB has a real bug here, and its a serious
one as far as I'm concerned, as it seems like it may crop up elsewhere 
in unpredictable places, and running without the fat agnes or SDB is a 
real pain anymore.


---bugs.c--- cut here -----------------------------------------
/*
	sdb bugs
*/

#include <stdio.h>
#include <string.h>

char pstr[81];

main()
{
short i;
short j;

	j = 200;
	i = 480;
	strcpy(pstr,"Hello World\n");
	printf(pstr);
	exit(0);
}
----------end of bugs.c--------------------------------------------

Keith Doyle
well!keithd