Skip to content

Commit 3bc6de9

Browse files
committed
Try to fix github tcmalloc target failure
tcmalloc may, depending on the stacktrace generator it uses, create pipe(2) fds during shared library initialisation. These will later get clobbered by ssh/sshd calling closefrom() and chaos will ensue. Tell tcmalloc to use an unwinder that doesn't pull this stuff.
1 parent 922e54b commit 3bc6de9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/configs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,12 @@ case "$config" in
136136
;;
137137
tcmalloc)
138138
CONFIGFLAGS="--with-ldflags=-ltcmalloc"
139+
# tcmalloc may, depending on the stacktrace generator it uses, create
140+
# pipe(2) fds during shared library initialisation. These will later
141+
# get clobbered by ssh/sshd calling closefrom() and chaos will ensue.
142+
# Tell tcmalloc to use an unwinder that doesn't pull this stuff.
143+
TCMALLOC_STACKTRACE_METHOD=generic_fp
144+
export TCMALLOC_STACKTRACE_METHOD
139145
;;
140146
krb5|heimdal)
141147
CONFIGFLAGS="--with-kerberos5"

0 commit comments

Comments
 (0)