I get this tightvncserver crash all the time and it's really annoying. Typically the server will run from 1 to 24 hours before crashing. I've verified that it happens on my machine (x86_64 running Ubuntu 8.04 LTS, icewm window manager) with both the tightvncserver version 1.2.9-22 that ships with Ubuntu 8.0.4 and the newer tightvncserver version 1.3.9-4 that ships with the current Ubuntu distribution.
I did compile the tightvnc server with -g to see where the crash happens. It's in file Xvnc/programs/Xserver/os/WaitFor.c at about line 463, which has this: pClientsReady[nready++] = client_index; As far as I can tell, the clientReady array (which pClientsReady points to) is dimensioned to be size MaxClients, which in turn is set to MAXSOCKETS, which is 128. So if nready >= 128, this line will cause the crash. I instrumented the line in question to print out nready if it reaches 128, and in fact, it does reach and exceed 128, which triggers the crash. The last crash I had, nready incremented from 128 to 320 in less than a second, at which point the server crashed. Unfortunately I know virtually nothing about either tightvnc or X windows, so I don't know where to go from here. Is the problem that clients are not being released, so they accumulate? Or that requests are coming too fast, and need to be throttled back? Or that more should be allowed? Or something else? Any suggestions appreciated. -- Crashes under tightvncserver, brings down X session https://bugs.launchpad.net/bugs/344264 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
