Phew finally worked around the segfault.
BUt now facing some protocol message type '7 ' received error.
Oh well more poking around like a blind man.