[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread STINNER Victor
STINNER Victor added the comment: Antoine: "Actually, it's not the bug that is weird, but the heuristics in -R seem completely weird now. If I print the alloc and rc deltas:" I changed it recently to reduce false alarms: see bpo-30776. Antoine: "To come back to this bug, it still fails if ad

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: To come back to this bug, it still fails if add a __slots__, so I don't think it's related to shared key dictionaries. -- ___ Python tracker __

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: s/completely weird/broken/ $ ./python -m test -R 2:20 test_haypoleak Run tests sequentially 0:00:00 load avg: 0.10 [1/1] test_haypoleak beginning 22 repetitions 1234567890123456789012 .. alloc: [0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, it's not the bug that is weird, but the heuristics in -R seem completely weird now. If I print the alloc and rc deltas: $ ./python -m test -R 3:6 test_haypoleak Run tests sequentially 0:00:00 load avg: 0.09 [1/1] test_haypoleak beginning 9 repetition

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's a really weird bug you found. It depends on the exact values passed to -R: $ ./python -m test -R 3:6 test_haypoleak Run tests sequentially 0:00:00 load avg: 0.39 [1/1] test_haypoleak beginning 9 repetitions 123456789 . test_haypoleak leaked [1, 1,

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread STINNER Victor
STINNER Victor added the comment: I spent a lot of time in gdb, but I'm not sure anymore that the issue is related to dict shared keys. -- ___ Python tracker ___ ___

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread STINNER Victor
STINNER Victor added the comment: If you cannot reproduce the bug on 32-bit build, try to set "FIXED_HASH = 0" in test_leak.py, run "./python -m test -R 3:10 test_leak" multiple times until it fails, then copy the last value of the printed list into hash_values in test_leak.py. -- __

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file47111/test_leak.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31317] Memory leak in dict with shared keys

2017-08-31 Thread STINNER Victor
New submission from STINNER Victor: Copy attached test_leak.py to Lib/test/ and run: haypo@selma$ ./python -m test -R 3:30 test_leak Run tests in parallel using 1 child processes 0:00:00 load avg: 0.67 [1/1/1] test_leak failed beginning 33 repetitions 123456789012345678901234567890123 .