#338 closed defect (fixed)
rtems_io_lookup_name is not re-enterant
Reported by: | sjohnson | Owned by: | Joel Sherrill |
---|---|---|---|
Priority: | normal | Milestone: | 2 |
Component: | score | Version: | unknown |
Severity: | major | Keywords: | |
Cc: | bugs@… | Blocked By: | |
Blocking: |
Description
rtems_io_lookup_name, due to a change in filesystem control could not retain the same calling semantics, without loosing it's ability to be re-enterant. This also creates potential race conditions as rtems_io_lookup_name is returning an adress of a static variable, which can be overwritten by a subsequent call to the function, while the previous caller is still using the reference.
Release:
Snapshot 20030128
Environment:
Linux, but any other would also exhibit problem
How-To-Repeat:
Use rtems_io_lookup_name twice, after the second call, the information returned by the first call is no longer valid, as it references the information required by the second call.
Attachments (1)
Change History (2)
comment:1 Changed on 02/03/03 at 23:14:05 by Joel Sherrill
Status: | assigned → closed |
---|
Changed on 12/03/06 at 13:31:13 by sjohnson
Attachment: | rtems_io_lookup_name_patch.tgz added |
---|
rtems_io_lookup_name_patch.tgz
State-Changed-From-To: open->closed
State-Changed-Why: Patch applied. Propagated to Ada bindings and documentation