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 : [EMAIL PROTECTED] 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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
[email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
BEGIN:VCARD
VERSION:2.1
N:BERNON;Frédéric;;M.
FN:Frédéric BERNON
ORG:HYMATOM SA;Recherche et Développement
TITLE:Chef de projet informatique
TEL;WORK;VOICE:04-67-87-61-10
TEL;WORK;FAX:04-67-70-85-44
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de Massacan;VENDARGUES;;34740;FRANCE;
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175 rue de Massacan=0D=0AVENDARGUES 34740=0D=
=0AFrance
URL;WORK:http://www.hymatom.fr
ROLE:Chef de projet informatique
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20020404T083210Z
END:VCARD
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to