https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115750
--- Comment #2 from John David Anglin <danglin at gcc dot gnu.org> --- The bisection result is puzzling. The linux MALLOC_ABI_ALIGNMENT define in pa32-linux.h is replaced by the one in pa.h by the commit. As far as I know, the malloc alignment for hppa-linux has always been 8 bytes. It was never 16 bytes. As a result, malloc'd data is insufficiently aligned for pthreads. I removed the define from pa32-linux.h because it didn't reflect the actual alignment provided by malloc in glibc. Although emacs doesn't build in Debian, https://buildd.debian.org/status/logs.php?pkg=emacs&arch=hppa the issue is a couple of testsuite fails. The main difference is Debian builds using PA 1.1 code. The Memory exhausted error doesn't occur there.