segfault on mac osx.