Path: utzoo!attcan!uunet!aplcen!samsung!umich!umeecs!don From: don@zip.eecs.umich.edu (Don Winsor) Newsgroups: comp.lang.perl Subject: Re: Perl as a pocket calculator Message-ID: <2913@zipeecs.umich.edu> Date: 17 Jul 90 16:39:22 GMT References: <1990Jul15.210705.11140@agora.uucp> Organization: University of Michigan EECS Dept, Ann Arbor, MI Lines: 25 When running the one liner perl calculator described in this group, I sometimes get a weird "bad free()" error: % perl -pe 's/^.*$/(eval $&).$@/e;' sin(2) 0.90929742682568170942 sin(3.14159) Bad free() ignored, <> line 2. 2.6535897933527261422e-0 ^D % The system is a Sun Sparcstation-1 (4/60) running release 4.1 of Sun OS. The Perl was release 3.0, patchlevel 18, compiled with the standard Sun C compiler. I can replicate the problem on other Sun SPARC systems running 4.0.3 and 4.1 Sun OS, but it does not occur on Sun-3 (68020 CPU) or VAX systems. I suspect a bug in Sun OS or perl, but I'm not sure where to look at this point. Don Winsor Department of Electrical Engineering and Computer Science University of Michigan, Ann Arbor don@eecs.umich.edu