[Mesa-dev] [PATCH 3/3] glsl/cache/tests: Cast cache_get result to avoid compiler warning

Aaron Watry awatry at gmail.com
Wed Nov 23 16:12:54 UTC 2016


On Tue, Nov 22, 2016 at 8:27 PM, Aaron Watry <awatry at gmail.com> wrote:

>
>
> On Tue, Nov 22, 2016 at 2:48 PM, Matt Turner <mattst88 at gmail.com> wrote:
>
>> On 11/22, Aaron Watry wrote:
>>
>>> disk_cache_get returns void*, but we were storing/comparing a char*.
>>>
>>> Signed-off-by: Aaron Watry <awatry at gmail.com>
>>> ---
>>> Note that this did, and still, segfaults for me when I actually run it...
>>>
>>
>> Strange. It passes for me.
>>
>
A post-mortem in case someone else runs into it.  This ended up being a
local environment issue.

In stepping through the disk_cache.c code, I found that getpwuid_r is
failing to find my passwd entry. My current login account is coming from an
active directory server (and therefore doesn't actually have an entry in
/etc/passwd).

It worked fine on 64-bit, but failed on 32-bit.  A little searching led me
to discover that libnss-sss:i386 was missing. I installed that, and this
test is passing now.

Sorry for the noise, and the review on the other two patches.

--Aaron


>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20161123/dd7a3583/attachment.html>


More information about the mesa-dev mailing list