Using the Freescale Ubuntu image that includes the gpu-viv-bin-mx6q package, I am receiving a segmentation fault while trying to run one of the OpenGL ES 2 sample programs provided by mesa.
I downloaded the demo application mesa-demos-8.0.1.tar.gz from:
ftp://ftp.freedesktop.org/pub/mesa/demos/8.0.1/
in the mesa-demos-8.0.1/src/egl/opengles2 directory, I ran:
gcc -g es2_info.c -lEGL -lX11 -lGLESv2
./a.out
This gives me a segmentation fault with the following back trace:
linaro@linaro-ubuntu-desktop:/media/toshiba/src/opengles/mesa-demos-8.0.1/src/egl/opengles2$ gdb a.out core
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-linux-gnueabi".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /media/toshiba/src/opengles/mesa-demos-8.0.1/src/egl/opengles2/a.out...done.
[New LWP 15576]
[Thread debugging using libthread_db enabled]
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
#0 0x2ae8c720 in gcoHAL_QueryChipCount () from /usr/lib/libGAL.so
(gdb) bt
#0 0x2ae8c720 in gcoHAL_QueryChipCount () from /usr/lib/libGAL.so
#1 0x2ac7a058 in veglGetThreadData () from /usr/lib/libEGL.so
#2 0x2ac74554 in eglGetDisplay () from /usr/lib/libEGL.so
#3 0x000091c4 in main (argc=1, argv=0x7e90d434) at es2_info.c:253
(gdb) quit
Please assist with this problem as we are unable to proceed further without the source code.
Thanks