home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / ultrix / 5872 < prev    next >
Encoding:
Internet Message Format  |  1992-07-24  |  1.3 KB

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