buglwIP - A Lightweight TCP/IP stack - Bugs: bug #53680, Bug in mem.c when...

 
 

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

bug #53680: Bug in mem.c when LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT is active

Submitter:  Dirk Ziegelmeier <dziegel>
Submitted:  Tue 17 Apr 2018 06:36:41 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  git head

Wed 18 Apr 2018 08:13:31 PM UTC, comment #1: 

Right. Pushed, thanks for reporting.

Simon Goldschmidt <goldsimon>
Group administrator
Tue 17 Apr 2018 06:36:41 PM UTC, original submission:  

Reported via EMail:

Hi,

I just tracked down a bug in mem.c that leads to sporadic memory
corruption when LWIP_ALLOW_MEM_FREE_FROM_OTHER_CONTEXT is active.

I think lfree needs to be declared volatile (static struct mem *
volatile lfree). Otherwise the compiler might use the old value of lfree
at the top of the for-loop in mem_malloc.

regards, Matthias
--
Matthias Pfaller

Dirk Ziegelmeier <dziegel>
Group administrator

 

(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 dziegel (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-18 goldsimon Item GroupNone Faulty Behaviour
        StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code