<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>36191</bug_id>
          
          <creation_ts>2019-02-26 11:49:08 +0300</creation_ts>
          <short_desc>Выкидывает из gdb при отладке приложений, использующих OpenGL из Mesa</short_desc>
          <delta_ts>2019-02-26 11:49:08 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>gdb</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aleksei Nikiforov">darktemplaralt</reporter>
          <assigned_to name="Gleb F-Malinovskiy">glebfm</assigned_to>
          <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>sbolshakov</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>178992</commentid>
    <comment_count>0</comment_count>
    <who name="Aleksei Nikiforov">darktemplaralt</who>
    <bug_when>2019-02-26 11:49:08 +0300</bug_when>
    <thetext>При попытке отладки приложений, использующих 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 &lt;http://gnu.org/licenses/gpl.html&gt;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type &quot;show copying&quot; and &quot;show warranty&quot; for details.
This GDB was configured as &quot;x86_64-alt-linux&quot;.
Type &quot;show configuration&quot; for configuration details.
For bug reporting instructions, please see:
&lt;http://www.gnu.org/software/gdb/bugs/&gt;.
Find the GDB manual and other documentation resources online at:
    &lt;http://www.gnu.org/software/gdb/documentation/&gt;.

For help, type &quot;help&quot;.
Type &quot;apropos word&quot; to search for commands related to &quot;word&quot;...
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 &quot;/lib64/libthread_db.so.1&quot;.

[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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>