debug for osx segfault
remove fprintf
Merge remote-tracking branch 'origin/master'
Fixing segfault