unsymbolized MSAN stack traces #167

issue fanquake openend this issue on January 26, 2024
  1. fanquake commented at 1:57 pm on January 26, 2024: member

    See https://github.com/bitcoin-core/qa-assets/runs/20812716141:

     0+ '[' true = true ']'
     1+ LD_LIBRARY_PATH=/ci_container_base/depends/x86_64-pc-linux-gnu/lib
     2+ test/fuzz/test_runner.py -j6 -l DEBUG /ci_container_base/ci/scratch/qa-assets/fuzz_seed_corpus/ --empty_min_time=60
     3==29805==WARNING: MemorySanitizer: use-of-uninitialized-value
     4    [#0](/bitcoin-core-qa-assets/0/) 0x55ef079a6060  (/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1093060)
     5    [#1](/bitcoin-core-qa-assets/1/) 0x55ef0718b823  (/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x878823)
     6    [#2](/bitcoin-core-qa-assets/2/) 0x55ef071b9b12  (/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x8a6b12)
     7    [#3](/bitcoin-core-qa-assets/3/) 0x7fd0ab3e9d8f  (/lib/x86_64-linux-gnu/libc.so.6+0x29d8f) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
     8    [#4](/bitcoin-core-qa-assets/4/) 0x7fd0ab3e9e3f  (/lib/x86_64-linux-gnu/libc.so.6+0x29e3f) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
     9    [#5](/bitcoin-core-qa-assets/5/) 0x55ef0717e834  (/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x86b834)
    10
    11  Member fields were destroyed
    12    [#0](/bitcoin-core-qa-assets/0/) 0x55ef0724925d  (/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x93625d)
    13    [#1](/bitcoin-core-qa-assets/1/) 0x55ef09320bb9  (/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x2a0dbb9)
    14    [#2](/bitcoin-core-qa-assets/2/) 0x55ef0717e664  (/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x86b664)
    15    [#3](/bitcoin-core-qa-assets/3/) 0x7fd0ab3e9eba  (/lib/x86_64-linux-gnu/libc.so.6+0x29eba) (BuildId: c289da5071a3399de893d2af81d6a30c62646e1e)
    16
    17SUMMARY: MemorySanitizer: use-of-uninitialized-value (/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz+0x1093060) 
    18Exiting
    19Traceback (most recent call last):
    20  File "/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/fuzz/test_runner.py", line 382, in <module>
    21    main()
    22  File "/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/fuzz/test_runner.py", line 106, in main
    23    test_list_all = parse_test_list(fuzz_bin=os.path.join(config["environment"]["BUILDDIR"], 'src', 'test', 'fuzz', 'fuzz'))
    24  File "/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/test/fuzz/test_runner.py", line 369, in parse_test_list
    25    test_list_all = subprocess.run(
    26  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    27    raise CalledProcessError(retcode, process.args,
    28subprocess.CalledProcessError: Command '/ci_container_base/ci/scratch/build/bitcoin-x86_64-pc-linux-gnu/src/test/fuzz/fuzz' returned non-zero exit status 1.
    

    llvm-symbolizer is built and installed into /usr/bin https://cirrus-ci.com/task/5482198250291200?logs=ci#L6085:

    0 + update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /msan/clang_build/bin/llvm-symbolizer 100
    1update-alternatives: using /msan/clang_build/bin/llvm-symbolizer to provide /usr/bin/llvm-symbolizer (llvm-symbolizer) in auto mode
    

    I guess we also need to set MSAN_SYMBOLIZER_PATH.

  2. fanquake closed this on Jan 26, 2024

  3. fanquake referenced this in commit 6bacd11b09 on Jan 26, 2024


fanquake


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/qa-assets. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 09:25 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me