Re: [lwip-users] LWIP_ASSERT on pbuf_free function

2018-11-26 Thread Sergio R. Caprile
I'm not well versed in sockets here, but since you are using sockets, there shouldn't be application-related pbuf free issues if threading rules are respected. Somewhere in your vendor provided code, someone did not play by the rules. You have an OS, you have a port, you have a driver, you have man

[lwip-users] LWIP_ASSERT on pbuf_free function

2018-11-21 Thread Biafra
Hi everyone, I'm using MCUXpresso 10.2.1 and a custom board based on MK65F2M0 chip. I have a problem on using LwIP: it sometimes crash generating an assert, because of some invalid parameter. The workflow is: * The board is configured with a main connection using a GPRS modem and an o

Re: [lwip-users] LWIP_ASSERT conn->current_msg != NULL

2014-03-06 Thread Martin Velek
Hi, could you provide some test case? I mean the code you are using (if it is possible) to be able to re-create the assertion failure. Best Martin On Thu, Mar 6, 2014 at 10:35 AM, Dmitriy Zabotlin wrote: > Hi, > > > I have a problem with lwip in my embedded application, I'm using FreeRTOS > 7.6

[lwip-users] LWIP_ASSERT conn->current_msg != NULL

2014-03-06 Thread Dmitriy Zabotlin
Hi, I have a problem with lwip in my embedded application, I'm using FreeRTOS 7.6.0 with lwip 1.4.1, I'm using lwip driver from ASF, lwip-port-1.4.0. I have three threads, which uses lwip sockets, one creates UDP socket, two TCP sockets. If I connect to my board via UDP, everything fine, but if

Re: [lwip-users] LWIP_ASSERT

2014-02-14 Thread Jonathan dumaresq
[lwip-users] LWIP_ASSERT Hi all, We are working on a problem right now. I use lwip 1.4.0. I have an LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL && msg->conn->write_offset == 0); I think this happen when I have many pbuf

Re: [lwip-users] LWIP_ASSERT

2014-02-14 Thread Marco Jakobs
piwos...@nongnu.org] On Behalf Of Jonathan dumaresq Sent: Tuesday, February 11, 2014 8:08 PM To: users Subject: [lwip-users] LWIP_ASSERT Hi all, We are working on a problem right now. I use lwip 1.4.0. I have an LWIP_ASSERT("already writing or closing", msg->conn->

Re: [lwip-users] LWIP_ASSERT

2014-02-12 Thread Jonathan dumaresq
HI, Well this is what I think. But I wonder if assert are handled correctly in the stack ? From what I see, nothing break when the assert happen. I do not need to restart anything to get the stack continue after the cable was reconnected to my router. Le 2014-02-12 13:12, Martin Velek a é

Re: [lwip-users] LWIP_ASSERT

2014-02-12 Thread Martin Velek
Hi, from wiki http://en.wikipedia.org/wiki/Assertion_%28software_development%29: In computer programming , an *assertion* is a predicate(a true-false statement) placed in a program to indicate that

[lwip-users] LWIP_ASSERT

2014-02-11 Thread Jonathan dumaresq
Hi all, We are working on a problem right now. I use lwip 1.4.0. I have an LWIP_ASSERT("already writing or closing", msg->conn->current_msg == NULL && msg->conn->write_offset == 0); I think this happen when I have many pbuf ready to be sent, and I loose the initernet. On the first sen

Re: [lwip-users] LWIP_ASSERT at ip_output is failed.

2012-03-06 Thread Simon Goldschmidt
Segge wrote: > I have an alert message during run-time: > Assertion "p->ref == 1" failed at line 755 in > D:/lwIP/Library/src/core/ipv4/ip.c > Assertion "p->ref == 1" failed at line 599 in > D:/lwIP/Library/src/core/ipv4/ip.c > > The messages are always in pair. Does that mean your target contin

[lwip-users] LWIP_ASSERT at ip_output is failed.

2012-03-06 Thread Segge
Hi, all. I have an alert message during run-time: Assertion "p->ref == 1" failed at line 755 in D:/lwIP/Library/src/core/ipv4/ip.c Assertion "p->ref == 1" failed at line 599 in D:/lwIP/Library/src/core/ipv4/ip.c The messages are always in pair. What does it mean? Is it critical? Is it possible

Re: [lwip-users] LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);

2006-09-21 Thread Mumtaz Ahmad
o: "Mailing list for lwIP users" Sent: Friday, September 22, 2006 12:18 AM Subject: Re: [lwip-users] LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0); > On Thu, Sep 21, 2006 at 03:14:51PM +0500, Mumtaz Ahmad wrote: > > Dear all > > > > When

Re: [lwip-users] LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);

2006-09-21 Thread Kieran Mansley
On Thu, Sep 21, 2006 at 03:14:51PM +0500, Mumtaz Ahmad wrote: > Dear all > > When i use multiple threads sending on 2 different sockets i sometimes get > this assert > LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0); > I have tried to make the stack thread safe . Any body who could comment? I th

[lwip-users] LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0);

2006-09-21 Thread Mumtaz Ahmad
Dear all When i use multiple threads sending on 2 different sockets i sometimes get this assert LWIP_ASSERT("pbuf_free: p->ref > 0", p->ref > 0); I have tried to make the stack thread safe . Any body who could comment? Regards - Original Message - From: "Kieran Mansley" <[EMAIL PROTEC