This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit ccbec077be3301829d292110335caa47624a5e89 Author: wenquan1 <[email protected]> AuthorDate: Wed Jul 8 20:27:30 2026 +0800 netutils/iperf: increase traffic thread stack to 6144 The iperf_traffic pthread was configured with only 4096 bytes of stack space. After subtracting NuttX pthread management overhead (~304 bytes), only 3792 bytes were available for user code. Under the TCP server path (iperf_task_traffic -> iperf_run_server -> iperf_tcp_server -> iperf_print_addr -> printf/vfprintf), the deep call chain combined with printf floating-point formatting could exhaust the stack, causing an arm64 assertion panic. Increase IPERF_TRAFFIC_TASK_STACK from 4096 to 6144 bytes to provide sufficient headroom for all code paths including error handling and formatted output. Signed-off-by: wenquan1 <[email protected]> Assisted-by: Kiro:claude-opus-4 --- netutils/iperf/iperf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netutils/iperf/iperf.c b/netutils/iperf/iperf.c index 06d52f087..afa92f3fb 100644 --- a/netutils/iperf/iperf.c +++ b/netutils/iperf/iperf.c @@ -47,7 +47,7 @@ #define IPERF_TRAFFIC_TASK_NAME "iperf_traffic" #define IPERF_TRAFFIC_TASK_PRIORITY 100 -#define IPERF_TRAFFIC_TASK_STACK 4096 +#define IPERF_TRAFFIC_TASK_STACK 6144 #define IPERF_REPORT_TASK_NAME "iperf_report" #define IPERF_REPORT_TASK_PRIORITY 101 #define IPERF_REPORT_TASK_STACK 4096
