Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
Does compiling your own work on CentOS5? If it's only my CI-built one, you may be able to get a more updated version of the libraries that it requires and make it work.
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
It's probably to do with the libc version on the buildserver. It uses a fairly new one and unfortunately they're not very backwards-compatible so it's probably the issue.
Posts: 1,162
Threads: 68
Joined: Mar 2013
Thanks: 245
Given 125 thank(s) in 100 post(s)
I compiled it in my server and now it works. Can you use an older version of libc in your server, bearbin?
Posts: 1,469
Threads: 57
Joined: Jul 2012
Thanks: 66
Given 127 thank(s) in 108 post(s)
I'm not exactly sure how do do that... Do you?
Posts: 6,485
Threads: 176
Joined: Jan 2012
Thanks: 131
Given 1075 thank(s) in 852 post(s)
07-25-2013, 06:34 AM
(This post was last modified: 07-25-2013, 06:49 AM by xoft.)
I have tried some more valgrind magic on MCServer, this time something called helgrind. It should list areas in the code that are prone to multithreading issues, such as possible race conditions and deadlocks. Unfortunately it seems my linux VM is rather dated and uses a bad STL lib that causes lots and lots of false positives in the string handling code, so anything useful gets drowned in pools of useless STL-related bloat.
I did, however, manage to get a peek at a few issues. Helgrind doesn't like our handling of the threads - setting the m_ShouldTerminate member variable to signal to the thread that it should terminate; it says possible race condition. Since I can argue that the usage is valid, I'll probably wrap that into a function and add that function to the helgrind suppressions file so that it isn't listed anymore.
I have yet to try logging in with a client to a helgrinded server...
Hmm, I seem unable to log in to wiki.vg, it says >>There is no user by the name "Xoft".<< WTF?