Bug 1283774

Summary: Valgrind: FATAL: aspacem assertion failed
Product: [Fedora] Fedora Reporter: Lyude <lyude>
Component: valgrindAssignee: Mark Wielaard <mjw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 23CC: dodji, jakub, mjw, mjw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: valgrind-3.11.0-8.fc23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-28 18:23:13 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:
Embargoed:

Description Lyude 2015-11-19 20:13:08 UTC
Description of problem:
Valgrind fails to run weston (and probably other programs), crashes with the following message:

--28264:0: aspacem Valgrind: FATAL: aspacem assertion failed:
--28264:0: aspacem   ! is_freeslot(ix)
--28264:0: aspacem   at m_aspacemgr/aspacemgr-segnames.c:223 (get_refcount)
--28264:0: aspacem Exiting now.

Version-Release number of selected component (if applicable):
valgrind-3.11.0-1.fc23
Git snapshot of weston from http://cgit.freedesktop.org/wayland/weston/commit/?id=870fadced3f19659b60574888432b79713776097

How reproducible:
Always

Steps to Reproduce:
1. Build weston in it's own prefix based off the git commit linked
2. Try to run it under valgrind
3. Crash

Actual results:
Valgrind crashes

Expected results:
Valgrind should be able to run the program normally

Additional info:
I've confirmed this isn't a bug in weston itself, and is actually a regression with the valgrind package. If I try an older valgrind build for the fedora 23 beta from http://koji.fedoraproject.org/koji/buildinfo?buildID=678500 valgrind is able to run weston without any issues.

Comment 1 Mark Wielaard 2016-01-15 14:11:44 UTC
Note you don't have to build weston from scratch to replicate.
Using the weston package from fedora also triggers it when using the X11 backend (thanks to Tom Hughes for suggesting to try that out).

weston-1.9.0-1.fc23.x86_64
valgrind-3.11.0-1.fc23.x86_64

valgrind weston --backend=x11-backend.so
[...]
--30632:0: aspacem Valgrind: FATAL: aspacem assertion failed:
--30632:0: aspacem   ! is_freeslot(ix)
--30632:0: aspacem   at m_aspacemgr/aspacemgr-segnames.c:223 (get_refcount)
--30632:0: aspacem Exiting now.

Comment 2 Fedora Update System 2016-01-21 20:39:58 UTC
valgrind-3.11.0-8.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-3795b5d3a9

Comment 3 Fedora Update System 2016-01-24 04:51:30 UTC
valgrind-3.11.0-8.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-3795b5d3a9

Comment 4 Fedora Update System 2016-01-28 18:23:03 UTC
valgrind-3.11.0-8.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.