You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
segmentation fault on calling __reversed__() #83849
➜ cpython git:(24dc2f8) ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'
➜ cpython git:(24dc2f8) git checkout HEAD~1
Previous HEAD position was 24dc2f8bpo-38525: Fix a segmentation fault when using reverse iterators of empty dict (GH-16846)
HEAD is now at 88eeda6 Remove doc reference to unmaitained Nose package (GH-16849)
➜ cpython git:(88eeda6) make -s -j4 2> /dev/null
➜ cpython git:(88eeda6) ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'
[1] 36178 segmentation fault ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'
GrzegorzKraso commented on Feb 18, 2020
GrzegorzKrasomannequin
MannequinAuthor
More actions
Python 3.8.0 (default, Oct 23 2019, 18:51:26) [GCC 9.2.0] on linux
Linux anarchy 4.19.91-1-lts #1 SMP Sat, 21 Dec 2019 16:34:46 +0000 x86_64 GNU/Linux
Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
Activity
GrzegorzKraso commentedon Feb 17, 2020
This causes segmentation fault:
list((lambda: None).__annotations__.__reversed__())
rhettinger commentedon Feb 18, 2020
This works fine for me on macOS using the python.org 64-bit build.
What are you using?
tirkarthi commentedon Feb 18, 2020
This could be fixed with 24dc2f8 bpo-38525
➜ cpython git:(24dc2f8) ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'
➜ cpython git:(24dc2f8) git checkout HEAD~1
Previous HEAD position was 24dc2f8 bpo-38525: Fix a segmentation fault when using reverse iterators of empty dict (GH-16846)
HEAD is now at 88eeda6 Remove doc reference to unmaitained Nose package (GH-16849)
➜ cpython git:(88eeda6) make -s -j4 2> /dev/null
➜ cpython git:(88eeda6) ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'
[1] 36178 segmentation fault ./python.exe -c 'list((lambda: None).__annotations__.__reversed__())'
GrzegorzKraso commentedon Feb 18, 2020
Python 3.8.0 (default, Oct 23 2019, 18:51:26) [GCC 9.2.0] on linux
Linux anarchy 4.19.91-1-lts #1 SMP Sat, 21 Dec 2019 16:34:46 +0000 x86_64 GNU/Linux
Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
tirkarthi commentedon Feb 18, 2020
Can you please try and update to 3.8.1? It should be fixed there.
GrzegorzKraso commentedon Feb 18, 2020
I confirm. 3.8.1 is fixed. Thank you and sorry for bothering.
tirkarthi commentedon Feb 18, 2020
No problem, closing it as duplicate of bpo-38525.