[Mesa-dev] Query with respect to support of x32

Haridasan, Sujith Sujith_Haridasan at mentor.com
Tue Feb 14 13:12:17 UTC 2017


Hi,

I am using mesa 12.0.1 from yocto project (http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-graphics/mesa/mesa_12.0.1.bb?h=morty). While building core-image-sato ( which is the graphical image ), I found that Qt5 examples for opengl are failing for x32. The target machine used is intel-corei7-64. This is for minnowmax board. The image uses mesa and below is the console log of one of the Qt5 example ran on the target:

Log:

Python Exception <class 'ImportError'> No module named 'imp':
gdb: warning:
Could not load the Python gdb module from `/usr/share/gdb/python'.
Limited Python support is available from the _gdb module.
Suggest passing --data-directory=/path/to/gdb/data-directory.

GNU gdb (GDB) 7.11.0.20160511-git
Copyright (C) 2016 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 "x86_64-mel-linux-gnux32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./opengl/hellowindow/hellowindow...Reading symbols from /usr/share/qt5/examples/opengl/hellowindow/.debug/hellowindow...done.
done.
(gdb) run
Starting program: /usr/share/qt5/examples/opengl/hellowindow/hellowindow
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Traceback (most recent call last):
  File "/usr/share/gdb/auto-load/usr/libx32/libglib-2.0.so.0.4800.2-gdb.py", line 2, in <module>
    import gdb
  File "/usr/share/gdb/python/gdb/__init__.py", line 23, in <module>
    from imp import reload
ImportError: No module named 'imp'
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
[New LWP 731]
[New LWP 732]
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
[New LWP 733]
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
[  944.753665] NOHZ: local_softirq_pending 202
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <clas[  945.196771] NOHZ: local_softirq_pending 02
s 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Thread 1 "hellowindow" received signal SIGSEGV, Segmentation fault.
0xf6772cab in glGetString () from /usr/libx32/libGLESv2.so.2
(gdb) bt
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
Python Exception <class 'ImportError'> No module named 'imp':
#0  0xf6772cab in glGetString () from /usr/libx32/libGLESv2.so.2
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
#1  0xebee492a in QEGLPlatformContext::updateFormatFromGL (this=<optimized out>) at /usr/src/debug/qtbase/5.6.2+gitAUTOINC+b4ada3f0d8-r0/git/src/platformsupport/eglconvenience/qeglplatformcontext.cpp:314
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
#2  0xf7177131 in QOpenGLContext::create (this=<optimized out>) at /usr/src/debug/qtbase/5.6.2+gitAUTOINC+b4ada3f0d8-r0/git/src/gui/kernel/qopenglcontext.cpp:609
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
#3  0x00404221 in Renderer::Renderer (this=<optimized out>, format=..., share=<optimized out>, screen=<optimized out>)
    at /usr/src/debug/qtbase/5.6.2+gitAUTOINC+b4ada3f0d8-r0/git/examples/opengl/hellowindow/hellowindow.cpp:58
#4  0x00403367 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/qtbase/5.6.2+gitAUTOINC+b4ada3f0d8-r0/git/examples/opengl/hellowindow/main.cpp:71
Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:
(gdb) quit
A debugging session is active.

        Inferior 1 [process 724] will be killed.

Quit anyway? (y or n) y
root at intel-corei7-64:/usr/share/qt5/examples#

I saw that glGetString was causing the issue from the backtrace in gdb.

To my surprise the mesa-demos are also failing with segmentation fault.

I have even tried to apply patch: https://cgit.freedesktop.org/mesa/mesa/commit/?id=89458366585c34879b70110758bb4fd3acb62ce0 now the error changed to bus error:

Below are the logs:

root at intel-corei7-64:/usr/share/qt5/examples# ./opengl/hellowindow/hellowindow

Bus error (core dumped)

root at intel-corei7-64:/usr/share/qt5/examples# gdb ./opengl/hellowindow/hellowindow

Python Exception <class 'ImportError'> No module named 'imp':

gdb: warning:

Could not load the Python gdb module from `/usr/share/gdb/python'.

Limited Python support is available from the _gdb module.

Suggest passing --data-directory=/path/to/gdb/data-directory.



GNU gdb (GDB) 7.11.0.20160511-git

Copyright (C) 2016 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 "x86_64-mel-linux-gnux32".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

Find the GDB manual and other documentation resources online at:

<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".

Type "apropos word" to search for commands related to "word"...

Reading symbols from ./opengl/hellowindow/hellowindow...Reading symbols from /usr/share/qt5/examples/opengl/hellowindow/.debug/hellowindow...done.

done.

(gdb) run

Starting program: /usr/share/qt5/examples/opengl/hellowindow/hellowindow

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.

Traceback (most recent call last):

  File "/usr/share/gdb/auto-load/usr/libx32/libglib-2.0.so.0.4800.2-gdb.py", line 2, in <module>

    import gdb

  File "/usr/share/gdb/python/gdb/__init__.py", line 23, in <module>

    from imp import reload

ImportError: No module named 'imp'

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

[New LWP 771]

[New LWP 772]

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

[New LWP 773]

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

[New LWP 774]

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:



Thread 1 "hellowindow" received signal SIGBUS, Bus error.

0xf7fb8030 in ?? ()

(gdb) bt

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

Python Exception <class 'ImportError'> No module named 'imp':

#0  0xf7fb8030 in ?? ()

#1  0x00000000 in ?? ()

Python Exception <class 'NameError'> Installation error: gdb.execute_unwinders function is missing:

(gdb)

Any helping hand would be much appreciated regarding the failure to run mesa-demos or Qt5 apps on the target. I am completely new with Mesa code base.

Thanks,
Sujith H
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170214/def9b4d0/attachment-0001.html>


More information about the mesa-dev mailing list