initialize_piglit_extension_support broken
When running bin/egl_khr_fence_sync -auto
it sometimes crashes. Valgrind points to extension string handling:
==271799== Invalid read of size 1
==271799== at 0x484C784: strcmp (vg_replace_strmem.c:940)
==271799== by 0x4B54B89: piglit_is_extension_in_array (piglit-util.c:162)
==271799== by 0x4A6D8A9: piglit_is_extension_supported (piglit-util-gl.c:129)
==271799== by 0x4025C6: init_context (egl_khr_fence_sync.c:199)
==271799== by 0x4027AD: test_setup (egl_khr_fence_sync.c:280)
==271799== by 0x402B81: test_eglCreateSyncKHR_invalid_attrib_list (egl_khr_fence_sync.c:443)
==271799== by 0x4B55C64: piglit_run_selected_subtests (piglit-util.c:806)
==271799== by 0x4047D7: main (egl_khr_fence_sync.c:1820)
==271799== Address 0x7692feb is not stack'd, malloc'd or (recently) free'd
It looks like gl_extension_array_from_getstringi
is somehow broken. If I make initialize_piglit_extension_support
to always use gl_extension_array_from_getstring
then it works fine.
Edited by Tapani Pälli