[New-bugs-announce] [issue36218] .sort() segfaults consistently on crafted input

Lyn Levenick report at bugs.python.org
Wed Mar 6 16:54:32 EST 2019


New submission from Lyn Levenick <lyn.levenick at gmail.com>:

Running Python 3.7.2, it is possible to segfault the process when sorting some arrays.

Executed commands are

    $ python3
    Python 3.7.2 (default, Feb 12 2019, 08:15:36) 
    [Clang 10.0.0 (clang-1000.11.45.5)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> [(1.0, 1.0), (False, "A"), 6].sort()
    Segmentation fault: 11

I did not have the opportunity to test on systems other than macOS, but anecdotally this is reproducible on both Windows and Linux.

----------
messages: 337341
nosy: Lyn Levenick
priority: normal
severity: normal
status: open
title: .sort() segfaults consistently on crafted input
type: crash
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36218>
_______________________________________


More information about the New-bugs-announce mailing list