Stack overflow

Hi !

May be it something

I always have stack overflow:

if packet debug is enabled

CONFIG_MAIN_STACK_SIZE=8192
CONFIG_NET_PKT_LOG_LEVEL_DBG=y
CONFIG_NET_DEBUG_NET_PKT_EXTERNALS=4

Can it be something ?

But from other side it can be any thread what require more stack in case of debug enabling:

art:~$ kernel threads
Scheduler: 1503860 since last call
Threads:
0x20008e10 udp6
options: 0x0, priority: -1 timeout: 0
state: pending, entry: 0x19ed9
stack size 4096, unused 3416, usage 680 / 4096 (16 %)

0x20008ec8 tcp6_thread_id
options: 0x0, priority: -1 timeout: 0
state: pending, entry: 0x1a295
stack size 4096, unused 3448, usage 648 / 4096 (15 %)

0x2000af28 conn_mgr
options: 0x0, priority: -1 timeout: 0
state: pending, entry: 0x35d8d
stack size 512, unused 352, usage 160 / 512 (31 %)

0x200090f0 _tcp6_thread_id
options: 0x0, priority: -1 timeout: 0
state: pending, entry: 0x1a7f1
stack size 1024, unused 328, usage 696 / 1024 (67 %)

0x2000ac20 rx_q[0]
options: 0x0, priority: -1 timeout: 0
state: pending, entry: 0x4b005
stack size 1504, unused 992, usage 512 / 1504 (34 %)

0x2000ad00 tx_q[0]
options: 0x0, priority: -1 timeout: 283
state: pending, entry: 0x4afe7
stack size 1200, unused 784, usage 416 / 1200 (34 %)

0x2000ab48 net_mgmt
options: 0x0, priority: -1 timeout: 0
state: pending, entry: 0x281e1
stack size 768, unused 432, usage 336 / 768 (43 %)

0x2000ae50 tcp_work
options: 0x0, priority: -16 timeout: 0
state: pending, entry: 0x3f9a1
stack size 1024, unused 840, usage 184 / 1024 (17 %)

0x2000afe0
options: 0x0, priority: -1 timeout: 0
state: pending, entry: 0x3f9a1
stack size 1024, unused 0, usage 1024 / 1024 (100 %)

0x2000b268 sysworkq
options: 0x0, priority: -1 timeout: 0
state: pending, entry: 0x3f9a1
stack size 1024, unused 480, usage 544 / 1024 (53 %)

*0x2000a410 shell_uart
options: 0x0, priority: 14 timeout: 0
state: queued, entry: 0x203d9
stack size 2048, unused 968, usage 1080 / 2048 (52 %)

0x20009318 logging
options: 0x0, priority: 14 timeout: 4088
state: pending, entry: 0x1dc51
stack size 2048, unused 1720, usage 328 / 2048 (16 %)

0x2000b0f8 idle
options: 0x1, priority: 15 timeout: 0
state: , entry: 0x3f1c5
stack size 320, unused 236, usage 84 / 320 (26 %)

0x2000b1b0 main
options: 0x1, priority: 0 timeout: 0
state: pending, entry: 0x3e695
stack size 2048, unused 1224, usage 824 / 2048 (40 %)

Regards,

Eugene

Related