Article View: comp.os.os2.programmer
Article #212Strange trap in IBM C Set/2
From: Martin Erzberger
Date: Mon, 03 Aug 1992 11:19
Date: Mon, 03 Aug 1992 11:19
20 lines
1049 bytes
1049 bytes
Can anybody see what's wrong with the following piece of code? I cut it
down from a large utility which compiles and runs fine on a SUN.
With the IBM C Set/2 compiles, it generates a TRAP. Looking with the
debugger, the TRAP gets generated in the initialisation phase (I think
at the moment the library gets called to initialize).
When I remove any of the two declarations, the program will "run" (of
course it does nothing).
Now here the code:
#include <stdlib.h>
main(int argc, char *argv[])
{
char *test1 = NULL;
int test2[32768];
}
It's probably a compiler error, but I want to be shure before reporting
it.
Regards, Martin Erzberger
Technical Details
Message-ID:
<1992Aug3.111930.19189@ifi.unizh.ch>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!chx400!josef!erzbergShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!Sirius.dfn.de!chx400!josef!erzberg From: erzberg@ifi.unizh.ch (Martin Erzberger) Newsgroups: comp.os.os2.programmer Subject: Strange trap in IBM C Set/2 Message-ID: <1992Aug3.111930.19189@ifi.unizh.ch> Date: 3 Aug 92 11:19:30 GMT Organization: University of Zurich, Department of Computer Science Lines: 20