#524 closed defect (fixed)

libc reentrancy support leaks memory on thread exit

Reported by: Joel Sherrill Owned by: Jennifer Averett
Priority: normal Milestone: 2
Component: fs Version: 4.6
Severity: major Keywords:
Cc: bugs@…, joel.sherrill@… Blocked By:


Per the attached test, it is clear that 1K of memory is being lost each time a thread uses printf and exits.

Fix has been developed and will be committed once a number is assigned. It does NOT require a new toolset build.

RTEMS-4.6 and trunk

Attachments (2)

pr524.diff (1.4 KB) - added by Joel Sherrill on 12/03/06 at 13:31:12.
leaktest.tar.gz (1.5 KB) - added by Joel Sherrill on 12/03/06 at 13:31:12.

Download all attachments as: .zip

Change History (2)

comment:1 Changed on 11/26/03 at 16:55:50 by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: Patch attached to trunk and 4.6 branch.

Flush and free buffers on stdin, stdout, and stderr. Technically /dev/console is only opened once so it can only be closed once or output stops. Any other open file descriptors can be flushed and closed.

Changed on 12/03/06 at 13:31:12 by Joel Sherrill

Attachment: pr524.diff added


Note: See TracTickets for help on using tickets.