bugzilla.mozilla.org has resumed normal operation. Attachments prior to 2014 will be unavailable for a few days. This is tracked in Bug 1475801.
Please report any other irregularities here.

Infinite loop when trying to connect to PSM process

VERIFIED WONTFIX

Status

Core Graveyard
Security: UI
--
trivial
VERIFIED WONTFIX
18 years ago
2 years ago

People

(Reporter: Echo Choi, Assigned: Javier Delgadillo)

Tracking

1.0 Branch
x86
Linux

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

18 years ago
In file cmtinit.c#260, the code looks like this:
237 #elif defined(XP_UNIX) || defined(XP_BEOS)
238     i = 0;
239     while (i<1000) {
240         i += sleep(10);
241     control = CMT_ControlConnect(mutex, sockFuncs);
242     if (control != NULL) {
243       break;
244     }
245     }
According to sleep() man page, it returns "Zero  if  the requested time has
elapsed, or the number of seconds left to sleep."

This code looks infinite to me if the CMT_ControlConnect() fails always (say, IF
the PSM process die at initialization for some reason.)

Comment 1

18 years ago
Reassigning.
Assignee: ddrinan → javi
Status: UNCONFIRMED → NEW
Ever confirmed: true

Comment 2

18 years ago
Reporter, is this still a problem now that PSM 2.0 is integrated into the 
nightly builds?
(Assignee)

Comment 3

18 years ago
PSM 2 has landed and no longer uses an out of process daemon.  Marking this as a
WONTFIX
Status: NEW → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → WONTFIX

Comment 4

18 years ago
Verified.
Status: RESOLVED → VERIFIED

Updated

14 years ago
Component: Security: UI → Security: UI
Product: PSM → Core

Updated

10 years ago
Version: psm1.3 → 1.0 Branch
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.