🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: perl.perl6.internals.api.embed
Article #1

Re: Memory leak

#1
From: "H.Merijn Brand"
Date: Fri, 15 Oct 2004 23:46
19 lines
2694 bytes
On Fri 15 Oct 2004 22:32, cwu668@yahoo.com (PerlDiscuss - Perl Newsgroups and mailing lists) wrote:
> I need to embed Perl function in C program running as a daemon on Linux
> and Solaris. What it needs is to do pattern matching in Perl while it is

If pattern matching is your only goal, why not use PCRE?

ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/

> difficult in C. However, frequently calling either of functions eval_pv or
> perl_run would keep increasing the size of process. How come these
> functions don't release memory they use. I wonder if this is an existing
> bug in Perl5 or there is a smart way to handle this. Please help.

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using Perl 5.6.1, 5.8.0, 5.8.3, & 5.9.1  on HP-UX 10.20, 11.00 & 11.11,
  AIX 4.3, SuSE 9.0 pro 2.4.21 & Win2k.     http://www.cmve.net/~merijn
Smoking perl: smokers@perl.org,             perl QA: http://qa.perl.org
  reports to: smokers-reports@perl.org,                perl-qa@perl.org
Technical Details
Message-ID: <20041016014411.2AAD.H.M.BRAND@hccnet.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!nntp.perl.org
References: <20041015203207.15503.qmail@lists.develooper.com>

Show Full Headers
Complete Article Headers
Message-ID: <20041016014411.2AAD.H.M.BRAND@hccnet.nl>
Subject: Re: Memory leak
Date: Sat, 16 Oct 2004 01:46:09 +0200
From: h.m.brand@hccnet.nl ("H.Merijn Brand")
References: <20041015203207.15503.qmail@lists.develooper.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf9.newsdeef.eu!nntp.perl.org
Newsgroups: perl.perl6.internals.api.embed
Return-Path: <h.m.brand@hccnet.nl>
Mailing-List: contact perl6-internals-api-embed-help@perl.org; run by ezmlm
Delivered-To: mailing list perl6-internals-api-embed@perl.org
Delivered-To: moderator for perl6-internals-api-embed@perl.org
Received: (qmail 15236 invoked from network); 15 Oct 2004 23:47:51 -0000
Received: from x1.develooper.com (63.251.223.170)
Received: (qmail 15888 invoked by uid 225); 15 Oct 2004 23:47:51 -0000
Delivered-To: perl6-internals-api-embed@perl.org
Received: (qmail 15883 invoked by alias); 15 Oct 2004 23:47:50 -0000
X-Spam-Status: No, hits=-4.9 required=8.0
 tests=BAYES_00
X-Spam-Check-By: la.mx.develooper.com
Received: from relay01.active24.nl (HELO relay01.ladot.com) (217.22.66.36)
Received: from [10.3.3.49] (unknown [217.22.74.186])
 by relay01.ladot.com (Postfix) with ESMTP
To: cwu668@yahoo.com (PerlDiscuss - Perl Newsgroups and mailing lists)
Cc: perl6-internals-api-embed@perl.org
In-Reply-To: <20041015203207.15503.qmail@lists.develooper.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.06.02
Approved: news@nntp.perl.org