Cuberite Forum

Full Version: Address Sanitizer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,

I just read a post about the new chrome,
And they listed a tool they used to find most of the problems.

http://code.google.com/p/address-sanitiz...sSanitizer

Could this perhaps be added to mcserver to check if there are anything it picks up and fix it ?
Looks great, but they only have a linux / clang version available, as far as I can see. I'm not a linux guy, so I don't think I'm capable of running that. Maybe someone else has the expertise necessary?

Although I think that after all those valgrind sessions there aren't many bugs left, if any at all.
This does say it will be supported with GCC (in 4.8) so it may be possible to use it. It might work with Cygwin even as well.
Well, what do I know, MCServer might compile under clang, so it might already be usable. No-one has tried that yet, though. Maybe we should (and then, if it works, we can try to make MCServer App for iOS Wink - iOS uses clang compiler afaik)
Any progress on thisBig Grin.
Haven't tried, really, because I don't see a reason why now - the server seems stable enough.

Also I no longer have access to a computer with clang environment installedTongue
Well as STR_Warrior posted in the tracker it aint working correctly on linux atm compiling fine. just chunks not loading correctly.
Stop via console sometimes works sometimes it says shutting down but still running and stops accepting console commands. having to reboot the whole thing.
I'm testing the server on linux (on a RasPi) quite regularly and chunks do load for me. It takes a bit of time, but they eventually do load.

The stop command hanging the server is a different thing, it's because of the webserver library we're using, I've been meaning to rewrite the whole thing for ages, just wasn't brave enough to start - it's an awful lot of work to do for a very little effect.
I see i myself am unable to get ingame cause of driver issues.
Anyway i only run the server for everything else you got to have STR_Warrior :p.
Because of any issues in cuberite, I bump this up.

Have found this and it looks interessting.
https://code.google.com/p/thread-sanitiz.../CppManual

This requires at least clang 3.2. I think adding a build option with the flag
Code:
-fsanitize=thread -fPIE -g -O2
would be a good idea. Had tested this yesterday and had already a look on it. I compiled cuberite with it and have a few stack traces on my account
https://gist.github.com/Seadragon91