Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python crashes on re.search in new regex module. #63521

Closed
cronkd mannequin opened this issue Oct 21, 2013 · 2 comments
Closed

Python crashes on re.search in new regex module. #63521

cronkd mannequin opened this issue Oct 21, 2013 · 2 comments
Labels
topic-regex type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@cronkd
Copy link
Mannequin

cronkd mannequin commented Oct 21, 2013

BPO 19322
Nosy @ned-deily, @ezio-melotti

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2013-10-21.04:51:23.936>
created_at = <Date 2013-10-21.03:26:24.140>
labels = ['expert-regex', 'invalid', 'type-crash']
title = 'Python crashes on re.search in new regex module.'
updated_at = <Date 2013-10-21.04:51:23.923>
user = 'https://bugs.python.org/cronkd'

bugs.python.org fields:

activity = <Date 2013-10-21.04:51:23.923>
actor = 'ned.deily'
assignee = 'none'
closed = True
closed_date = <Date 2013-10-21.04:51:23.936>
closer = 'ned.deily'
components = ['Regular Expressions']
creation = <Date 2013-10-21.03:26:24.140>
creator = 'cronkd'
dependencies = []
files = []
hgrepos = []
issue_num = 19322
keywords = []
message_count = 2.0
messages = ['200690', '200695']
nosy_count = 4.0
nosy_names = ['ned.deily', 'ezio.melotti', 'mrabarnett', 'cronkd']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue19322'
versions = ['Python 2.7']

@cronkd
Copy link
Mannequin Author

cronkd mannequin commented Oct 21, 2013

Python crashes while executing the following code using the new regex module. Have I made a mistake?

import regex as re
rx = re.compile(r'\bt(est){i<2}', flags=re.V1)
print "Prints here"
rx.findall("Some text") # Python crashes
print "Fails to print"

I get the same results using 64-bit and 32-bit Python on Windows 7 (64bit) when using regex-2013-10-04 and regex-2013-08-04. However, the code does not crash when using regex-2013-03-11.

@cronkd cronkd mannequin added topic-regex type-crash A hard crash of the interpreter, possibly with a core dump labels Oct 21, 2013
@ned-deily
Copy link
Member

The regex module is a third-party project and is not part of the Python standard library. I suggest you open an issue on the issue tracker for the project and include more detailed information about the problem:

https://code.google.com/p/mrab-regex-hg/
https://pypi.python.org/pypi/regex

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-regex type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant