Open Bug 664661 Opened 14 years ago Updated 2 years ago

PR_Select() fails test selct_er

Categories

(NSPR :: NSPR, defect)

4.8.8
x86_64
FreeBSD
defect

Tracking

(Not tracked)

People

(Reporter: mi+mozilla, Unassigned)

Details

Attachments

(1 file)

The (unpatched) sect_er.c test hangs indefinitely, because PR_Select() on FreeBSD fails to detect, that it was passed an already closed file-descriptor.
The attached program behaves the same on both Linux and FreeBSD. On both systems, the output is: % ./select-test Trying to read-select on closed read-fd select: Bad file descriptor % ./select-test foo Trying to write-select on closed write-fd select: Success % ./select-test foo bar Trying to read-select on closed TCP-socket select: Success This suggests, the test should be failing on Linux as well (select-ing on an already closed TCP-socket returns success instead of reporting bad file descriptor), but it does not...

The bug assignee is inactive on Bugzilla, so the assignee is being reset.

Assignee: wtc → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: