Created attachment 297846 [details]
Image will show the backtrace of the crashing thread and backtrace before crash.
In result when i am trying to print the return value, the application crashes with below message.
malloc: *** error for object 0x1704ae520: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
I am attaching the info image.
Can you provide a complete reproducible case? This is not enough information for an investigation.