On MIPS, there might be leak of some memory in libc when we call getpwnam_r, so it fails with a lsan error, otherwise assertions used in this test are positive.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Please investigate this issue in more details. "There might be some leak in getpwnam_r" is not a good enough reason to exclude this test on MIPS (note that it also runs for ASan, TSan, MSan, not just for LSan).
Comment Actions
@samsonov sure I will investigate libc code and get back to you.
Till now,
I have tried replacing original libc call with a dummy stub of getpwnam_r returning same values, which makes the test pass.
Also with msan, tsan test passes without fail.
Comment Actions
Looks like there was issue with some library on the machine I was working on previously, as I am unable to replicate error on any other mips(el/eb) machine.
Abandoning this change.
Thanks!