[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] LWIP crash
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-users] LWIP crash |
Date: |
Fri, 07 Sep 2012 10:22:41 +0200 |
Sylvain Rochet wrote:
> > As the application is continuously sending data, do_write continuously
> > calls do_writemore, which internally calls tcp_write. At some point
> > tcp_write returns ERR_MEM and do_write waits on semaphore op_completed.
> >
> > [...]
> >
> > What could be the reason for the crash in the first case, is it i am
> > using lwip threads incorrectly ?
>
> It looks like you are using the raw API with threads, raw API is -NOT-
> thread safe, you have to use netconn or socket API.
The functions do_write() and do_writemore are part of the netconn API (the part
that runs in tcpip_thread), so I think he's using netconn- or socket API.
Simon
- Re: [lwip-users] LWIP crash, Anil kumar, 2012/09/03
- Re: [lwip-users] LWIP crash, Martin Velek, 2012/09/03
- Re: [lwip-users] LWIP crash, Anil kumar, 2012/09/07
- Re: [lwip-users] LWIP crash, Sylvain Rochet, 2012/09/07
- Re: [lwip-users] LWIP crash,
Simon Goldschmidt <=
- Re: [lwip-users] LWIP crash, Anil kumar, 2012/09/10
- Re: [lwip-users] LWIP crash, Simon Goldschmidt, 2012/09/10
- Re: [lwip-users] LWIP crash, Anil kumar, 2012/09/11
- Re: [lwip-users] LWIP crash, Simon Goldschmidt, 2012/09/11
- Re: [lwip-users] LWIP crash, Anil kumar, 2012/09/11
- Re: [lwip-users] LWIP crash, Simon Goldschmidt, 2012/09/11
- Re: [lwip-users] LWIP crash, Anil kumar, 2012/09/11