awahlig / python-pcre

Python bindings for PCRE regex engine.
BSD 3-Clause "New" or "Revised" License
57 stars 12 forks source link

Segmentation fault #2

Closed friedelwolff closed 10 years ago

friedelwolff commented 10 years ago

I've installed python-pcre in virtual environments with "pip install -e" and seem to consistently get segmentation faults. I tried several Linux distributions, but all of them 64 bit systems.

I ran out of time to fix this, but thought I'll write a quick note here: it doesn't segfault if compiled without optimisation. So I guess some optimisation options of gcc is causing some problems.

awahlig commented 10 years ago

Yeah, I haven't tested on 64 bit system. Will have a look when I get a chance. Thanks.

awahlig commented 10 years ago

I made a lot of improvements recently. Can you test with the new codebase?

friedelwolff commented 10 years ago

I did a very quick test, and it doesn't crash with the segmentation fault any more. (I tested nothing beyond a basic .compile() and .findall() - but even these weren't working before.) Thanks a lot for this!