Perl /Tk Test errors on Solaris 10 with perl-5.8.8

Peter Edwards peter at
Tue Nov 13 08:31:17 PST 2007

>Digging deeper has revealed the the code is core dumping and examination of
>the core shows that is occuring during memory operations

Yike. Sounds like linking with a safer malloc() is a good plan!

>From Perl man page
"Starting from perl 5.7.1 perl uses the Solaris malloc, since the perl
malloc breaks when dealing with more than 2GB of memory, and the Solaris
malloc also seems to be faster."

"If you for some reason (such as binary backward compatibility) really need
to use perl's malloc, you can rebuild perl from the sources and Configure
the build with"

 $ sh Configure -Dusemymalloc

"You should not use perl's malloc if you are building with gcc. There are
reports of core dumps, especially in the PDL module. The problem appears to
go away under -DDEBUGGING, so it has been difficult to track down. Sun's
compiler appears to be okay with or without perl's malloc. [XXX further
investigation is needed here.]"

Sounds scary ;-)

I'm not sure if you're using Sun Studio C or GNU C but this library looks
worth a shot to debug the problem:

A quick search threw up a few thread-safety type issues

Regards, Peter

More information about the MiltonKeynes-pm mailing list