buglwIP - A Lightweight TCP/IP stack - Bugs: bug #47666, lwip crash inside do_writemore...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #47666: lwip crash inside do_writemore when used in iOS extension

Submitted by:  richardhu <hyr666>
Submitted on:  Tue 12 Apr 2016 09:11:49 AM UTC  
 
Category: TCPSeverity: 3 - Normal
Item Group: Crash ErrorStatus: Works For Me
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.4.1

Mon 18 Apr 2016 06:51:40 PM UTC, comment #1:

There have at least been 2 fixes around 'conn->write_offset' since 1.4.1. Please try out git master and come back here if it really still is a problem.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Tue 12 Apr 2016 09:11:49 AM UTC, original submission:

lwip is used inside iOS extension to receive IP packets. and then use socket API to get TCP content and then send the data out.
the simple http connection works well and the request and response all works.
but, when too many connections made - eg. 10-20 http connections. the lwip will crash.
all the time it will crash at do_writemore()
most time at this assert line:
LWIP_ASSERT("conn->write_offset < conn->current_msg->msg.w.len",
conn->write_offset < conn->current_msg->msg.w.len);
and some time also at
LWIP_ASSERT("conn->pcb.tcp != NULL", conn->pcb.tcp != NULL);
all the settings are default (like #define MEM_SIZE 1048576)
is this issue caused by limitation of resource usage in extension?
or what information need for proceed solve this issue?

richardhu <hyr666>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by goldsimon (Posted a comment)
  • -unavailable- added by hyr666 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 18 Apr 2016 06:51:40 PM UTCgoldsimonStatusNone=>Works For Me
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1