Bug 36191

Summary: Выкидывает из gdb при отладке приложений, использующих OpenGL из Mesa
Product: Sisyphus Reporter: Aleksei Nikiforov <darktemplaralt>
Component: gdbAssignee: Gleb F-Malinovskiy <glebfm>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: glebfm, ldv, sbolshakov
Version: unstable   
Hardware: all   
OS: Linux   

Description Aleksei Nikiforov 2019-02-26 11:49:08 MSK
При попытке отладки приложений, использующих OpenGL из Mesa, gdb два раза выкидывает в shell.

Воспроизведение (на примере приложения glmark2):
1. apt-get install glmark2 glmark2-debuginfo
2. gdb $(which glmark2)
3. run

Результат:
Дважды выкидывает из gdb обратно в shell. С помощью команды fg можно вернуться в gdb.

Ожидаемое поведение:
В shell выкидывать не должно.


glxinfo:
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 400 (Braswell) 
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.3.4
OpenGL core profile shading language version string: 4.50


Лог запуска glmark2:
$ gdb $(which glmark2)
GNU gdb (GDB) 8.2.50.20180917-alt2 (ALT Sisyphus)
Copyright (C) 2018 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-alt-linux".
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 /usr/bin/glmark2...
Reading symbols from /usr/lib/debug/usr/bin/glmark2.debug...
(gdb) run
Starting program: /usr/bin/glmark2 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

[1]+  Остановлен    gdb $(which glmark2)
$ fg
gdb $(which glmark2)
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, 4 or 5) [in module /usr/lib/debug/usr/lib64/libGLX_mesa.so.0.0.0.debug]
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, 4 or 5) [in module /usr/lib/debug/usr/lib64/libglapi.so.0.0.0.debug]

[1]+  Остановлен    gdb $(which glmark2)
$ fg
gdb $(which glmark2)
Dwarf Error: wrong version in compilation unit header (is 0, should be 2, 3, 4 or 5) [in module /usr/lib/debug/usr/lib64/X11/modules/dri/mesa_dri_drivers.so.debug]
Missing separate debuginfo for /lib64/libnss_sss.so.2
Try to install the hash file /usr/lib/debug/.build-id/5b/0a9a71b92476e05b27290f252002d0702eee63.debug
[New Thread 0x7ffff34d8700 (LWP 18266)]
=======================================================
    glmark2 2014.03
=======================================================
    OpenGL Information
    GL_VENDOR:     Intel Open Source Technology Center
    GL_RENDERER:   Mesa DRI Intel(R) HD Graphics 400 (Braswell) 
    GL_VERSION:    3.0 Mesa 18.3.4
=======================================================
[Thread 0x7ffff34d8700 (LWP 18266) exited]
[Inferior 1 (process 18262) exited normally]
(gdb) q