Resending to the list. On Fri, Sep 04, 2009 at 08:29:59PM +0300, Ville Laurikari wrote: > Hi, > > I bet you're running a 64-bit Ubuntu. I found the bug in the Python > wrapper which can cause a crash like this. > > The patch is simple: > http://laurikari.net/cgi-bin/darcsweb.cgi?r=tre-stable;a=commitdiff;h=20090904171748-ced27-681b87142937f3f01da7fb60d7787e254d000038.gz > > diff -rN -u old-stable/python/tre-python.c > new-stable/python/tre-python.c > --- old-stable/python/tre-python.c 2009-09-04 20:29:08.000000000 +0300 > +++ new-stable/python/tre-python.c 2009-09-04 20:29:08.000000000 +0300 > @@ -471,7 +471,7 @@ > { > TrePatternObject *rv; > char *pattern; > - size_t pattlen; > + int pattlen; > int cflags = 0; > int rc; > > Does this patch fix your problem? > > > On Fri, Sep 04, 2009 at 12:36:34AM -0700, Beau Hartshorne wrote: > > i've got a fresh ubuntu 9 install, and tried to do something like: > [clip] > > >>> pt = tre.compile("(foo)(bar)", tre.EXTENDED) > > Segmentation fault > > > > any idea why i'm getting a segfault here? i tried this with python2.6 > > and python2.5. (i get the same segfault if i just run python > > example.py.) >
-- http://laurikari.net/ville/ _______________________________________________ TRE-general mailing list tre-general@laurikari.net http://laurikari.net/mailman/listinfo/tre-general http://laurikari.net/tre/