Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^2: Mini-Tutorial: Perl's Memory Management

by pid (Monk)
on Oct 29, 2009 at 08:44 UTC ( #803902=note: print w/ replies, xml ) Need Help??

in reply to Re: Mini-Tutorial: Perl's Memory Management
in thread Mini-Tutorial: Perl's Memory Management

Based on my very own experience, Perl-malloc-enabled Perl does cause the crash of xchat2(with the Perl plugin) on FreeBSD, the problem seems to be unsolved yet.


I mean, sometimes, you have to usemymalloc but Perl's. :-p

Comment on Re^2: Mini-Tutorial: Perl's Memory Management
Re^3: Mini-Tutorial: Perl's Memory Management (which malloc)
by tye (Cardinal) on Oct 29, 2009 at 17:31 UTC

    As a link:

    If you have Perl use the system's default malloc() calls, then you can get sloppy and use Perl's configured free() on stuff that some library malloc()d or pass Perl-malloc()d buffers to an external library that expects to be able to free() or realloc() the buffer.

    So some xchat hacker got sloppy and didn't keep straight what needed to be Perl-allocated and what needed to be OS-allocated.

    - tye        

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://803902]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2015-03-31 21:25 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (673 votes), past polls