
py = '3.10', mode = ''

    @pytest.mark.parametrize("mode", ["", "c", "C", "Cc"])
    @allpythons()
    def test_valgrind_fork(py, mode):
        result = valgrind([*python(py), target()], mode)
>       assert result.returncode == 0, "\n".join((result.stdout, result.stderr))
E       AssertionError: Unwanted output 0
E         Unwanted output 0
E         Unwanted output 1000000
E         Unwanted output 1000000
E         Unwanted output 2000000
E         Unwanted output 2000000
E         Unwanted output 3000000
E         Unwanted output 3000000
E         Unwanted output 4000000
E         Unwanted output 4000000
E         Unwanted output 5000000
E         Unwanted output 5000000
E         Unwanted output 6000000
E         Unwanted output 6000000
E         Unwanted output 7000000
E         Unwanted output 7000000
E         Unwanted output 8000000
E         Unwanted output 8000000
E         Unwanted output 9000000
E         Unwanted output 9000000
E         
E         ==4428== Memcheck, a memory error detector
E         ==4428== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
E         ==4428== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info
E         ==4428== Command: src/austin -i 1ms -o /dev/null python3.10 /home/runner/work/austin/austin/test/targets/target34.py
E         ==4428== 
E          [1m              _   _       [0m
E          [1m __ _ _  _ __| |_(_)_ _   [0m
E          [1m/ _` | || (_-<  _| | ' \  [0m
E          [1m\__,_|\_,_/__/\__|_|_||_| [0m  [1;36m4.1.0 [0m [gcc 13.3.0]
E         
E         🐍  [1mPython [0m version:  [1;33m3.10.0 [0m
E         ==4428== Conditional jump or move depends on uninitialised value(s)
E         ==4428==    at 0x12D7D8: py_thread__resolve_name (py_thread_name.h:397)
E         ==4428==    by 0x12D7D8: py_thread__read_with_stack_remote (py_thread.c:562)
E         ==4428==    by 0x11ACAA: _py_proc__sample_threads (py_proc.c:1265)
E         ==4428==    by 0x123414: _py_proc__sample_interpreter (py_proc.c:1393)
E         ==4428==    by 0x123414: py_proc__sample (py_proc.c:1422)
E         ==4428==    by 0x10D4AE: do_single_process (austin.c:106)
E         ==4428==    by 0x10DF44: austin (austin.c:343)
E         ==4428==    by 0x10BB2C: main (austin.c:415)
E         ==4428== 
E         
E         📈  [1mSampling Statistics [0m
E         
E               Total duration [0;30m . . . . . .  [0m [1m1.91s [0m
E               Average sampling rate [0;30m  . .  [0m [1m1.93 kHz [0m
E               Error rate [0;30m . . . . . . . .  [0m [1m0/3698 [0m ( [1m0.00% [0m)
E         ==4428== 
E         ==4428== FILE DESCRIPTORS: 4 open (3 std) at exit.
E         ==4428== Open AF_UNIX socket 3: <unknown>
E         ==4428==    at 0x4A7931B: socket (syscall-template.S:120)
E         ==4428==    by 0x4A74378: openlog_internal (syslog.c:349)
E         ==4428==    by 0x4A74A25: __vsyslog_internal (syslog.c:281)
E         ==4428==    by 0x112AE2: vsyslog (syslog.h:49)
E         ==4428==    by 0x112AE2: _log_writer (logging.c:60)
E         ==4428==    by 0x112AE2: _log_writer (logging.c:56)
E         ==4428==    by 0x112AE2: log_d (logging.c:166)
E         ==4428==    by 0x10BB81: main (austin.c:436)
E         ==4428== 
E         ==4428== 
E         ==4428== HEAP SUMMARY:
E         ==4428==     in use at exit: 0 bytes in 0 blocks
E         ==4428==   total heap usage: 466 allocs, 466 frees, 5,513,425 bytes allocated
E         ==4428== 
E         ==4428== All heap blocks were freed -- no leaks are possible
E         ==4428== 
E         ==4428== Use --track-origins=yes to see where uninitialised values come from
E         ==4428== For lists of detected and suppressed errors, rerun with: -s
E         ==4428== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
E         
E       assert 42 == 0
E        +  where 42 = CompletedProcess(args=['valgrind', '--error-exitcode=42', '--leak-check=full', '--show-leak-kinds=all', '--errors-for-leak-kinds=all', '--track-fds=yes', 'src/austin', '-i', '1ms', '-o', '/dev/null', 'python3.10', '/home/runner/work/austin/austin/test/targets/target34.py'], returncode=42, stdout='Unwanted output 0\nUnwanted output 0\nUnwanted output 1000000\nUnwanted output 1000000\nUnwanted output 2000000\nUnwanted output 2000000\nUnwanted output 3000000\nUnwanted output 3000000\nUnwanted output 4000000\nUnwanted output 4000000\nUnwanted output 5000000\nUnwanted output 5000000\nUnwanted output 6000000\nUnwanted output 6000000\nUnwanted output 7000000\nUnwanted output 7000000\nUnwanted output 8000000\nUnwanted output 8000000\nUnwanted output 9000000\nUnwanted output 9000000\n', stderr="==4428== Memcheck, a memory error detector\n==4428== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.\n==4428== Using Valgrind-3.22.0 and LibVEX; rerun with -h for copyright info\n==4428== Command: src/austin -i 1ms -o /dev/null python3.10 /home/runner/work/austin/austin/test/targets/target34.py\n==4428== \n\x1b[1m              _   _      \x1b[0m\n\x1b[1m __ _ _  _ __| |_(_)_ _  \x1b...1m1.91s\x1b[0m\n      Average sampling rate\x1b[0;30m  . . \x1b[0m\x1b[1m1.93 kHz\x1b[0m\n      Error rate\x1b[0;30m . . . . . . . . \x1b[0m\x1b[1m0/3698\x1b[0m (\x1b[1m0.00%\x1b[0m)\n==4428== \n==4428== FILE DESCRIPTORS: 4 open (3 std) at exit.\n==4428== Open AF_UNIX socket 3: <unknown>\n==4428==    at 0x4A7931B: socket (syscall-template.S:120)\n==4428==    by 0x4A74378: openlog_internal (syslog.c:349)\n==4428==    by 0x4A74A25: __vsyslog_internal (syslog.c:281)\n==4428==    by 0x112AE2: vsyslog (syslog.h:49)\n==4428==    by 0x112AE2: _log_writer (logging.c:60)\n==4428==    by 0x112AE2: _log_writer (logging.c:56)\n==4428==    by 0x112AE2: log_d (logging.c:166)\n==4428==    by 0x10BB81: main (austin.c:436)\n==4428== \n==4428== \n==4428== HEAP SUMMARY:\n==4428==     in use at exit: 0 bytes in 0 blocks\n==4428==   total heap usage: 466 allocs, 466 frees, 5,513,425 bytes allocated\n==4428== \n==4428== All heap blocks were freed -- no leaks are possible\n==4428== \n==4428== Use --track-origins=yes to see where uninitialised values come from\n==4428== For lists of detected and suppressed errors, rerun with: -s\n==4428== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)\n").returncode

test/integrity/test_valgrind.py:63: AssertionError
