Python Coredump on FreeBSD
Master of the Unixverse
ah at abraxas.devsoft.com
Mon May 12 16:15:46 EDT 2003
In article <ox2cnT5extyQQCKjXTWcpg at speakeasy.net>, A.M. Kuchling wrote:
> On Mon, 12 May 2003 16:20:08 +0200,
> Harald Schneider <h_schneider at marketmix.com> wrote:
>> When I call
>> re.compile(.......).search(.....)
>> in sequence a few times, then the regular expression module re causes this
>> coredump. It's implementation must differ from other platforms. It looks
>
> What is the pattern being compiled, and how large is the string being
> searched? There are patterns that consume a lot of C stack space while
> searching. There's a fixed recursion limit that's intended to prevent core
> dumps, and it's possible the recursion limit is set incorrectly for FreeBSD.
The application is multithreaded and there is indeed a "problem" with
threads on FreeBSD vs. Linux here: the default stacksize that a thread
gets is different bewteen Linux and FreeBSD. Linux threads have more
default stacksize. No idea about Windows. So this may very well be
the reason.
Anton Hartl, ah AT muc DOT de
More information about the Python-list
mailing list