The prctl function in glibc is variadic, but the internal prototype used by libasan has a fixed argument list. This causes crashes on powerpc64le-linux-gnu with current glibc because the glibc implementation is variadic as well, it uses <stdarg.h>. Older glibc uses an assembler implementation which does not bother with variadic arguments. For variadic function calls, it's the caller's responsibility to set up the parameter save area, but that does not happen if function prototype is incorrect and non-variadic. I'll try to get this worked around in glibc, but I couldn't get my ABI regression fix applied the first time I posted it. The libasan library isn't the first application impacted by the prctl ABI change.
Can you file this upstream to LLVM too?
This has been worked around in glibc. Should we close this issue?
(In reply to Florian Weimer from comment #2) > This has been worked around in glibc. Should we close this issue? As the bug reporter and given glibc now has a workaround, I think you're fine to close this if you think there's nothing to be done in GCC.
Then let's close it. We'll get the fix from LLVM if it ever gets implemented.