New submission from Thermi <noel.kuntze+bugs-python-org@thermi.consulting>:

With Python 3.6.4 on Arch Linux, on three different hosts (one Skylake CPU, one 
i7-3820, one Xeon E5-2680, all running Arch Linux with the same Python 
version), the Python 3 interpreter behaves erratically in a script of mine.

The following symptoms occur:
1) Comparisons fail, although they logically need to succeed. The comparisons 
work a lot of the times, but sometimes, they don't.
2) Integers magically increase without ever being written to in the code after 
initially assigned in the constructor.

The behaviour changes if code is rearranged, variables and lines are added that 
do not pertain the broken comparisons, making accidental writes to memory or 
reads from unitialized memory likely.

The breakage occurs in the code between line 114 and the execution of the code 
in the recurse() method of the class Branch.

The script is here 
(https://gist.github.com/Thermi/05bc671436841670ac81b3b86217dd62). It basically 
only does some arithmetic with translation tables.

----------
components: Interpreter Core
messages: 309619
nosy: Thermi
priority: normal
severity: normal
status: open
title: Broken comparisons (probably caused by wrong caching of values)
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32510>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to