Segmentation Fault in C Function Printing Double from Assembly Code - DevHeads IoT Integration Server