Bug 94904

Summary: [vulkan, BSW] dEQP-VK.api.object_management.multithreaded_per_thread_device intermittent crash
Product: Mesa Reporter: Mark Janes <mark.a.janes>
Component: Drivers/DRI/i965Assignee: Mark Janes <mark.a.janes>
Status: RESOLVED FIXED QA Contact: Intel 3D Bugs Mailing List <intel-3d-bugs>
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Mark Janes 2016-04-12 18:12:01 UTC
This suite of tests crashes intermittently on BSW

repeatedly running the single test dEQP-VK.api.object_management.multithreaded_per_thread_device.shader_module
should generate a segfault about 25% of the time.

The stacktrace leaves mesa for libgcrypt at src/util/mesa-sha1.c:190
gcry_control(GCRYCTL_INITIALIZATION_FINISHED, 0);

Mesa initializes libgcrypt on first use, based on a static int.  This is not sufficient to protect the initialization routine from simultaneous execution.  Based on https://gnupg.org/documentation/manuals/gcrypt/Multi_002dThreading.html#Multi_002dThreading there should be a real mutex here.
Comment 1 Mark Janes 2016-04-12 22:19:58 UTC
patch on list:
https://lists.freedesktop.org/archives/mesa-dev/2016-April/112548.html

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.