[Mesa-dev] Double free error on etnaviv driver.

Lucas Stach l.stach at pengutronix.de
Fri Jan 18 15:26:38 UTC 2019


Hi Sergey,

Am Donnerstag, den 17.01.2019, 18:14 +0300 schrieb Nazarov Sergey:
> Hi, Lucas!
> Here is result of execution standard Qt5 example application mainwindow
> built under custom buildroot with gcc-4.9.4, mesa3d-17.3.6.
> But we had the same error with latest buildroot and latest supported mesa and gcc.
> ---
> # ./mainwindow
> QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/root/.tmp/runtime-root'
> Failed to move cursor on screen LVDS1: -14
> *** Error in `./mainwindow': double free or corruption (fasttop): 0x021295b8 ***
> Aborted
> ---
> Some from valgrind output:
> ==1473== Invalid free() / delete / delete[] / realloc()
> ==1473==    at 0x48469F8: free (vg_replace_malloc.c:530)
> ==1473==    by 0x825C61B: _mesa_glsl_release_builtin_functions() (in /usr/lib/dri/imx-drm_dri.so)
> ==1473==    by 0x8286113: _mesa_destroy_shader_compiler (in /usr/lib/dri/imx-drm_dri.so)
> ==1473==    by 0x808F073: one_time_fini (in /usr/lib/dri/imx-drm_dri.so)
> ==1473==  Address 0x96f4ee8 is 0 bytes inside a block of size 24 free'd
> ==1473==    at 0x48469F8: free (vg_replace_malloc.c:530)
> ==1473==    by 0x4015CF7: _dl_close_worker (in /lib/ld-2.23.so)
> ==1473==  Block was alloc'd at
> ==1473==    at 0x48454B0: malloc (vg_replace_malloc.c:299)
> ==1473==    by 0x829EA7F: ralloc_size (in /usr/lib/dri/imx-drm_dri.so)

I've just been made aware of a peculiarity of the buildroot toolchain
configuration, which might well explain why you are seeing the obvious
crash, but no one else is complaining about this.

Can you try if [1] also solves this issue for you? If it does, I think
we should not try to work around this in Mesa.

Regards,
Lucas

[1] http://lists.busybox.net/pipermail/buildroot/2018-November/235923.html


More information about the mesa-dev mailing list