Open Bug 306044 Opened 19 years ago Updated 2 years ago

PHP_TryLock hangs when lock is set by another process.

Categories

(NSPR :: NSPR, defect)

x86
Windows XP
defect

Tracking

(Not tracked)

People

(Reporter: me.edwards, Unassigned)

Details

(Keywords: hang)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Build Identifier: Build 4.6.0

PHP_TryLock now hangs.  In a multithreaded environment, two threads have access 
to same PRLock.  Initially thread one locks the lock, and the other thread 
try's it using PHP_TryLock.  In a previously used NSPR Lib. 4.2 the call 
returned PR_FAILURE as expected.  In the mentioned version (4.6.0) it hangs.

Reproducible: Always

Steps to Reproduce:
1. 2 processes running, sharing access to Lock
2. Process 1 - Locks the lock
3. Process 2 - Check's lock using PHP_TryLock

Actual Results:  
On the line using the PHP_TryLock function, the system hangs, no crash occurs, 
but no further commands are processed.

Expected Results:  
Returns PR_Failure to the function call (as lock is already in use)
Keywords: hang
What platform is this?

What's the name of the NSPR shared (dynamic) library?
libnspr4.so, nspr4.dll, or libnspr4.dll?
QA Contact: wtchang → nspr
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Severity: normal → S3

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

Assignee: wtc → nobody
Status: ASSIGNED → NEW
You need to log in before you can comment on or make changes to this bug.