Test 'unicode' is failing with segmentaion fault on s390x.
At ma_error.c:289 casting of (MARIADB_CHARSET_INFO **) into (Client_Charset *) is done which causes garbage values on s390x but not on x86.
Creating a new Client_Charset object and passing its address to MADB_SetString is fixing the segmentation fault at this point,
but after execution goes ahead segmentation fault occurs at ma_error.c:289
Could you please suggest a fix?
Attached gdb logs for s390x and x86.