This bug often comes when multiple threads try to access pbuf related code . 
You must use some mechanism to avoid multiple threads to access it at same time.

Regards
  ----- Original Message ----- 
  From: Dinesh Chachan 
  To: [email protected] 
  Sent: Friday, March 23, 2007 11:19 AM
  Subject: [lwip-users] Assertion "pbuf_free: p->ref > 0" failed


   
  Hi.

  I was trying to send a file from the server to the client using the lwip 
stack. Whenever I send a file of smaller size it gets transferred without any 
problems but whenever I try to transfer a file of 256MB or above I get an 
assertion failure message as "Assertion "pbuf_free: p->ref > 0" failed at line 
577 in ../../../../../lwip/src/core/pbuf.c". 

  I am using lwip 1.2 with Linux 2.4.20. What might be the possible reason 
behind the error. I had made some changes in the lwipopts.h file by changing 
the TCP_WND size etc to transfer bulk data. Is it due to the changes I have 
made. But if i don't make the change data is transmitted very slowly. I require 
a speend of something around 30Mbps. Can I attain this speed using lwip? 

  I am attaching the modified lwipopts.h file for your reference. 



       



------------------------------------------------------------------------------


  _______________________________________________
  lwip-users mailing list
  [email protected]
  http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to