glClear() seg. faults with ES 2 context

Any help for this strange problem?

When I choose configuration with EGL_RENDERABLE_TYPE = EGL_OPENGL_ES2_BIT and
create a context with EGL_CONTEXT_CLIENT_VERSION = 2. I am using X11 to create a window.

glClear() fails with segmentation fault.

When I request ES 1 configuration and context, glClear() don’t fail.

What could be causing this problem (ans I am using ESv2 library at Nokia N900)?