Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!think.com!snorkelwacker.mit.edu!ira.uka.de!smurf!urlichs From: urlichs@smurf.sub.org (Matthias Urlichs) Newsgroups: comp.lang.perl Subject: Re: Perl 4.003 fails dbm test - HP 825, HP-UX 2.1 Keywords: Perl 4.003, HPUX, dbm test Message-ID: <=A_+TWB@smurf.sub.org> Date: 27 Apr 91 13:18:52 GMT References: <1991Apr26.114136.11077@pmsmam.uucp> <3127@sparko.gwu.edu> Organization: University of Karlsruhe, FRG Lines: 17 In comp.lang.perl, article <3127@sparko.gwu.edu>, rmccask@seas.gwu.edu (Randy McCaskill) writes: < < I had the same problem so I compiled it using Larry's malloc. It < passed the dbm test this way. It didn't really fix the problem, only < avoided it. If anyone knows of a better way, please post it. < The problem is that some mallocs return NULL when you allocate a zero-byte memory block. While that seems to be legal behavior, some dbm libraries can't cope with this. I don't have a good fix either. (However, the Perl malloc is faster anyway, at least on my machine.) -- Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\ Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49-721-621127(0700-2330) \o)/