AVR C Runtime Library - Bugs: bug #22567, malloc() can occasionally run into...
You are not allowed to post comments on this tracker with your current authentication level.
bug #22567: malloc() can occasionally run into an infinite loop
Submitter: | Joerg Wunsch <joerg_wunsch> | ||
Submitted: | Wed 12 Mar 2008 09:54:19 AM UTC | ||
Category: | Library | Severity: | 4 - Important |
Priority: | 5 - Normal | Item Group: | None |
Status: | Duplicate | Assigned to: | joerg_wunsch |
Percent Complete: | 0% | Open/Closed: | Closed |
Release: | Any | Fixed Release: | 1.6.6 |
Mon 29 Jun 2009 02:33:45 AM UTC, comment #3: |
Maxime Lemonnier <maxlem> |
Fri 26 Jun 2009 05:05:41 AM UTC, comment #2: Hi,
|
Maxime Lemonnier <maxlem> |
Wed 04 Mar 2009 09:41:51 PM UTC, comment #1: After talking with one of the people whose reports made me
|
Joerg Wunsch <joerg_wunsch> |
Wed 12 Mar 2008 09:54:19 AM UTC, original submission:
I've seen two reports so far where malloc() eventually ran
|
Joerg Wunsch <joerg_wunsch> |
Depends on the following items: None found
Items that depend on this one: None found
Follow 8 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-06-29 | maxlem | Attached File | - | Added main.cpp, #18338 | |
2009-06-26 | maxlem | Attached File | - | Added main.cpp, #18325 | |
2009-03-04 | joerg_wunsch | Status | None | Duplicate | |
Assigned to | None | joerg_wunsch | |||
Open/Closed | Open | Closed | |||
Fixed Release | None | 1.6.6 | |||
2008-08-11 | arcanum | Release | None | Any | |
2008-03-16 | arcanum | Category | None | Library |
Powered by Savane 3.13-caa5.
Corresponding source code
Yet another testcase,
I found out the first was because I freed a ptr twice. I think free should be robust to that but I don't know what ANSI-C specified in that case.
The first <<bugAcc()>> trigger the double free bug (infinite loop in malloc)
the second <<bugTim>> triggers the another infinite loop, quite possibly because of bug #25723. Yet, I still don't know the current cvs head includes the patch, I checked with the most recent branches (1.6-6) and haven't found significant differences with my version (v 1.5 2009/03/04)
(file #18338)