2015-08-08 16:05 GMT+08:00 Timothy Arceri <[email protected]>:
> This change is causing a bunch of issues during a piglit run on my system. I'm
> getting error messages like this:
>
> *** Error in `/home/timothy/data/piglit/bin/glslparsertest_gles2': free():
> invalid pointer: 0x00000000022d4be0 ***
>
> Any ideas what might be wrong?
The problem is probably here:
> + if (loader_driver_name) {
> + free(driver_name);
> + driver_name = loader_driver_name;
> + }
> +
I think the 'free' here might be wrong. The glx code frees driverName because
the helper function DRI2Connect there malloc'ed a buffer to hold driver name
but the driver_name here is directly got from xcb reply. As you can see in the
following code, it should be dup'ed to use.
Regards,
Boyan Ding
> _______________________________________________
> mesa-dev mailing list
> [email protected]
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev