Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!sics.se!sics.se!jw From: jw@sics.se (Johan Widen) Newsgroups: comp.lang.perl Subject: Re: perl 4.0 patch #1 Message-ID: <1991Apr18.090935.4492@sics.se> Date: 18 Apr 91 09:09:35 GMT References: <1991Apr13.183556.16756@jpl-devvax.jpl.nasa.gov> <1991Apr18.000041.16584@sics.se> Sender: news@sics.se Organization: Swedish Institute of Computer Science, Kista Lines: 39 In-Reply-To: jw@sics.se's message of Thu, 18 Apr 1991 00: 00:41 GMT >>>>> In article <1991Apr18.000041.16584@sics.se>, jw@sics.se (Johan Widen) writes: jw> I'm not sure, but it seems to me that the perl malloc() does not handle jw> the SunOS-4.1/SunOS-4.1.1 bug in tzload(). jw> Extract from bug report: jw> There is a bug in tzload(), called by ctime(), in SunOS 4.1. tzload() jw> calls allocall(), which malloc's n chars for the timezone string. Then, jw> tzload() writes a NULL into the n+1'th char. jw> I recommend using the standard sun malloc() (the one in libc) under jw> SunOS-4.1 SunOS-4.1.1, if in doubt. Ouch, I foolishly believed that the SunOS malloc() worked around the tzload() bug. But no, this is apparently not so. I got an email stating > I recommend using the standard sun malloc() (the one in libc) under > SunOS-4.1 SunOS-4.1.1, if in doubt. > >This is, ultimately, doomed. > >Had Sun been on the ball many moons ago, they'd have chased the GNU >emacs core dump (malloc abort) to their own bug. Instead, they hid >their heads in the sand after noticing that their own malloc didn't >abort (only because it doesn't have the same sanity checks as GNU >malloc). > >Later on, that bit many Sun customers; rpc.mountd dumps core because >of the localtime bug, SunOS malloc and all. > >My own recommendation is to install fixed localtime.o in /lib/libc.a >and /lib/libc.so.* (that's what I did). As far as I know, these are >not yet available from Sun, but a helpful person with SunOS source has >made fixed localtime.o available. -- Johan Widen SICS, PO Box 1263, S-164 28 KISTA, SWEDEN Internet: jw@sics.se Tel: +46 8 752 15 32 Ttx: 812 61 54 SICS S Fax: +46 8 751 72 30