From: Cyril H. <su...@li...> - 2012-02-23 16:49:25
|
The branch, master, has been updated via e97ba6f98a9f325e6acada85f18b42b2720449b3 (commit) from 54a90b4ff7b63731c4cb3a876265e13a2363974d (commit) - Log ----------------------------------------------------------------- commit e97ba6f98a9f325e6acada85f18b42b2720449b3 Author: Cyril Hrubis <ch...@su...> Date: Thu Feb 23 17:44:51 2012 +0100 lib/cloner.c enlarge cloner stack size After the tst_res() interface was fixed not to interleave messages while called from several threads by preparing the message in buffer created on the stack some testcases (./shmem_2nstest clone) started to hang because of stack overflow so this patch increases stack size for cloned process from four to six pages. Reported-by: Peng Haitao <pe...@cn...> Signed-off-by: Cyril Hrubis <ch...@su...> ----------------------------------------------------------------------- Summary of changes: lib/cloner.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cloner.c b/lib/cloner.c index bf9eed1..b6d00c0 100644 --- a/lib/cloner.c +++ b/lib/cloner.c @@ -100,12 +100,12 @@ ltp_clone_malloc(unsigned long clone_flags, int (*fn)(void *arg), void *arg, /*********************************************************************** * ltp_clone_quick: calls ltp_clone_malloc with predetermined stack size. * Experience thus far suggests that one page is often insufficient, - * while 4*getpagesize() seems adequate. + * while 6*getpagesize() seems adequate. ***********************************************************************/ int ltp_clone_quick(unsigned long clone_flags, int (*fn)(void *arg), void *arg) { - size_t stack_size = getpagesize() * 4; + size_t stack_size = getpagesize() * 6; return ltp_clone_malloc(clone_flags, fn, arg, stack_size); -} \ No newline at end of file +} hooks/post-receive -- ltp |