lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE : [lwip-users] Assertion in lwip_accept


From: Frédéric BERNON
Subject: RE : [lwip-users] Assertion in lwip_accept
Date: Wed, 13 Jun 2007 17:56:34 +0200

Perhaps it's just a tunning problem. How is defined MEMP_NUM_SYS_TIMEOUT in 
your lwipopts.h? Try to add it +10 (large to be sure) and retest. I you always 
got the problem, check if in your application you directly use sys_timeout. 
Else, there is a sys_timeout for PPP, DHCP(2), AUTOIP(1) IGMP, SNMP(0/1), ARP, 
IP, and TCP. If you test with LWIP_STATS=1 and MEMP_STATS=1, you could see what 
is the max value for "SYS_TIMEOUT" if you call stats_display().
  
====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : address@hidden 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Goldschmidt Simon
Envoyé : mercredi 13 juin 2007 15:51
À : Mailing list for lwIP users
Objet : RE: [lwip-users] Assertion in lwip_accept



> I hit an internal lwIP assertion when a TCP connection is accepted:
> 
> Assertion "sys_timeout: timeout != NULL" failed at line 188
> in /pathtosource/lwip/core/sys.c
> 
> My sys_arch_timeouts function never returns NULL. What can

That would print "sys_timeout: timeouts != NULL" (note the 's').

What you are facing is an empty MEMP_SYS_TIMEOUT pool!

> cause this? This assertion came up with my update to the
> latest CVS revision. I didn't see it in 1.2.0
> 
> BTW:
> Is it the right approach to return a unique timeout structure
> per thread in sys_arch_timeouts or have I misunderstood something. 

Yes, it is.



Simon


_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

[Prev in Thread] Current Thread [Next in Thread]