From 0857137b458ddb638402fdf0776b808a4b38cc75 Mon Sep 17 00:00:00 2001 From: "Michael C. Shriver" Date: Sun, 22 Sep 2024 03:57:48 +0000 Subject: [PATCH 1/2] Update pthread stack size to work around NetBSD bug --- aprsis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprsis.c b/aprsis.c index 59f0707..e7315d2 100644 --- a/aprsis.c +++ b/aprsis.c @@ -954,7 +954,7 @@ void aprsis_start(void) { pthread_attr_init(&pthr_attrs); /* 64 kB stack is enough for this thread (I hope!) default of 2 MB is way too much...*/ - pthread_attr_setstacksize(&pthr_attrs, 64*1024); + pthread_attr_setstacksize(&pthr_attrs, 78*1024); i = pthread_create(&aprsis_thread, &pthr_attrs, (void*)aprsis_runthread, NULL); if (i == 0) { From fe93754f46fe8786e4e91ef486a964cbfd3dd865 Mon Sep 17 00:00:00 2001 From: "Michael C. Shriver" Date: Sun, 22 Sep 2024 04:02:25 +0000 Subject: [PATCH 2/2] Update pthread stack size to work around NetBSD bug --- aprsis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprsis.c b/aprsis.c index e7315d2..91a97d0 100644 --- a/aprsis.c +++ b/aprsis.c @@ -952,7 +952,7 @@ void aprsis_start(void) { if (debug) printf("aprsis_start() PTHREAD socketpair(up=%d,down=%d)\n", aprsis_up, aprsis_down); pthread_attr_init(&pthr_attrs); - /* 64 kB stack is enough for this thread (I hope!) + /* 78 kB stack is enough for this thread (I hope!) default of 2 MB is way too much...*/ pthread_attr_setstacksize(&pthr_attrs, 78*1024);