[Bug 1542] New: pipe_control_t is not deallocated if fifo_open is attempted with O_WRONLY | O_NONBLOCK

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Jun 1 08:52:12 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1542

           Summary: pipe_control_t is not deallocated if fifo_open is
                    attempted with O_WRONLY | O_NONBLOCK
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: filesystem
        AssignedTo: chrisj at rtems.org
        ReportedBy: bharath.s.jois at gmail.com
                CC: joel.sherrill at oarcorp.com


With open(<any-fifo-file-with-no-readers>, O_WRONLY, O_NONBLOCK), 

- The pipe_control_t is created [OK]
- The mode is checked [OK]
- If mode is WRONLY & number of readers = 0 & open mode is NONBLOCK, error
ENXIO is set and an attempt to release pipe is made [OK]
(Note that pipe->Writers is not incremented yet and hence is 0)
In pipe_release, the pipe is not deallocated [NOK]

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list