From 9f6fa7c1adc38ae7bc3ec4efe823e9745b2f3700 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 21 Jun 2012 19:13:49 +0000 Subject: [PATCH] - API, Linux: increase timer thread stack size from 16K to 32K. Apparently new use of MAXPATHLEN can cause overflow. Fixes #1191 svn path=/trunk/boinc/; revision=25781 --- api/boinc_api.cpp | 2 +- checkin_notes | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/api/boinc_api.cpp b/api/boinc_api.cpp index 6d8be85033..0ca2a51ee5 100644 --- a/api/boinc_api.cpp +++ b/api/boinc_api.cpp @@ -1294,7 +1294,7 @@ int start_timer_thread() { #else pthread_attr_t thread_attrs; pthread_attr_init(&thread_attrs); - pthread_attr_setstacksize(&thread_attrs, 16384); + pthread_attr_setstacksize(&thread_attrs, 32768); int retval = pthread_create(&timer_thread_handle, &thread_attrs, timer_thread, NULL); if (retval) { fprintf(stderr, diff --git a/checkin_notes b/checkin_notes index b65f7905bc..9e9406a7da 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4455,3 +4455,11 @@ David 20 June 2012 html/inc/ stats_sites.inc + +David 20 June 2012 + - API, Linux: increase timer thread stack size from 16K to 32K. + Apparently new use of MAXPATHLEN can cause overflow. + Fixes #1191 + + api/ + boinc_api.cpp