Newsgroups: comp.lang.perl Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!ira.uka.de!smurf!urlichs From: urlichs@smurf.sub.org (Matthias Urlichs) Subject: Re: "No memory" message in op/dbm test Message-ID: Date: Sun, 16 Jun 1991 13:23:02 Organization: University of Karlsruhe, FRG References: <1991Jun14.064604.18954@Daisy.EE.UND.AC.ZA> Lines: 20 In comp.lang.perl, article <1991Jun14.064604.18954@Daisy.EE.UND.AC.ZA>, barrett@Daisy.EE.UND.AC.ZA (Alan P Barrett) writes: < < $ perl op/dbm.t < 1..12 < [...] < ok 7 < No memory. < No memory. < No memory. < ok 8 Your malloc returns NIL when being asked for zero bytes of memory, and your DBM library doesn't like that (but doesn't die either). Workaround: use the Perl malloc. (On my machine, it's faster anyway.) -- Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\ Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49-721-621127(0700-2330) \o)/