Article View: comp.sys.amiga.tech
Article #13994Manx SDB bug (second try)
From: Keith Doyle
Date: Fri, 02 Mar 1990 17:45
Date: Fri, 02 Mar 1990 17:45
88 lines
3089 bytes
3089 bytes
Hi,
I posted this note about a Manx 5.0 SDB problem I was experiencing, and
haven't yet seen any response. This could be because I posted it to
comp.sys.amiga, not comp.sys.amiga.tech, so I am reposting it here
in comp.sys.amiga.tech. Could someone who has a 1Meg Agnes quickly
check this out and help me determine if it is a real bug or something
about my Agnes that is screwy? Thanks.
Text of previous posting:
-----------------------------------------------------------
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. [still no word,
as of 2nd posting] They may call me back about it [someday], 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:
Example program seems to run ok, BUT,
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
Technical Details
Message-ID:
<16480@well.sf.ca.us>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!brutus.cs.uiuc.edu!apple!well!keithdShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!samsung!brutus.cs.uiuc.edu!apple!well!keithd From: keithd@well.sf.ca.us (Keith Doyle) Newsgroups: comp.sys.amiga.tech Subject: Manx SDB bug (second try) Message-ID: <16480@well.sf.ca.us> Date: 2 Mar 90 17:45:17 GMT Reply-To: keithd@well.UUCP (Keith Doyle) Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 88