Bug 1305697

Summary: SIGFPE pthread_barrier_destroy.c:40
Product: [Fedora] Fedora Reporter: Vinson Lee <vlee>
Component: mesaAssignee: Adam Jackson <ajax>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: ajax, arjun.is, codonell, dj, fschwarz, fweimer, ignatenko, jakub, law, mfabian, pfrankli, siddhesh, triegel
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-27 07:38:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vinson Lee 2016-02-08 22:42:01 UTC
Description of problem:
SIGFPE pthread_barrier_destroy.c:40

Version-Release number of selected component (if applicable):
mesa-libGL-11.2.0-0.devel.8.24ea81a.fc24.x86_64


How reproducible:
100%


Steps to Reproduce:
1. glxinfo
2.
3.

Actual results:
(gdb) bt
#0  0x00007efcd71e4f79 in pthread_barrier_destroy (barrier=0x55e4dec63450) at pthread_barrier_destroy.c:40
#1  0x00007efcd64bb1af in lp_rast_destroy () from /usr/lib64/dri/swrast_dri.so
#2  0x00007efcd64c4fa1 in llvmpipe_destroy_screen () from /usr/lib64/dri/swrast_dri.so
#3  0x00007efcd610c06f in dri_destroy_screen_helper () from /usr/lib64/dri/swrast_dri.so
#4  0x00007efcd610c115 in dri_destroy_screen () from /usr/lib64/dri/swrast_dri.so
#5  0x00007efcd610a47f in driDestroyScreen () from /usr/lib64/dri/swrast_dri.so
#6  0x00007efcda776e82 in driswDestroyScreen () from /lib64/libGL.so.1
#7  0x00007efcda752e66 in FreeScreenConfigs.isra.3 () from /lib64/libGL.so.1
#8  0x00007efcda752ee9 in glx_display_free () from /lib64/libGL.so.1
#9  0x00007efcda75303e in __glXCloseDisplay () from /lib64/libGL.so.1
#10 0x00007efcda415db2 in XCloseDisplay (dpy=0x55e4debdc030) at ClDisplay.c:65
#11 0x000055e4de65ce16 in main (argc=<optimized out>, argv=<optimized out>) at glxinfo.c:1278
(gdb) frame 0
#0  0x00007efcd71e4f79 in pthread_barrier_destroy (barrier=0x55e4dec63450) at pthread_barrier_destroy.c:40
40					   - BARRIER_IN_THRESHOLD % count;
(gdb) print count
$1 = 0

Expected results:


Additional info:

Comment 1 Florian Weimer 2016-02-09 19:01:19 UTC
This is consistent with calling pthread_barrier_destroy on a barrier which has not been initialized with pthread_barrier_init.  This is likely an application bug.  (The current glibc implementation does not update the count member after initialization.)

Comment 2 Jan Kurik 2016-02-24 14:27:09 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora24#Rawhide_Rebase

Comment 3 Vinson Lee 2016-12-27 07:38:40 UTC
Fixed with this mesa commmit: https://cgit.freedesktop.org/mesa/mesa/commit/?id=4ed4c1d9210b11ce6faea81455c21531904ea45b.