lwIP - A Lightweight TCP/IP stack - Bugs: bug #60532, Double free and assert...
You are not allowed to post comments on this tracker with your current authentication level.
bug #60532: Double free and assert "pbuf_free: p->ref > 0" fail
Submitter: | SviMik <svimik> | ||
Submitted: | Wed 05 May 2021 01:48:59 PM UTC | ||
Category: | pbufs | Severity: | 3 - Normal |
Item Group: | Crash Error | Status: | Invalid |
Privacy: | Public | Assigned to: | goldsimon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | Other |
Jump to the original submission
Sat 08 May 2021 11:13:18 PM UTC, comment #6: |
SviMik <svimik> |
Thu 06 May 2021 10:16:19 AM UTC, comment #5: See also MEM_LIBC_MALLOC if you want to use standard heap functions. |
Simon Goldschmidt <goldsimon> |
Thu 06 May 2021 10:14:15 AM UTC, comment #4: Implementing mem_trim() using realloc() is not supported. See the documentation of mem_trim():
|
Simon Goldschmidt <goldsimon> |
Wed 05 May 2021 11:12:29 PM UTC, comment #3: The website has converted some asterisks to bold tags, but I hope you get the idea. It's, of course, void * mem_trim (returns a pointer). |
SviMik <svimik> |
Wed 05 May 2021 11:07:19 PM UTC, comment #2: The problem happens when mem_trim() is called in pbuf.c
|
SviMik <svimik> |
Wed 05 May 2021 05:57:49 PM UTC, comment #1: Have successfully reproduced in the git head http://git.savannah.nongnu.org/cgit/lwip.git/commit/?id=b0e347158d8db640c6891f9f31f4e6d19dca200b |
SviMik <svimik> |
Wed 05 May 2021 01:48:59 PM UTC, original submission:
Hi,
|
SviMik <svimik> |
Depends on the following items: None found
Items that depend on this one: None found
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 |
---|---|---|---|---|---|
2021-05-06 | goldsimon | Status | None | Invalid | |
Assigned to | None | goldsimon | |||
Open/Closed | Open | Closed | |||
2021-05-05 | svimik | Attached File | - | Added valgrind_1.log, #51383 |
Powered by Savane 3.13-3230.
Corresponding source code
Thanks for your help! Maybe some LWIP_ASSERT could be put there to ensure this condition is met?