home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23096 < prev    next >
Encoding:
Text File  |  1993-01-07  |  1.9 KB  |  45 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!sun4nl!ruuinf!ruunfs.fys.ruu.nl!hooft
  3. From: hooft@fys.ruu.nl (Rob Hooft)
  4. Subject: Re: olvwm's WINMENU doesn't work.
  5. Message-ID: <1993Jan7.164107.24428@fys.ruu.nl>
  6. Organization: Physics Department, University of Utrecht, The Netherlands
  7. References: <1993Jan6.071555.20074@ccds3.ntu.edu.tw> <andrewc.726395885@aurora.cc.monash.edu.au>
  8. Date: Thu, 7 Jan 1993 16:41:07 GMT
  9. Lines: 34
  10.  
  11. In <andrewc.726395885@aurora.cc.monash.edu.au> andrewc@aurora.cc.monash.edu.au (Andrew J. Cosgriff !) writes:
  12.  
  13. >dhliu@solar.csie.ntu.edu.tw (Der-Hua Liu) writes:
  14.  
  15. >>When I add the WINMENU line, the olvwm generates the following message on the
  16. >>console:
  17. >>  
  18. >>    "Memory allocation problem"
  19. >>and olvwm and X server die.
  20.  
  21. >Yep. DIRMENU does the same, and you can't run X again until you take the line out
  22. >or use another window manager...
  23.  
  24. >There was a fix mentioned a while ago (no actual patch, just a 'where to look')
  25. >when I asked the same question, but I don't have it and never had time to do it then
  26.  
  27. >But i do now...Anyone remember what it was ?
  28. >(something to do with malloc(0) or something)
  29.  
  30. Recompile while making sure that stdlib.h is included in all
  31. source-files, and that NO_FIX_MALLOC is not defined. That is at least
  32. what I understood some time ago, it could have changed in the mean
  33. time. The bug results from trying to allocate 0 bytes of storage. GNU
  34. malloc denies this, and olvwm thinks there is no memory left.
  35.  
  36. In stdlib.h there is a 'malloc' macro, wich calls the malloc()
  37. function with an argument of 1 instead of 0 in this case. This kludge
  38. wastes a byte of memory, but seems to work.
  39.  
  40. -- 
  41. Rob W.W. Hooft,  Department of crystal and structural chemistry
  42. Bijvoet Center for Biomolecular Research, University of Utrecht
  43. The Netherlands ===== hooft@chem.ruu.nl (hooft@hutruu54.bitnet)
  44. ====Use a Real Operating System on your 386: Linux is FREE!====
  45.