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 f757d6f3641112ba133b86e028c586c7b569ab85
Author: dengwenqi <[email protected]>
AuthorDate: Tue Aug 4 07:10:21 2026 +0800

    netutils/iperf: raise the report task stack to 8192.
    
    iperf_report_task() prints floating point values and runs the pthread
    exit hooks; 4096 bytes is not enough.  The overflow corrupts the TLS
    area below the stack and pthread_exit() then dereferences a garbage
    mutex pointer and crashes.  Use 8192, the same as the main iperf task.
    
    Signed-off-by: dengwenqi <[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 932b76463..90e4e1caa 100644
--- a/netutils/iperf/iperf.c
+++ b/netutils/iperf/iperf.c
@@ -50,7 +50,7 @@
 #define IPERF_TRAFFIC_TASK_STACK     5120
 #define IPERF_REPORT_TASK_NAME       "iperf_report"
 #define IPERF_REPORT_TASK_PRIORITY   101
-#define IPERF_REPORT_TASK_STACK      4096
+#define IPERF_REPORT_TASK_STACK      8192
 
 #define IPERF_UDP_TX_LEN             (1472)
 #define IPERF_UDP_RX_LEN             (16 << 10)

Reply via email to