Subject: Re: pkg/31250: running the self-test for devel/pcre leads to Signal 11
To: None <wiz@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: pkgsrc-bugs
Date: 09/13/2005 12:35:01
The following reply was made to PR pkg/31250; it has been noted by GNATS.

From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/31250: running the self-test for devel/pcre leads to Signal 11
Date: Tue, 13 Sep 2005 14:34:09 +0200

 This looks like a simple stack space issue. Changing the test code to:
 
   // Test that recursion is stopped: there will be some errors reported
   int matchlimit = 500;
   int bytes = 15 * 1024;  // enough to crash if there was no match limit
   TestRecursion(bytes, ".", matchlimit);
   TestRecursion(bytes, "a", matchlimit);
   ...
 
 makes it pass all tests. I have no idea if this is a sensible change though,
 what those values mean, nor what good values to put in there. Someone please
 ask the author for clarification.
 
 Martin