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
namedtuple's exec() throws segmentation fault #78720
Comments
I was working on a library called rows[https://github.com/turicas/rows] when a segmentation fault was thrown in the moment I've tried to read a CSV file. Since this part of the code is implemented completely in Python, I thought it could be a bug in Python itself.
The code works if I:
I've tested the code on Python 3.6.6, 3.7.0, 3.7-dev and 3.8-dev (versions installed using pyenv on a Debian GNU/Linux machine) and the problem happened only in 3.7.0. |
The works for me. Can you try it on a fresh build or install of Python 3.7? |
I've cloned the cpython git repository and made fresh builds here: On v.3.6.6 (4cf1f54) it works: $ git checkout v3.6.6 && ./configure && make && ./python --version && ./python namedtuple_bug.py
[...compilation lines supressed...]
Python 3.6.6 On the v.3.7.0 (1bf9cc5) it segfaults: $ git checkout v3.7.0 && make clean && ./configure && make && ./python --version && ./python namedtuple_bug.py
[...compilation lines supressed...]
Python 3.7.0
Segmentation fault On the most recent 3.7 branch (65ef742) it works: $ git checkout 3.7 && make clean && ./configure && make && ./python --version && ./python namedtuple_bug.py
[...compilation lines supressed...]
Python 3.7.0+ On master branch (2c8ddcf) it also works: $ git checkout master && make clean && ./configure && make && ./python --version && ./python namedtuple_bug.py
[...compilation lines supressed...]
Python 3.8.0a0 Note: I've tried to add a |
If this is only present in 3.7.0 and not in the current branches, it implies there was an exec() or ceval-loop bug in that release and it has been already fixed. This bug report may be out-of-date. |
Yes, I think it was fixed in https://bugs.python.org/issue34087 (didn't see the commits), I just wanted to report it because I don't know if a test for this specific case is needed (the other bug is not related to namedtuples). |
Thanks Álvaro for the report and script. As part of triaging I am closing this as out of date since this bug seemed to have been fixed with bpo-34087 and is not reproducible on latest master and 3.7 branch. Feel free to reopen this if needed. Thanks again! |
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: