[issue43662] test_tools: test_reindent_file_with_bad_encoding() fails RHEL7 on x86-64 and s390x with GCC 4.8.5 and LTO

STINNER Victor report at bugs.python.org
Mon Mar 29 17:43:18 EDT 2021


STINNER Victor <vstinner at python.org> added the comment:

vstinner at python-builder-rhel7$ echo|PYTHONMALLOC=malloc valgrind ./python Tools/scripts/reindent.py 
==26374== Memcheck, a memory error detector
==26374== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==26374== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==26374== Command: ./python Tools/scripts/reindent.py
==26374== 
==26374== Conditional jump or move depends on uninitialised value(s)
==26374==    at 0x4C305ED: __memcmp_sse4_1 (vg_replace_strmem.c:1112)
==26374==    by 0x5D0BCF: get_coding_spec.100964 (tokenizer.c:165)
==26374==    by 0x5D4C1B: check_coding_spec.part.6.100980 (tokenizer.c:214)
==26374==    by 0x5D213A: check_coding_spec (tokenizer.c:212)
==26374==    by 0x5D213A: tok_underflow_file.101007 (tokenizer.c:966)
==26374==    by 0x5D248D: tok_nextc.101010 (tokenizer.c:1031)
==26374==    by 0x5D2C80: tok_get.101023 (tokenizer.c:1213)
==26374==    by 0x5D4632: PyTokenizer_Get (tokenizer.c:1872)
==26374==    by 0x648E4C: _PyPegen_fill_token (pegen.c:633)
==26374==    by 0x6494D9: _PyPegen_expect_token (pegen.c:832)
==26374==    by 0x667497: _tmp_15_rule.137241 (parser.c:19552)
==26374==    by 0x649488: _PyPegen_lookahead (pegen.c:823)
==26374==    by 0x64EC04: compound_stmt_rule.138437 (parser.c:2008)
==26374== 
==26374== Conditional jump or move depends on uninitialised value(s)
==26374==    at 0x5D0BD2: get_coding_spec.100964 (tokenizer.c:165)
==26374==    by 0x5D4C1B: check_coding_spec.part.6.100980 (tokenizer.c:214)
==26374==    by 0x5D213A: check_coding_spec (tokenizer.c:212)
==26374==    by 0x5D213A: tok_underflow_file.101007 (tokenizer.c:966)
==26374==    by 0x5D248D: tok_nextc.101010 (tokenizer.c:1031)
==26374==    by 0x5D2C80: tok_get.101023 (tokenizer.c:1213)
==26374==    by 0x5D4632: PyTokenizer_Get (tokenizer.c:1872)
==26374==    by 0x648E4C: _PyPegen_fill_token (pegen.c:633)
==26374==    by 0x6494D9: _PyPegen_expect_token (pegen.c:832)
==26374==    by 0x667497: _tmp_15_rule.137241 (parser.c:19552)
==26374==    by 0x649488: _PyPegen_lookahead (pegen.c:823)
==26374==    by 0x64EC04: compound_stmt_rule.138437 (parser.c:2008)
==26374==    by 0x64DE4A: statement_rule.138374 (parser.c:1365)
==26374== 
==26374== 
==26374== HEAP SUMMARY:
==26374==     in use at exit: 406,507 bytes in 4,293 blocks
==26374==   total heap usage: 63,558 allocs, 59,265 frees, 9,156,496 bytes allocated
==26374== 
==26374== LEAK SUMMARY:
==26374==    definitely lost: 0 bytes in 0 blocks
==26374==    indirectly lost: 0 bytes in 0 blocks
==26374==      possibly lost: 390,522 bytes in 4,213 blocks
==26374==    still reachable: 15,985 bytes in 80 blocks
==26374==         suppressed: 0 bytes in 0 blocks
==26374== Rerun with --leak-check=full to see details of leaked memory
==26374== 
==26374== Use --track-origins=yes to see where uninitialised values come from
==26374== For lists of detected and suppressed errors, rerun with: -s
==26374== ERROR SUMMARY: 16322 errors from 2 contexts (suppressed: 0 from 0)

----------

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


More information about the Python-bugs-list mailing list