Can you figure out where in the vncpasswd code it's locking up?  That 
would help diagnose the issue.  If you're using an RPM-based system, you 
can install the turbovnc-debuginfo RPM and get a stack trace from gdb 
when it locks up.  Otherwise, you'll have to build vncpasswd from 
source, but it's straightforward.

This is a complete shot in the dark, but I'm wondering if maybe the 
/dev/urandom device is somehow giving you problems on some of your 
machines.  vncpasswd will read from /dev/urandom when it generates an 
OTP.  If that is the problem, then adding

#undef UseDevUrandom

to the top of vncpasswd.c should temporarily work around it, and it 
would be easy to add a more permanent workaround (a command line switch 
that avoids using /dev/urandom.)


On 10/23/13 1:36 PM, Rafael Guimaraes wrote:
> Hi,
>
> I have created a VNC session and after using it for sometime, it seems
> to be "locked". It is configured to use one-time-passwords and I just
> can't generate a new otp for access the session, vncpasswd hangs
> indefinitely when trying to get a new password.
>
> The session was created by the following command line:
> /opt/TurboVNC/bin/Xvnc :13 -desktop X -httpd
> /opt/TurboVNC/bin/../vnc/classes -auth /u/cnhu/.Xauthority
> -dontdisconnect -geometry 3192x1046 -depth 24 -rfbwait 120000 -otpauth
> -rfbport 5913 -fp
> /usr/share/X11/fonts/misc,/usr/share/X11/fonts/75dpi,/usr/share/X11/fonts/100dpi,/usr/share/X11/fonts/Type1,/usr/share/fonts/default/Type1
> -co /usr/share/X11/rgb -deferupdate 1
>
> When trying to launch a "vncpasswd -otp -display :13", I get no response
> and eventually I have to press Ctrl+C. I have runned the vncpasswd
> command line with strace and it seems to hang while trying to connect to
> Xvnc through the "/tmp/.X11-unix/X13" socket (not sure if I've got it
> right). Below you may check the end of the strace (until it hangs).
>
> What may the problem be? The same happened twice in two different
> machines. I have several other VNC sessions where this does not happen.
> Can I collect information from anywhere else that could help me trying
> to figure out what happened?
>
> uname({sys="Linux", node="server03", ...}) = 0
> socket(PF_FILE, SOCK_STREAM, 0)         = 3
> uname({sys="Linux", node="server03", ...}) = 0
> uname({sys="Linux", node="server03", ...}) = 0
> connect(3, {sa_family=AF_FILE, path="/tmp/.X11-unix/X13"...}, 20) = 0
> uname({sys="Linux", node="server03", ...}) = 0
> fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
> access("/u/cnhu/.Xauthority", R_OK)     = 0
> open("/u/cnhu/.Xauthority", O_RDONLY)   = 4
> fstat(4, {st_mode=S_IFREG|0600, st_size=13139, ...}) = 0
> mmap(NULL, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x2ab9583b5000
> read(4, "\1\0\0\10mi080113\0\00210\0\22MIT-MAGIC-COOK"..., 32768) = 13139
> read(4, "", 32768)                      = 0
> close(4)                                = 0
> munmap(0x2ab9583b5000, 32768)           = 0
> writev(3, [{"l\0\v\0\0\0\22\0\20\0\0\0", 12}, {"MIT-MAGIC-COOKIE-1",
> 18}, {"\0\0", 2}, {"e\30\226A>\316@\17Y8\365+V\21\365\f", 16}], 4) = 48
> fcntl(3, F_GETFL)                       = 0x2 (flags O_RDWR)
> fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
> read(3, 0x7fff0b98aab0, 8)              = -1 EAGAIN (Resource
> temporarily unavailable)
> poll([{fd=3, events=POLLIN}], 1, -1 <unfinished ...>

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
VirtualGL-Users mailing list
VirtualGL-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtualgl-users

Reply via email to