Bug 76698 - DRI loader prints misleading error message
Summary: DRI loader prints misleading error message
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-27 16:35 UTC by Stefan Brüns
Modified: 2014-09-22 19:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Proposed patch (git format-patch) (1.38 KB, text/plain)
2014-03-27 16:35 UTC, Stefan Brüns
Details

Description Stefan Brüns 2014-03-27 16:35:48 UTC
Created attachment 96469 [details]
Proposed patch (git format-patch)

The DRI loader allows to specify multiple search paths for the drivers, either using LIBGL_DRIVERS_PATH or using the corresponding ./configure option.

If one of the attempts fail, an error message is printed on stderr:

ErrorMessageF("dlopen %s failed (%s)\n", realDriverName, dlerror());

, even when the next attempt may succeed.

When all pathes have been tried, an error message is printed, so the log level for the transient error should be lowered.
Comment 1 Emil Velikov 2014-09-22 19:34:16 UTC
A partial patch been pushed to master.

commit 0406f59eebb77e537b50f5cac3a20355686d2a4d
Author: Courtney Goeltzenleuchter <courtney@LunarG.com>
Date:   Wed Feb 26 14:27:08 2014 -0700

    mesa: glx: Reduce error log level

    The code that parses LIBGL_DRIVERS_PATH was printing an
    error for every attempted dlopen. It's not an error to
    have to check multiple items in the path, only an error if
    no suitable library is found. Reduced the load error to
    a warning to match behavior of dynamic linker.

    Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
    Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>


Imho with it enough to get things to a more comprehensive level, yet feel free to send a patch to the mailing list (mesa-dev@...) if you think the rest of the patch should be included :)


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.