Closed Bug 307582 Opened 19 years ago Closed 6 months ago

nameshm1 test case hangs on AIX and can hang on Solaris

Categories

(NSPR :: NSPR, defect)

4.6.1
Sun
Solaris
defect

Tracking

(Not tracked)

RESOLVED INACTIVE

People

(Reporter: jason.m.reid, Unassigned)

Details

nameshm1 hangs on AIX 5.1 and Solaris 5.8. Since it
works on Solaris 10 machines, I suspect this is
an OS issue. Documenting this in case someone searches.
This also occurs on Solaris 9.
mace[svbld]:/home/svbld> uname -a
SunOS mace 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Fire-V240
mace[svbld]:/home/svbld> cat /etc/release
                        Solaris 9 9/04 s9s_u7wos_09 SPARC
           Copyright 2004 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                             Assembled 29 June 2004
QA Contact: wtchang → nspr
And on Mac OS X:

$ DYLD_LIBRARY_PATH=../../dist/lib ./nameshm1                        
Assertion failure: sem1, at ../../../mozilla/nsprpub/pr/tests/nameshm1.c:442
Abort trap
$

This is from a freshly built NSPR version 4.6.8.
An assertion failure is different from a hung test.  So the assertion failure
on Mac OS X is a different problem.  The assertion at line 442 fails because
NSPR interprocess semaphores are not implemented on Mac OS X:

441     sem1 = PR_OpenSemaphore( SEM_NAME1, PR_SEM_CREATE, SEM_MODE, 0 );
442     PR_ASSERT( sem1 );

So PR_OpenSemaphore always fails with error -5992 (PR_NOT_IMPLEMENTED_ERROR).
(note: identical comment in bug 408799)

Is there a bug in the system somewhere saying something like 'no implementation of semaphores for Mac'? I searchd for 'semaphore' in any comment and did not find one.

It is possible to do some kind of semaphore on a Mac. So, what is the actual issue? Bug 408799 says there is something missing on the Mac. If so, do you have a radar bug # for a bug with Apple? If there is such a bug, I might be able to track it down with people in Apple.
Severity: normal → S3

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

Assignee: wtc → nobody
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.