Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 569226 - =x11-misc/virtualgl-2.4.1-r2 openrc race condition
Summary: =x11-misc/virtualgl-2.4.1-r2 openrc race condition
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Proxy Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-22 18:37 UTC by Jason Schulz
Modified: 2015-12-27 10:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
suggested patch (vgl.patch,787 bytes, patch)
2015-12-22 18:40 UTC, Jason Schulz
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Schulz 2015-12-22 18:37:34 UTC
There is a race condition between virtualgl and the display manager init scripts.  The virtualgl script waits a minimum of three and a maximum of six seconds for the xauth file to be generated.  This causes bumblebee to initialize in an invalid state.

Reproducible: Always

Steps to Reproduce:
Add a seven second delay before starting the display manager (e.g. sleep 7).
Comment 1 Jason Schulz 2015-12-22 18:40:57 UTC
Created attachment 420344 [details, diff]
suggested patch

This lowers the wait time to a minimum of a second, and guarantees a consistent state between the display manager, virtualgl, and bumblebee.
Comment 2 Jason Schulz 2015-12-26 23:05:38 UTC
Github pull request (https://github.com/gentoo/gentoo/pull/531).
Comment 3 Jason Schulz 2015-12-27 01:07:02 UTC
Github pull request (https://github.com/gentoo/gentoo/pull/533).  Ignore last.
Comment 4 Patrice Clement gentoo-dev 2015-12-27 10:19:22 UTC
Merged.