This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Memory leaks and regexp



>>>>> "ccf::satchell" == ccf::satchell  <ccf> writes:

    ccf::satchell> On my system (Slackware 3.3 = linux 2.0.30), the
    ccf::satchell> following fragment leaks memory very fast. It may
    ccf::satchell> be a guile problem or a regex library problem, does
    ccf::satchell> everybody else have the same trouble or not, or is
    ccf::satchell> a leak expected?

    ccf::satchell> (let (( abc-rx (make-regexp "abc" ))) (do ((i 0))
    ccf::satchell> (#f ) (regexp-exec abc-rx "123" ) ) )

Older versions of guile (more than 6 months old)
had a memory leak with regexp. Current
snapshot should be fine.

Outside from Linux, SunOS 2.4 ships with a broken regexp library. You
must install another one.

--

B. Urban