#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:
Blocking:

Description

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.

Release:
RTEMS-4.6 and trunk

Attachments (2)

pr524.diff (1.4 KB) - added by Joel Sherrill on Dec 3, 2006 at 1:31:12 PM.
pr524.diff
leaktest.tar.gz (1.5 KB) - added by Joel Sherrill on Dec 3, 2006 at 1:31:12 PM.
leaktest.tar.gz

Download all attachments as: .zip

Change History (2)

comment:1 Changed on Nov 26, 2003 at 4:55:50 PM 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 Dec 3, 2006 at 1:31:12 PM by Joel Sherrill

Attachment: pr524.diff added

pr524.diff

Note: See TracTickets for help on using tickets.