[Bug 1711724] Re: Segfaults with dict
Simon Déziel
1711724 at bugs.launchpad.net
Thu Sep 7 22:08:53 UTC 2017
On Zesty, before with python3.6:
$ python3.6 /tmp/bpo-27945.py
Segmentation fault
After applying 3.6.1-1ubuntu0~17.04.0:
$ python3.6 /tmp/bpo-27945.py
Traceback (most recent call last):
File "/tmp/bpo-27945.py", line 7, in <module>
for result in d.items():
RuntimeError: dictionary changed size during iteration
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module>
from apport.report import Report
File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module>
import apport.fileutils
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module>
from apport.packaging_impl import impl as packaging
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24, in <module>
import apt
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Original exception was:
Traceback (most recent call last):
File "/tmp/bpo-27945.py", line 7, in <module>
for result in d.items():
RuntimeError: dictionary changed size during iteration
The except hook error is unrelated.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.5 in Ubuntu.
https://bugs.launchpad.net/bugs/1711724
Title:
Segfaults with dict
Status in python3.5 package in Ubuntu:
Invalid
Status in python3.6 package in Ubuntu:
Fix Released
Status in python3.5 source package in Xenial:
Fix Committed
Status in python3.6 source package in Xenial:
Invalid
Status in python3.5 source package in Zesty:
In Progress
Status in python3.6 source package in Zesty:
Fix Committed
Bug description:
In certain situations python3.5 will segfault. This bug is confirmed
and fixed upstream in Python 3.5.4
http://bugs.python.org/issue27945
[Test Case]
1. download attached bpo-27945.py
2. run: python3.5 bpo-27945.py
If it does not segfault, the bug is fixed.
[Regression Potential]
The fix has been shown to introduce a minor performance hit for dictionaries in general.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.5/+bug/1711724/+subscriptions
More information about the foundations-bugs
mailing list