home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!usenet.ucs.indiana.edu!acoma!shulick
- From: shulick@acoma.ucs.indiana.edu (Sam Hulick)
- Subject: IOT traps and/or bad zones on 680x0 series
- Message-ID: <Bxo7Ep.G5G@usenet.ucs.indiana.edu>
- Originator: shulick@acoma
- Sender: news@usenet.ucs.indiana.edu (USENET News System)
- Nntp-Posting-Host: acoma.ucs.indiana.edu
- Reply-To: shulick@acoma.ucs.indiana.edu
- Organization: Vallen Software
- Date: Fri, 13 Nov 1992 19:56:48 GMT
- Lines: 27
-
-
- Does anyone know of any abnormalties in free() on all 680x0 series
- machines? (i.e. 68000 CPU, 68030, etc.). I've noticed that my program,
- when run on a Sun or PC, generates no problems whatsoever. However,
- when run on an Amiga (68030 CPU) or a NeXT (68040), it crashes miserably
- with this error:
-
- memory allocation error: attempt to free or realloc space not in heap
- bad zone
- IOT trap
-
- And from what I've tried to debug and scan through, I see no possible
- errors. But what the program is doing is, declaring:
- char *varg[20];
-
- A function is called and is passed "varg", which is malloc()'d within
- said function. Upon quitting, I run througgh a loop 0-19 and
- free(varg[x]) where x is the 0-19 counter. But on free(varg[0]), a
- crash occurs.. only on the 680x0 machines. Just wondering.. any advice
- would be helpful, but please don't ask for the code. i've already
- distributed it to lots of locals. I'm just wondering why something
- would crash on a 68030 or 68040 but not on a Sun or PC (80386). Thanks.
-
- --
- Sam Hulick | "You can't discover new oceans unless you have the
- shulick@indiana.edu | courage to lose sight of the shore." --Anon.
- (NeXTmail welcome) |
-