home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!destroyer!caen!nic.umass.edu!dime!giane.cs.umass.edu!patrick
- From: patrick@giane.cs.umass.edu (Patrick Healy)
- Newsgroups: comp.unix.ultrix
- Subject: problems with malloc
- Message-ID: <50836@dime.cs.umass.edu>
- Date: 24 Jul 92 15:47:08 GMT
- Sender: news@dime.cs.umass.edu
- Organization: University of Massachusetts, Amherst
- Lines: 25
-
-
- I'm running Ultrix 4.2 on a DEC 3100 and I'm having a difficult time with an
- unaligned access problem. I get a number of "Fixed unaligned access..."
- messages before the program finally dies. When I changed to GNU malloc() it
- crashes telling me "Block already on free list clobbered".
-
- According to sizeof() all my structs are multiples of 8 so I don't see why I'm
- getting these "unaligned access" messages. The guy on the Ultrix hotline
- tells me that I should go back and look at any place I'm casting things to
- (char *). That's all very fine but how do I do write functions to rearrange
- blocks of memory and the like then?
-
- I'd appreciate any leads on how people have solved these unaligned access
- problems. I suppose I'd also like to stick with the GNU memory manager since
- I'm told that it's better but I'm open to persuasion on that one.
-
- Thanks a lot,
- Pat.
-
-
- --
-
- ===============================================================================
- Patrick Healy: patrick@themis.cs.umass.edu
- Guest of: CS Department
-