#582 closed defect (fixed)

POSIX message queue memory allocation problem

Reported by: Joel Sherrill Owned by: Joel Sherrill
Priority: normal Milestone: 2
Component: score Version: 4.6
Severity: major Keywords:
Cc: bugs@… Blocked By:
Blocking:

Description

POSIX message queues use malloc() to allocate memory for a
copy of the message queue's name. Now that malloc is
protected by a mutex and there is a check that mutex lock
is only called outside thread dispatch disable critical
sections, the message queue creation code should have been
using the RTEMS workspace to allocate memory.

I will add the fix and test patches as modifications.

Release:
RTEMS-4.6 and trunk

Attachments (2)

pr582.diff (4.8 KB) - added by Joel Sherrill on Dec 3, 2006 at 1:31:13 PM.
pr582.diff
msxpmsgq-diffs.tar.bz2 (1.6 KB) - added by Joel Sherrill on Dec 3, 2006 at 1:31:13 PM.
msxpmsgq-diffs.tar.bz2

Download all attachments as: .zip

Change History (3)

comment:1 Changed on Feb 26, 2004 at 1:19:18 PM by Joel Sherrill

Status: assignedwaiting

comment:2 Changed on Feb 26, 2004 at 1:29:56 PM by Joel Sherrill

Status: waitingclosed

State-Changed-From-To: feedback->closed
State-Changed-Why: Patches applied to both 4.6 branch and trunk. For some

reason, GNATS did not record my comment when attaching
the test patches from S

Changed on Dec 3, 2006 at 1:31:13 PM by Joel Sherrill

Attachment: pr582.diff added

pr582.diff

Note: See TracTickets for help on using tickets.