buglwIP - A Lightweight TCP/IP stack - Bugs: bug #37405, 'err_tcp()' uses already freed...

 
 

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

bug #37405: 'err_tcp()' uses already freed 'netconn' object

Submitter:  Christian Prochaska <cproc>
Submitted:  Thu 20 Sep 2012 09:09:25 AM UTC
   
 
Category:  sockets/netconn Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  Other

Wed 26 Sep 2012 08:17:41 PM UTC, comment #3: 

... and fixed in 1.4.1 branch, too.

Simon Goldschmidt <goldsimon>
Group administrator
Wed 26 Sep 2012 07:53:11 PM UTC, comment #2: 

Fixed (in master) by resetting 'arg' and callback pointer from pcb when sys_mbox_trypost() fails in 'accept_function()'.

Thanks for reporting it here.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 20 Sep 2012 02:59:00 PM UTC, comment #1: 

The problem seems to be that  'accept_function' first calls 'setup_tcp' (setting up the pcb callbacks) and then does not reset the pcb callbacks before freeing the new netconn.

As this is a small change which only adds code that is executed on mbox overflow, I'd target this at 1.4.1.

Simon Goldschmidt <goldsimon>
Group administrator
Thu 20 Sep 2012 09:09:25 AM UTC, original submission:  

Please have a look at this bug report:

https://github.com/genodelabs/genode/issues/366

lwIP version is 'STABLE-1_4_1-RC1'. I can provide more information if needed.

Thanks,
Christian

Christian Prochaska <cproc>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-09-26 goldsimon CategoryNone sockets/netconn
        Item GroupNone Crash Error
        StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2012-09-20 goldsimon StatusNone Confirmed
        Assigned toNone goldsimon
        Planned Release 1.4.1

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code