Backtrace of crash in dEQP-EGL.functional.sharing.gles2.multithread.simple.images.texture_source.create_texture_render Repo versions: mesa: master@d6545f2 deqp: nougat-cts-dev@4acf725 with local patches deqp-target: x11_egl Crashing line is src/mesa/main/shaderobj.c:253: 248│ void 249│ _mesa_reference_shader_program_(struct gl_context *ctx, 250│ struct gl_shader_program **ptr, 251│ struct gl_shader_program *shProg) 252│ { **253│ assert(ptr); 254│ if (*ptr == shProg) { 255│ /* no-op */ 256│ return; 257│ } Output of coredumpctl info -1: PID: 14189 (deqp-egl) UID: 405195 (chadversary) GID: 5000 (eng) Signal: 6 (ABRT) Timestamp: Tue 2016-12-27 13:53:19 PST (6min ago) Command Line: ./deqp-egl --deqp-log-filename=/var/tmp/testlog.qpa -n dEQP-EGL.functional.sharing.gles2.multithread.simple.images.texture_source.create_texture_render Executable: /opt/goomba/deqp/+/nougat-cts-dev/build/x11_egl/modules/egl/deqp-egl Control Group: / Slice: -.slice Boot ID: 6fee8011c242472bbb6af7180293ae7a Machine ID: 27ad64a3d99d45fca10c3000fa97c2dd Hostname: lucifer.tu Coredump: /var/lib/systemd/coredump/core.deqp-egl.405195.6fee8011c242472bbb6af7180293ae7a.14189.1482875599000000000000.lz4 Message: Process 14189 (deqp-egl) of user 405195 dumped core. Stack trace of thread 14191: #0 0x00007f24752d704f raise (libc.so.6) #1 0x00007f24752d847a abort (libc.so.6) #2 0x00007f24752cfea7 __assert_fail_base (libc.so.6) #3 0x00007f24752cff52 __assert_fail (libc.so.6) #4 0x00007f247224c188 _mesa_reference_shader_program (i965_dri.so) #5 0x00007f24722472f1 _mesa_active_program (i965_dri.so) #6 0x00007f24722474bf _mesa_use_program (i965_dri.so) #7 0x00007f24722486fb _mesa_UseProgram (i965_dri.so) #8 0x000000000061982c _ZN4deqp3egl15GLES2ThreadTest13RenderTexture4execERN3tcu10ThreadUtil6ThreadE (deqp-egl) #9 0x000000000060f6b4 _ZN4deqp3egl15GLES2ThreadTest9Operation7executeERN3tcu10ThreadUtil6ThreadE (deqp-egl) #10 0x00000000006da774 _ZN3tcu10ThreadUtil6Thread3runEv (deqp-egl) #11 0x00000000007fc523 threadFunc (deqp-egl) #12 0x00000000007fd6f6 startThread (deqp-egl) #13 0x00007f24762f8454 start_thread (libpthread.so.0) #14 0x00007f247538c7df __clone (libc.so.6) Stack trace of thread 14190: #0 0x00007f24724af3f8 _mesa_fnv32_1a_accumulate_block (i965_dri.so) #1 0x00007f24724aff96 _mesa_hash_data (i965_dri.so) #2 0x00007f247255c23d _mesa_hash_pointer (i965_dri.so) #3 0x00007f24724b77c4 _mesa_set_add (i965_dri.so) #4 0x00007f247255cfa1 validate_ssa_src (i965_dri.so) #5 0x00007f247255d08f validate_src (i965_dri.so) #6 0x00007f247255df05 validate_intrinsic_instr (i965_dri.so) #7 0x00007f247255e847 validate_instr (i965_dri.so) #8 0x00007f247255ebe0 validate_block (i965_dri.so) #9 0x00007f247255f6fd validate_cf_node (i965_dri.so) #10 0x00007f247256067a validate_function_impl (i965_dri.so) #11 0x00007f2472560799 validate_function (i965_dri.so) #12 0x00007f2472560d56 nir_validate_shader (i965_dri.so) #13 0x00007f247269809e nir_optimize (i965_dri.so) #14 0x00007f2472698f56 brw_postprocess_nir (i965_dri.so) #15 0x00007f247265842e brw_compile_fs (i965_dri.so) #16 0x00007f24725bea17 brw_codegen_wm_prog (i965_dri.so) #17 0x00007f24725c0254 brw_fs_precompile (i965_dri.so) #18 0x00007f247259e267 brw_shader_precompile (i965_dri.so) #19 0x00007f247259ed6b brw_link_shader (i965_dri.so) #20 0x00007f24723b70f7 _mesa_glsl_link_shader (i965_dri.so) #21 0x00007f2472155a0f create_new_program (i965_dri.so) #22 0x00007f2472155ae7 _mesa_get_fixed_func_fragment_program (i965_dri.so) #23 0x00007f2472250f14 update_program (i965_dri.so) #24 0x00007f24722517d2 _mesa_update_state_locked (i965_dri.so) #25 0x00007f2472251881 _mesa_update_state (i965_dri.so) #26 0x00007f247223ec4d _mesa_ReadnPixelsARB (i965_dri.so) #27 0x00007f247223f15c _mesa_ReadPixels (i965_dri.so) #28 0x000000000061a0a1 _ZN4deqp3egl15GLES2ThreadTest10ReadPixels4execERN3tcu10ThreadUtil6ThreadE (deqp-egl) #29 0x000000000060f6b4 _ZN4deqp3egl15GLES2ThreadTest9Operation7executeERN3tcu10ThreadUtil6ThreadE (deqp-egl) #30 0x00000000006da774 _ZN3tcu10ThreadUtil6Thread3runEv (deqp-egl) #31 0x00000000007fc523 threadFunc (deqp-egl) #32 0x00000000007fd6f6 startThread (deqp-egl) #33 0x00007f24762f8454 start_thread (libpthread.so.0) #34 0x00007f247538c7df __clone (libc.so.6) Stack trace of thread 14189: #0 0x00007f24762f968d pthread_join (libpthread.so.0) #1 0x00000000007fd882 deThread_join (deqp-egl) #2 0x00000000007fc647 _ZN2de6Thread4joinEv (deqp-egl) #3 0x00000000006293f9 _ZN4deqp3egl24GLES2ThreadedSharingTest7iterateEv (deqp-egl) #4 0x00000000005f3d7d _ZN4deqp3egl15TestCaseWrapper7iterateEPN3tcu8TestCaseE (deqp-egl) #5 0x00000000006b197a _ZN3tcu19TestSessionExecutor15iterateTestCaseEPNS_8TestCaseE (deqp-egl) #6 0x00000000006b0ecf _ZN3tcu19TestSessionExecutor7iterateEv (deqp-egl) #7 0x0000000000692f0d _ZN3tcu3App7iterateEv (deqp-egl) #8 0x000000000058942f main (deqp-egl) #9 0x00007f24752c4291 __libc_start_main (libc.so.6) #10 0x000000000058921a _start (deqp-egl)