[riot-notifications] [RIOT-OS/RIOT] POSIX sockets + lwIP: bad file descriptor (#11212)

Martine Lenders notifications at github.com
Fri May 24 15:02:02 CEST 2019


> I'll try to find out, why the `samr21-xpro` is crashing.

The stack is to small for all the IP stacked on IP. If I patch your Makefile

```diff
diff --git a/src/Makefile b/src/Makefile
index e36691b..2784a3a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -59,6 +59,7 @@ endif
 
 CFLAGS += -DSO_REUSE
 CFLAGS += -DLWIP_SO_RCVTIMEO
+CFLAGS += -DTHREAD_STACKSIZE_MAIN="(2*THREAD_STACKSIZE_DEFAULT)"
 #CFLAGS += -DLWIP_SOCK_TCP_ACCEPT_TIMEOUT=500
 #CFLAGS += -DPOSIX_SETSOCKOPT
```

I get a bad file descriptor for `samr21-xpro` as well.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/11212#issuecomment-495617061
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190524/5673461f/attachment.html>


More information about the notifications mailing list