Bug 476333

Summary: helgrind/tests/getaddrinfo.vgtest fails randomly
Product: [Developer tools] valgrind Reporter: Mark Wielaard <mark>
Component: helgrindAssignee: Julian Seward <jseward>
Status: REPORTED ---    
Severity: normal CC: pjfloyd
Priority: NOR    
Version First Reported In: 3.22 GIT   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Mark Wielaard 2023-10-30 18:20:39 UTC
Running perl tests/vg_regtest helgrind/tests/getaddrinfo.vgtest seems to randomly fail on various arches/distros.

I now also got it to fail on x86_64 (RHEL8). I am on a bad wifi network at the moment, which might impact this. I suspect there really is a datarace in at least some versions of glibc when dns lookups are retried.
Comment 1 Paul Floyd 2023-10-30 19:24:34 UTC
From what I've seen there are a load of glibc private locks associated with getaddrinfo. ASAN seems to just filter anything with getaddrinfo in the callastack. Those locks are likely to change with different versions.