necouchman commented on a change in pull request #206: GUACAMOLE-663: guacd SEGVs intermittently on systems with small(er) thread stack sizes URL: https://github.com/apache/guacamole-server/pull/206#discussion_r264070907
########## File path: configure.ac ########## @@ -140,6 +140,46 @@ AC_SUBST([COMMON_SSH_INCLUDE], '-I$(top_srcdir)/src/common-ssh') AC_SUBST([TERMINAL_LTLIB], '$(top_builddir)/src/terminal/libguac_terminal.la') AC_SUBST([TERMINAL_INCLUDE], '-I$(top_srcdir)/src/terminal $(PANGO_CFLAGS) $(PANGOCAIRO_CFLAGS) $(COMMON_INCLUDE)') +# pthread stack size +AC_ARG_WITH(pthread_stack, + [AS_HELP_STRING([--with-pthread_stack=<size in bytes>], + [explicitly set pthread stack size (8MB is recommended)]) + ],pthread_stack_size=$withval + AC_DEFINE_UNQUOTED([PTHREAD_STACK_SIZE], [$pthread_stack_size], [pthread stack size (8MB is recommended)]) +) +if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then + AC_MSG_CHECKING([whether default pthread stack is larger than 8MB]) + ac_save_libs="$LIBS" + LIBS="$LIBS -lpthread" + AC_RUN_IFELSE([AC_LANG_SOURCE([[ Review comment: Ping @rvs - Any progress on this? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
