zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
11.01k stars 6.7k forks source link

samples: net: civetweb: websocket_server #46743

Closed mevalver closed 2 years ago

mevalver commented 2 years ago

Describe the bug While developing a new ethernet driver for Intel Cyclone V SoC DevKit board, we were testing the example located in https://github.com/zephyrproject-rtos/zephyr/tree/main/samples/net/civetweb/websocket_server

When the message is too long, the Zephyr kernel has problem: [00:00:54.132,000] os: MPU FAULT [00:00:54.132,000] os: Stacking error (context area might be not valid) [00:00:54.132,000] os: Data Access Violation [00:00:54.132,000] os: MMFAR Address: 0x2000ceb8 [00:00:54.132,000] os: r0/a1: 0x121bcb9f r1/a2: 0x4e7439c2 r2/a3: 0x2 [00:00:54.132,000] os: r3/a4: 0xe45754cc r12/ip: 0xcc2d83d0 r14/lr: 0xd [00:00:54.132,000] os: xpsr: 0xb7aec000 [00:00:54.132,000] os: Faulting instruction address (r15/pc): 0x01a05abf [00:00:54.132,000] os: >>> ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0 [00:00:54.132,000] os: Current thread: 0x20005438 (unknown) [00:00:54.219,000] os: Halting system

We validated this problem in two boards cyclonev_socdk and nucleo_f429zi

To Reproduce Steps to reproduce the behavior:

  1. build – west build -p auto -b nucleo_f429zi samples/net/civetweb/websocket_server
  2. Bring the webpage and try to send at least 1300 byte message.

Expected behavior The message is to be clearly passed on the webserver page without errors on the board.

mbolivar-nordic commented 2 years ago

"Fixed" by the removal of civetweb. See #46746 for more details. Thanks for taking the time to file an issue and sorry for the inconvenience.