Module: xenomai-gch
Branch: for-forge
Commit: 80a59e2e87c15038761f81d97843e74a629e3548
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=80a59e2e87c15038761f81d97843e74a629e3548

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Fri Dec 27 20:02:37 2013 +0100

switchtest: avoid printf stack overflow

---

 testsuite/switchtest/switchtest.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuite/switchtest/switchtest.c 
b/testsuite/switchtest/switchtest.c
index 1419988..97c6298 100644
--- a/testsuite/switchtest/switchtest.c
+++ b/testsuite/switchtest/switchtest.c
@@ -833,7 +833,7 @@ static int task_create(struct cpu_tasks *cpu,
                pthread_attr_t attr;
 
                pthread_attr_init(&attr);
-               pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN);
+               pthread_attr_setstacksize(&attr, 32768);
 
                err = __STD(pthread_create(&param->thread,
                                           &attr,
@@ -853,7 +853,7 @@ static int task_create(struct cpu_tasks *cpu,
                pthread_attr_t attr;
 
                pthread_attr_init(&attr);
-               pthread_attr_setstacksize(&attr, PTHREAD_STACK_MIN * 2);
+               pthread_attr_setstacksize(&attr, 65536);
 
                err = __STD(pthread_create(&param->thread,
                                           &attr,


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to