[Mesa-dev] segfault in pstip_bind_sampler_states
Kevin H. Hobbs
hobbsk at ohio.edu
Fri Aug 9 10:53:37 PDT 2013
On 08/09/2013 09:16 AM, Brian Paul wrote:
> On 08/07/2013 12:17 PM, Kevin H. Hobbs wrote:
>>
>> #0 pstip_bind_sampler_states (pipe=<optimized out>, num=0, sampler=0x0)
>> at draw/draw_pipe_pstipple.c:713
>>
> Hmm, I'd expect memcpy() of length zero to be fine even if src/dst were
> null.
>
memcpy is fine, the segfault happens at line 713 two lines below where :
pstip->state.samplers[i] = NULL;
I asked gdb what to print pstip->state.samplers[0] and it told me
something like "unavailable".
> Can you try this patch?
>
I can and I will.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 255 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130809/e0e85d3d/attachment.pgp>
More information about the mesa-dev
mailing list