(Comment about job
-function further up)
Suggested logging improvement in commit 3dd6ef5c174ce36119660cd2ccc82ab09d82300b, here tested with early leak-detection still enabled.
Before
0Generating corpus to foo
1Running '['/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz', '-rss_limit_mb=8000', '-max_total_time=10', '-reload=0', '-use_value_profile=0', PosixPath('foo/addition_overflow')]'
2Traceback (most recent call last):
3 File "/home/hodlinator/bitcoin/build_fuzz/test/fuzz/test_runner.py", line 412, in <module>
4 main()
5 File "/home/hodlinator/bitcoin/build_fuzz/test/fuzz/test_runner.py", line 180, in main
6 return generate_corpus(
7 ^^^^^^^^^^^^^^^^
8 File "/home/hodlinator/bitcoin/build_fuzz/test/fuzz/test_runner.py", line 291, in generate_corpus
9 future.result()
10 File "/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/lib/python3.12/concurrent/futures/_base.py", line 449, in result
11 return self.__get_result()
12 ^^^^^^^^^^^^^^^^^^^
13 File "/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/lib/python3.12/concurrent/futures/_base.py", line 401, in __get_result
14 raise self._exception
15 File "/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/lib/python3.12/concurrent/futures/thread.py", line 58, in run
16 result = self.fn(*self.args, **self.kwargs)
17 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 File "/home/hodlinator/bitcoin/build_fuzz/test/fuzz/test_runner.py", line 262, in job
19 subprocess.run(
20 File "/nix/store/wfbjq35kxs6x83c3ncpfxdyl5gbhdx4h-python3-3.12.6/lib/python3.12/subprocess.py", line 571, in run
21 raise CalledProcessError(retcode, process.args,
22subprocess.CalledProcessError: Command '['/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz', '-rss_limit_mb=8000', '-max_total_time=10', '-reload=0', '-use_value_profile=0', PosixPath('foo/addition_overflow')]' returned non-zero exit status 77.
After
0Generating corpus to foo
1Running '['/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz', '-rss_limit_mb=8000', '-max_total_time=10', '-reload=0', '-use_value_profile=0', PosixPath('foo/addition_overflow')]'
2Command '['/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz', '-rss_limit_mb=8000', '-max_total_time=10', '-reload=0', '-use_value_profile=0', PosixPath('foo/addition_overflow')]' output:
3'INFO: Running with entropic power schedule (0xFF, 100).
4INFO: Seed: 168855887
5INFO: Loaded 1 modules (1305991 inline 8-bit counters): 1305991 [0x561fd5b16200, 0x561fd5c54f87),
6INFO: Loaded 1 PC tables (1305991 PCs): 1305991 [0x561fd5c54f88,0x561fd70427f8),
7INFO: 0 files found in foo/addition_overflow
8INFO: -max_len is not provided; libFuzzer will not generate inputs larger than 4096 bytes
9INFO: A corpus is not provided, starting from an empty corpus
10[#2](/bitcoin-bitcoin/2/) INITED cov: 797 ft: 798 corp: 1/1b exec/s: 0 rss: 230Mb
11==3390108==WARNING: invalid path to external symbolizer!
12==3390108==WARNING: Failed to use and restart external symbolizer!
13
14=================================================================
15==3390108==ERROR: LeakSanitizer: detected memory leaks
16
17Direct leak of 777 byte(s) in 1 object(s) allocated from:
18 [#0](/bitcoin-bitcoin/0/) 0x561fca60f978 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5da0978)
19 [#1](/bitcoin-bitcoin/1/) 0x561fca6129c9 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5da39c9)
20 [#2](/bitcoin-bitcoin/2/) 0x561fca61c3c9 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dad3c9)
21 [#3](/bitcoin-bitcoin/3/) 0x561fca61c01f (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dad01f)
22 [#4](/bitcoin-bitcoin/4/) 0x561fca61b603 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dac603)
23 [#5](/bitcoin-bitcoin/5/) 0x561fcc4984de (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c294de)
24 [#6](/bitcoin-bitcoin/6/) 0x561fcc493c83 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c24c83)
25 [#7](/bitcoin-bitcoin/7/) 0x561fcc49391f (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c2491f)
26 [#8](/bitcoin-bitcoin/8/) 0x561fca4b3ab8 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c44ab8)
27 [#9](/bitcoin-bitcoin/9/) 0x561fca4b66a0 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c476a0)
28 [#10](/bitcoin-bitcoin/10/) 0x561fca4b7acb (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c48acb)
29 [#11](/bitcoin-bitcoin/11/) 0x561fca4b7ce7 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c48ce7)
30 [#12](/bitcoin-bitcoin/12/) 0x561fca4986d1 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c296d1)
31 [#13](/bitcoin-bitcoin/13/) 0x561fca29cd72 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5a2dd72)
32 [#14](/bitcoin-bitcoin/14/) 0x7ff7486dd27d (/nix/store/sl141d1g77wvhr050ah87lcyz2czdxa3-glibc-2.40-36/lib/libc.so.6+0x2a27d) (BuildId: 6a788357de379aee7162f608d25a7692f7162b15)
33
34Direct leak of 777 byte(s) in 1 object(s) allocated from:
35 [#0](/bitcoin-bitcoin/0/) 0x561fca60f978 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5da0978)
36 [#1](/bitcoin-bitcoin/1/) 0x561fca6129c9 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5da39c9)
37 [#2](/bitcoin-bitcoin/2/) 0x561fca61c3c9 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dad3c9)
38 [#3](/bitcoin-bitcoin/3/) 0x561fca61c01f (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dad01f)
39 [#4](/bitcoin-bitcoin/4/) 0x561fca61b603 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dac603)
40 [#5](/bitcoin-bitcoin/5/) 0x561fcc4984de (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c294de)
41 [#6](/bitcoin-bitcoin/6/) 0x561fcc493c83 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c24c83)
42 [#7](/bitcoin-bitcoin/7/) 0x561fcc49391f (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c2491f)
43 [#8](/bitcoin-bitcoin/8/) 0x561fca4b3ab8 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c44ab8)
44 [#9](/bitcoin-bitcoin/9/) 0x561fca4b66a0 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c476a0)
45 [#10](/bitcoin-bitcoin/10/) 0x561fca4b72b0 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c482b0)
46 [#11](/bitcoin-bitcoin/11/) 0x561fca4b7ee7 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c48ee7)
47 [#12](/bitcoin-bitcoin/12/) 0x561fca4986d1 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c296d1)
48 [#13](/bitcoin-bitcoin/13/) 0x561fca29cd72 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5a2dd72)
49 [#14](/bitcoin-bitcoin/14/) 0x7ff7486dd27d (/nix/store/sl141d1g77wvhr050ah87lcyz2czdxa3-glibc-2.40-36/lib/libc.so.6+0x2a27d) (BuildId: 6a788357de379aee7162f608d25a7692f7162b15)
50
51Direct leak of 777 byte(s) in 1 object(s) allocated from:
52 [#0](/bitcoin-bitcoin/0/) 0x561fca60f978 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5da0978)
53 [#1](/bitcoin-bitcoin/1/) 0x561fca6129c9 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5da39c9)
54 [#2](/bitcoin-bitcoin/2/) 0x561fca61c3c9 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dad3c9)
55 [#3](/bitcoin-bitcoin/3/) 0x561fca61c01f (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dad01f)
56 [#4](/bitcoin-bitcoin/4/) 0x561fca61b603 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5dac603)
57 [#5](/bitcoin-bitcoin/5/) 0x561fcc4984de (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c294de)
58 [#6](/bitcoin-bitcoin/6/) 0x561fcc493c83 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c24c83)
59 [#7](/bitcoin-bitcoin/7/) 0x561fcc49391f (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x7c2491f)
60 [#8](/bitcoin-bitcoin/8/) 0x561fca4b3ab8 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c44ab8)
61 [#9](/bitcoin-bitcoin/9/) 0x561fca4b76d4 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c486d4)
62 [#10](/bitcoin-bitcoin/10/) 0x561fca4b7ce7 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c48ce7)
63 [#11](/bitcoin-bitcoin/11/) 0x561fca4986d1 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5c296d1)
64 [#12](/bitcoin-bitcoin/12/) 0x561fca29cd72 (/home/hodlinator/bitcoin/build_fuzz/src/test/fuzz/fuzz+0x5a2dd72)
65 [#13](/bitcoin-bitcoin/13/) 0x7ff7486dd27d (/nix/store/sl141d1g77wvhr050ah87lcyz2czdxa3-glibc-2.40-36/lib/libc.so.6+0x2a27d) (BuildId: 6a788357de379aee7162f608d25a7692f7162b15)
66
67SUMMARY: AddressSanitizer: 2331 byte(s) leaked in 3 allocation(s).
68INFO: to ignore leaks on libFuzzer side use -detect_leaks=0.
69
70MS: 1 ChangeBit-; base unit: adc83b19e793491b1c6ea0fd8b46cd9f32e592fc
710x8,
72\010
73artifact_prefix='./'; Test unit written to ./leak-8d883f1577ca8c334b7c6d75ccb71209d71ced13
74Base64: CA==
75'