Bug 94904 - [vulkan, BSW] dEQP-VK.api.object_management.multithreaded_per_thread_device intermittent crash
Summary: [vulkan, BSW] dEQP-VK.api.object_management.multithreaded_per_thread_device i...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Mark Janes
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-12 18:12 UTC by Mark Janes
Modified: 2016-04-13 15:30 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.