[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] a memory issue; mildly scaring to me

From: Peter Bex
Subject: Re: [Chicken-users] a memory issue; mildly scaring to me
Date: Mon, 26 Sep 2011 15:26:59 +0200
User-agent: Mutt/

On Mon, Sep 26, 2011 at 03:16:07PM +0200, Jörg F. Wittenberger wrote:
> >While it does not fix the problem at hand:
> >
> >There is a suspicious line in regex-core.scm 2222:
> >
> >it reads:
> >
> >   (printing or graphic whitespace)
> >
> >IMHO it should read:
> >
> >   (printing . (or graphic whitespace))
> BTW: I know that those are the same.  It's just confusing the reader,
> when the same list is written both styles.

Maybe. This can be fixed, but it's not the issue here.

> Ah: since parameter checking might be off in the chicken core (is it?),
> what would happen, if we use a parameter, which has not been passed?
> Might that be the uninitialized value from a stack allocation, which
> I see from valgrind?
> What should be done?

Why don't you try your regex code with upstream irregex itself?

Just (load "irregex.scm") and then run your regex match.
Then it will run with all checks enabled, at slow speed, but at least
it'll fail when something is broken.

All this speculation is kind of pointless without a proper testcase.

"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

reply via email to

[Prev in Thread] Current Thread [Next in Thread]