pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/38226: startx locks waiting for /dev/random while generating an Xauth cookie



>Number:         38226
>Category:       pkg
>Synopsis:       startx locks waiting for /dev/random while generating an Xauth 
>cookie
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 12 09:55:00 +0000 2008
>Originator:     Rob Quinn
>Release:        Current with pkgsrc modular X.org xinit
>Organization:
>Environment:
>Description:
startx often locks up on me and I have to control-C and try again.  Control-T 
says I'm waiting on hexdump, but I think it's actually because /dev/random is 
"empty".

%grep hexdump `which startx`
mcookie=`dd if=/dev/random bs=16 count=1 2>/dev/null | hexdump -e \\"%08x\\"`

>How-To-Repeat:

>Fix:
Switch to /dev/urandom?  Are there other places (like xdm?) that might lock up 
the same way?



Home | Main Index | Thread Index | Old Index