Address Sanitizer
#1
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 ?
Reply
Thanks given by:
#2
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.
Reply
Thanks given by:
#3
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.
Reply
Thanks given by:
#4
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)
Reply
Thanks given by:
#5
Any progress on thisBig Grin.
Reply
Thanks given by:
#6
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
Reply
Thanks given by:
#7
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.
Reply
Thanks given by:
#8
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.
Reply
Thanks given by:
#9
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.
Reply
Thanks given by:
#10
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 @worktycho 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
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)