https://bugs.kde.org/show_bug.cgi?id=472219
Bug ID: 472219 Summary: Syscall param ppoll(ufds.events) points to uninitialised byte(s) Classification: Developer tools Product: valgrind Version: 3.21.0 Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: jsew...@acm.org Reporter: fanqu...@gmail.com Target Milestone: --- aarch64 Alpine Linux (musl libc 1.2.4) gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924 valgrind-3.21.0 Using the following code, compiled with "g++ test.cpp": ```cpp #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> int main(){ addrinfo ai_hint{}; ai_hint.ai_socktype = SOCK_STREAM; ai_hint.ai_protocol = IPPROTO_TCP; ai_hint.ai_family = AF_UNSPEC; ai_hint.ai_flags = true? AI_ADDRCONFIG : AI_NUMERICHOST; addrinfo* ai_res{nullptr}; return getaddrinfo("foo.bar", nullptr, &ai_hint, &ai_res); } ``` valgrind -s --track-origins=yes --gen-suppressions=all ./a.out ==79== Memcheck, a memory error detector ==79== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. ==79== Using Valgrind-3.21.0 and LibVEX; rerun with -h for copyright info ==79== Command: ./a.out ==79== ==79== Syscall param ppoll(ufds.events) points to uninitialised byte(s) ==79== at 0x405DCCC: ??? (in /lib/ld-musl-aarch64.so.1) ==79== Address 0x1ffefff854 is on thread 1's stack ==79== Uninitialised value was created by a stack allocation ==79== at 0x404498C: ??? (in /lib/ld-musl-aarch64.so.1) ==79== { <insert_a_suppression_name_here> Memcheck:Param ppoll(ufds.events) obj:/lib/ld-musl-aarch64.so.1 } ==79== ==79== HEAP SUMMARY: ==79== in use at exit: 0 bytes in 0 blocks ==79== total heap usage: 0 allocs, 0 frees, 0 bytes allocated ==79== ==79== All heap blocks were freed -- no leaks are possible ==79== ==79== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) ==79== ==79== 1 errors in context 1 of 1: ==79== Syscall param ppoll(ufds.events) points to uninitialised byte(s) ==79== at 0x405DCCC: ??? (in /lib/ld-musl-aarch64.so.1) ==79== Address 0x1ffefff854 is on thread 1's stack ==79== Uninitialised value was created by a stack allocation ==79== at 0x404498C: ??? (in /lib/ld-musl-aarch64.so.1) ==79== { <insert_a_suppression_name_here> Memcheck:Param ppoll(ufds.events) obj:/lib/ld-musl-aarch64.so.1 } ==79== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) -- You are receiving this mail because: You are watching all bug changes.