From 9629b6dc1d6296e0d3a6a5dbfd0f672b4b2021ca Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 22 May 2019 14:37:20 -0600 Subject: [PATCH] PATCH: [perl #134126] -Dusemymalloc, -Dusethreads This was due to a missing declaration for thread context needed to output a message. --- malloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/malloc.c b/malloc.c index ed392ee5bae8..0c80a0856f4a 100644 --- a/malloc.c +++ b/malloc.c @@ -1239,6 +1239,7 @@ Perl_malloc(size_t nbytes) * malloc so that pointer subtraction in the same structure is always * well defined */ if (nbytes > PTRDIFF_MAX) { + dTHX; MYMALLOC_WRITE2STDERR("Memory requests are limited to PTRDIFF_MAX" " bytes to prevent possible undefined" " behavior");