Description of problem: Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Start 'python' 2. In the interactive prompt, type: import re2 re2.search('foo', 'foobar') You get: “python” terminated by signal SIGSEGV (Address boundary error) Actual results: Expected results: Additional info: In gdb: gdb python GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-80.el7 Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> [^] This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... [^] Reading symbols from /usr/bin/python2.7...Reading symbols from /usr/bin/python2.7...(no debugging symbols found)...done. (no debugging symbols found)...done. Missing separate debuginfos, use: debuginfo-install python-2.7.5-34.el7.x86_64 (gdb) run Starting program: /bin/python [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Python 2.7.5 (default, Nov 20 2015, 02:00:19) [GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re2 >>> re2.search('foo', 'foobar') Program received signal SIGSEGV, Segmentation fault. 0x00007fffeff8dde0 in _compile(_object*, _object*, _object*) () from /usr/lib64/python2.7/site-packages/_re2.so (gdb) bt #0 0x00007fffeff8dde0 in _compile(_object*, _object*, _object*) () from /usr/lib64/python2.7/site-packages/_re2.so #1 0x00007ffff7af5aa4 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0 #2 0x00007ffff7af5860 in PyEval_EvalFrameEx () from /lib64/libpython2.7.so.1.0 #3 0x00007ffff7af70bd in PyEval_EvalCodeEx () from /lib64/libpython2.7.so.1.0 #4 0x00007ffff7af71c2 in PyEval_EvalCode () from /lib64/libpython2.7.so.1.0 #5 0x00007ffff7b105ff in run_mod () from /lib64/libpython2.7.so.1.0 #6 0x00007ffff7b126b0 in PyRun_InteractiveOneFlags () from /lib64/libpython2.7.so.1.0 #7 0x00007ffff7b1289e in PyRun_InteractiveLoopFlags () from /lib64/libpython2.7.so.1.0 #8 0x00007ffff7b12f2e in PyRun_AnyFileExFlags () from /lib64/libpython2.7.so.1.0 #9 0x00007ffff7b23b9f in Py_Main () from /lib64/libpython2.7.so.1.0 #10 0x00007ffff6d50b15 in __libc_start_main () from /lib64/libc.so.6 #11 0x0000000000400721 in _start () (gdb) Also reported in https://bugs.centos.org/view.php?id=11220 This upstream changeset should fix the issue: https://github.com/facebook/pyre2/commit/97d175fe93ca61711024fbc2c71d03bced12236e
Created attachment 1207820 [details] Add a C++11 patch so segfaulting no longer happens
Created attachment 1207835 [details] Add a C++11 patch so segfaulting no longer happens -- with version bump and changelog change
Sid, would you consider making a new upstream release?
Yep. I can confirm this... I'm happy to carry a patch, unless another upstream release is going to happen soon?
1.0.5 is out, thanks to sid0 :-) Note that there are hashes in the URL's on pypi now, so you can't just change the version to 1.0.5. The 1.0.5 url is now https://pypi.python.org/packages/d3/6a/c52f8ba9a871a441dbfbb07b683b1e9f779c10924213d3fc1bb71b6055bb/fb-re2-1.0.5.tar.gz#md5=353846c025a1d4b1c00320994a7cee3d . pypi.io does work: https://pypi.io/packages/source/f/fb-re2/fb-re2-1.0.5.tar.gz
And you got it updated already. ;) Thanks!
python-re2-1.0.5-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-8205324ce4
python-re2-1.0.5-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6a6e318934
python-re2-1.0.5-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-299a74d424
python-re2-1.0.5-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-57a9492885
python-re2-1.0.5-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.
python-re2-1.0.5-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
python-re2-1.0.5-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
python-re2-1.0.5-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.