Camino hangs on launch sometimes (in RNG_SystemInfoForRNG)

NEW
Unassigned

Status

NSS
Libraries
10 years ago
7 years ago

People

(Reporter: Simon Fraser, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
Created attachment 328686 [details]
Sample

About once or twice a month, Camino hangs when I launch it just after booting my machine in the morning.

It's hanging in RNG_SystemInfoForRNG trying to gather entropy as SSL is being intialized for a site icon request. I think SystemInfoForRNG() is trying to call netstat:
http://lxr.mozilla.org/mozilla/source/security/nss/lib/freebl/unix_rand.c#1009

and maybe netstat doesn't like being woken up so early in the morning.
(Reporter)

Comment 1

10 years ago
Er, Camino 1.6.1 (1.8.1.14 2008051211), Mac OS X 10.5.4, 2 x 3 GHz Dual-Core Intel Xeon Mac Pro, 6Gb RAM etc.

Comment 2

10 years ago
Wouldn't that make this Core or NSS, then?
(Reporter)

Comment 3

10 years ago
Yeah
Assignee: nobody → nobody
Component: Security → Libraries
Product: Camino → NSS
QA Contact: camino → libraries
Version: 1.8 Branch → unspecified

Comment 4

9 years ago
If Mac OS X has /dev/urandom, perhaps we should add
defined(DARWIN) to this line in unix_rand.c:
http://mxr.mozilla.org/security/source/security/nss/lib/freebl/arcfour.c#408

981 #if defined(BSDI) || defined(LINUX)
982     if (bytes)
983         return;
984 #endif

Is there any problem invoking "netstat -ni" on Mac
OS X?

Comment 5

9 years ago
Sorry, the MXR link should have been
http://mxr.mozilla.org/security/source/security/nss/lib/freebl/unix_rand.c#927

Comment 6

9 years ago
Wrong again.  Here is the correct link:
http://mxr.mozilla.org/security/source/security/nss/lib/freebl/unix_rand.c#981
You need to log in before you can comment on or make changes to this bug.