[New-bugs-announce] [issue24620] Segfault with nonsensical random state

Stefan Krah report at bugs.python.org
Sun Jul 12 21:19:24 CEST 2015

New submission from Stefan Krah:

While trying to find a possible cause for #24546, I came across this

Python 3.6.0a0 (default:02b81a82a57d, Jul 12 2015, 20:33:44) 
[GCC 4.8.4] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
>>> s = (3, (999999999999999,)*625, None)
>>> random.setstate(s)
>>> random.choice([1,2,3,4,5])
Segmentation fault (core dumped)

messages: 246661
nosy: mark.dickinson, rhettinger, skrah
priority: normal
severity: normal
status: open
title: Segfault with nonsensical random state

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list