getting a segfault from memcpy-ssse3 and stack overflow says it can be caused by threading issues