[issue27547] Crash or freeze trying to execute b'a' * 0xFFFFFFFFFFFFFFF

2021-06-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Concur with Martin. Most likely it is an OS bug, the same as issue5614.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Malloc errors in test_io

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27547] Crash or freeze trying to execute b'a' * 0xFFFFFFFFFFFFFFF

2021-06-21 Thread Irit Katriel


Irit Katriel  added the comment:

I get a MemoryError on Windows 10:

>>> float(array.array("L",b"a"*0xFFF+10**80))
Traceback (most recent call last):
  File "", line 1, in 
MemoryError
>>>

--
nosy: +iritkatriel

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue27547] Crash or freeze trying to execute b'a' * 0xFFFFFFFFFFFFFFF

2016-07-22 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Crash reports should include the minimum code needed to produce the crash.  
Adding function calls that never happen because the arguments cannot be 
computed adds noise that obscures the problem.  Here, b"a"*0xFFF 
would require more memory that any current computer has.  Float and array are 
irrelevant.  On Windows, it freezes python.  A MemoryError would be nicer, but 
this may be "won't fix".

--
nosy: +terry.reedy
title: Integer Overflow Crash On float(array.array()) -> Crash or freeze trying 
to execute b'a' * 0xFFF

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com