Article View: alt.folklore.computers
Article #4215Re: Stupid programming errors.
From: mnyk...
Date: Wed, 05 Sep 1990 18:05
Date: Wed, 05 Sep 1990 18:05
22 lines
1736 bytes
1736 bytes
In article <Z38To4w162w@vector0>, jon@vector0 (A Product of Society) writes:
> class. I accidentally used puts(string) instead of fputs(string) ---
Ah, C I/O.. finishing up the project of my introductory C course, I
wrote a subroutine called write for printing out the results. I admit
that I should have been more imaginative.. As it happens, the standard
libraries (MSC 4.0) already had one which was used for all formatted
output, so the first printf caused stack overflow due to nonterminating
recursion.. This one took over a WEEK of my and my teachers' time
because the linker did NOT complain about the redefinition!
At another time I was programming an embedded telecommunications system
with Intel's PL/M-80. I defined a four-character string and initialized
it with five - Sloppy! A compiler error did NOT halt the batch file I
had and the linker happily linked the symbol table the compilation
produced but NO CODE. So my program had a "window" that showed the code
of the previously executed program; it was fun to debug a program which
abruptly started executing the stack segment of a neighboring process..
I dislike linkers.
--
Matti Nyk{nen CS Student at Helsinki U, Finland
Trepanation! email: mnyk...@cc.helsinki.fi
Technical Details
Message-ID:
<3060.26e53e83@cc.helsinki.fi>Path:
mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!sunic!news.funet.fi!hydra!hylka!mnykanenReferences:
<74@iconsys> <Z38To4w162w@vector0>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!sunic!news.funet.fi!hydra!hylka!mnykanen From: mnyk...@cc.helsinki.fi Newsgroups: alt.folklore.computers Subject: Re: Stupid programming errors. Message-ID: <3060.26e53e83@cc.helsinki.fi> Date: 5 Sep 90 18:05:55 GMT References: <74@iconsys> <Z38To4w162w@vector0> Organization: University of Helsinki Lines: 22 Posted: Wed Sep 5 19:05:55 1990 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit