🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #3453

Lattice C question

#3453
From: David Ewing
Date: Fri, 04 May 1990 23:37
35 lines
1651 bytes
I am experiencing an unusual run-time error on a relatively simple 
program I wrote using Lattice C 5.04.

At the end of my program, I get a Software Error-task held window
followed by various Guru messages :

    #00000003.00C39620 -- Address Error  (usually)
    #00000004.00C39E38 -- Illegal Instruction  (occassionally)
    #0000000B.00C39628 -- Opcode 111 (once)
    
My code resides between 00C70CCC - 00C718D2, so these addresses
are outside the code itself. My program does not use any Amiga 
specific routines.  It currently just uses stdio to and from the 
shell window. 

I added the following debug statement at the end of main and it does
get printed:

main()
{
 ...
 printf("reached the end of the program\n");
}

I even tried putting an exit(1) statement as the last statement in
main, but it still gurus. There aren't even any files being
accessed !  

I realize this isn't much to go on but does anybody have any ideas ?
Note : the program conists of just one source file and one header
file compiled and linked as follows -- lc -Lm file.c.

Please email to ewing@se-sd.sandiego.ncr.com.
Thanks,
Dave Ewing
Technical Details
Message-ID: <2865@se-sd.SanDiego.NCR.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!emory!hubcap!ncrcae!ncr-sd!se-sd!ewing

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!emory!hubcap!ncrcae!ncr-sd!se-sd!ewing
From: ewing@se-sd.SanDiego.NCR.COM (David Ewing)
Newsgroups: comp.sys.amiga.tech
Subject: Lattice C question
Summary: strange error at end of main
Message-ID: <2865@se-sd.SanDiego.NCR.COM>
Date: 4 May 90 23:37:21 GMT
Reply-To: ewing@se-sd.SanDiego.NCR.COM (David Ewing)
Distribution: na
Organization: NCR Corporation, Systems Engineering - San Diego
Lines: 35