ricardgb opened a new pull request, #3630:
URL: https://github.com/apache/nuttx-apps/pull/3630

   ## Summary
   
   `CONFIG_NETUTILS_MDNS_STACKSIZE` defaulted to `DEFAULT_TASK_STACKSIZE`,
   which resolves to as little as 2KiB on some targets. The bundled mjansson
   mDNS responder needs a deeper stack than that — DNS record parsing with
   name decompression, plus the send/receive buffers — so on those targets it
   overflows its stack and hardfaults at startup, before it can answer a
   single query.
   
   This raises the default to 8KiB (the value that reliably runs the
   responder) and corrects the help text, which previously claimed a "4KiB"
   default that did not match `DEFAULT_TASK_STACKSIZE`.
   
   ## Impact
   
   - Fixes a startup hardfault when the mDNS app/daemon is enabled on targets
     with a small `DEFAULT_TASK_STACKSIZE`.
   - No API change; configurations that already set an explicit stack size are
     unaffected.
   
   ## Testing
   
   Reproduced and fixed on a Raspberry Pi Pico 2 W (RP2350, NuttX). With the
   old default (2KiB on this target) the responder overflowed its stack and
   hardfaulted at startup; with the new 8KiB default it runs and answers mDNS
   queries normally (verified with `avahi-resolve`/`avahi-browse` from a host).
   
   ---
   
   *Disclosure: this change was prepared by an AI agent (Claude Code) at the
   direction of the author (@ricardgb), who reviewed it before submission.*
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to