Bug 1305697 - SIGFPE pthread_barrier_destroy.c:40
Summary: SIGFPE pthread_barrier_destroy.c:40
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: mesa
Version: 24
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-08 22:42 UTC by Vinson Lee
Modified: 2016-12-27 07:38 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-27 07:38:40 UTC
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.