https://bugs.kde.org/show_bug.cgi?id=445011
Bug ID: 445011 Summary: SIGCHLD is sent when valgrind is used and getservbyname() function is invoked on Fedora 35 Product: valgrind Version: unspecified Platform: Fedora RPMs OS: Linux Status: REPORTED Severity: crash Priority: NOR Component: memcheck Assignee: jsew...@acm.org Reporter: vladislavs.sokure...@gmail.com Target Milestone: --- Created attachment 143235 --> https://bugs.kde.org/attachment.cgi?id=143235&action=edit small program to reproduce the issue SUMMARY SIGCHLD is sent when valgrind is used, this makes application think that some child process has unexpectedly crashed. Note that no such signal is sent when older valgrind is used or when valgrind is not used valgrind-3.18.1 (all versions after 3.0.16) gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1) Linux localhost.localdomain 5.14.15-300.fc35.x86_64 #1 SMP Wed Oct 27 15:53:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Fedora release 35 (Thirty Five) STEPS TO REPRODUCE 1. gcc sigchld.c; valgrind --leak-check=full --trace-children=yes --track-origins=yes --read-var-info=yes --leak-resolution=high ./a.out OBSERVED RESULT ==274919== Memcheck, a memory error detector ==274919== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==274919== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info ==274919== Command: ./a.out ==274919== One child process died (PID:274926,exitcode/signal:0). Exiting ... One child process died (PID:274927,exitcode/signal:0). Exiting ... ==274919== ==274919== HEAP SUMMARY: ==274919== in use at exit: 0 bytes in 0 blocks ==274919== total heap usage: 192 allocs, 192 frees, 27,887 bytes allocated ==274919== ==274919== All heap blocks were freed -- no leaks are possible ==274919== ==274919== For lists of detected and suppressed errors, rerun with: -s ==274919== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) EXPECTED RESULT No SIGCHLD is sent so application does not assume that some child process has exited. -- You are receiving this mail because: You are watching all bug changes.