segmentation fault with binary shader

Hi Team,

I am trying to use the binary shader. However I am getting segmentation fault. Any pointers to fix it would be helpful.

#version 320 es
in vec4 position;
out vec2 color;

void main (void)
    gl_Position = position;
    color.x = position.x + position.y;
    color.y = position.x - position.y;

I compiled using below command:

../Mali_Offline_Compiler_v6.4.0/malisc -c Mali-T880 -r r1p0 -d Mali-T600_r13p0-00rel0 -o vert.bin -v shader.vert

I am using binary shader in following way and getting seg fault in glShaderBinary().

    f = fopen("vert.bin", "rb");
    fseek(f, 0, SEEK_END);
    size = ftell(f);
    fseek(f, 0, SEEK_SET);
    vsBuffer = (GLubyte *) malloc(size);
    rsize = fread(vsBuffer, 1, size, f);
    CHECK_GL_ERROR(!glShaderBinary(1, &vert, GL_MALI_SHADER_BINARY_ARM, (void*)vsBuffer, size), glShaderBinary, "failed");

Best Regards,