Segfault happened at: 0x7f502e8601b4 <_IO_flush_all_lockp+324>: callq *0x18(%rax) PC (0x7f502e8601b4) ok source "*0x18(%rax)" ok destination "(%rsp)" (0x7f502d945ca0) ok Stack memory exhausted (SP below stack segment) SP (0x7f502d945ca0) ok Reason could not be automatically determined.