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

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

    <bug>
          <bug_id>41269</bug_id>
          
          <creation_ts>2021-11-02 17:04:35 +0300</creation_ts>
          <short_desc>RPi4B: segfault в glmark2</short_desc>
          <delta_ts>2023-01-25 15:45:44 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>glmark2</component>
          <version>не указана</version>
          <rep_platform>aarch64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jqt4</reporter>
          <assigned_to name="asheplyakov@altlinux.org">asheplyakov</assigned_to>
          <cc>shilovps</cc>
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>204409</commentid>
    <comment_count>0</comment_count>
    <who name="">jqt4</who>
    <bug_when>2021-11-02 17:04:35 +0300</bug_when>
    <thetext>В системе установлены:
uname -a
Linux localhost.localdomain 5.10.63-rpi-def-alt1 #2 SMP Fri Oct 8 08:34:55 UTC 2021 aarch64 GNU/Linux

rpm -q libEGL-mesa
libEGL-mesa-21.1.5-alt2.aarch64

rpm -q glmark2
glmark2-2021.02-alt1.aarch64

gdb glmark2
...
(gdb) run --fullscreen --annotate
...
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     Broadcom
    GL_RENDERER:   V3D 4.2
    GL_VERSION:    2.1 Mesa 21.1.5
=======================================================

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()

(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000aaaaaab0fd28 in setup_texture (mag_filter=&lt;optimized out&gt;, min_filter=&lt;optimized out&gt;, image=..., tex=0xaaaaab259cd0) at ../src/texture.cpp:94
#2  Texture::load (textureName=&quot;glyph-atlas&quot;, pTexture=pTexture@entry=0xaaaaab259cd0) at ../src/texture.cpp:135
#3  0x0000aaaaaab0e4b4 in TextRenderer::TextRenderer (this=0xaaaaab259c10, canvas=...) at /usr/include/c++/10/bits/char_traits.h:329
#4  0x0000aaaaaaab9e80 in MainLoopDecoration::after_scene_setup (this=0xaaaaaacc81b0) at ../src/main-loop.cpp:241
#5  0x0000aaaaaaab9570 in MainLoop::step (this=this@entry=0xaaaaaacc81b0) at ../src/main-loop.cpp:96
#6  0x0000aaaaaaaac5f0 in do_benchmark (canvas=...) at ../src/main.cpp:123
#7  0x0000aaaaaaaaa02c in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at ../src/main.cpp:221


gdb glmark2
...
(gdb) run --fullscreen
...
=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     Broadcom
    GL_RENDERER:   V3D 4.2
    GL_VERSION:    2.1 Mesa 21.1.5
=======================================================
[build] use-vbo=false: FPS: 40 FrameTime: 25.000 ms
[build] use-vbo=true: FPS: 40 FrameTime: 25.000 ms
[texture] texture-filter=nearest: FPS: 40 FrameTime: 25.000 ms
[texture] texture-filter=linear: FPS: 40 FrameTime: 25.000 ms

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000aaaaaab0fd28 in setup_texture (mag_filter=&lt;optimized out&gt;, min_filter=&lt;optimized out&gt;, image=..., tex=0xaaaaaab94b18) at ../src/texture.cpp:94
#2  Texture::load (textureName=&quot;crate-base&quot;, pTexture=pTexture@entry=0xaaaaaab94b18) at ../src/texture.cpp:135
#3  0x0000aaaaaab07e3c in SceneTexture::setup (this=0xaaaaaab94970) at ../src/scene-texture.cpp:143
#4  0x0000aaaaaaab6700 in Benchmark::setup_scene (this=0xaaaaaacc0390) at ../src/benchmark.cpp:111
#5  0x0000aaaaaaab954c in MainLoop::step (this=this@entry=0xaaaaaacca620) at /usr/include/c++/10/bits/stl_iterator.h:993
#6  0x0000aaaaaaaac5f0 in do_benchmark (canvas=...) at ../src/main.cpp:123
#7  0x0000aaaaaaaaa02c in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at ../src/main.cpp:221


gdb glmark2
...
(gdb) run  -b shadow

=======================================================
    glmark2 2021.02
=======================================================
    OpenGL Information
    GL_VENDOR:     Broadcom
    GL_RENDERER:   V3D 4.2
    GL_VERSION:    2.1 Mesa 21.1.5
=======================================================

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()

(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x0000aaaaaaafdda4 in DepthRenderTarget::setup (this=this@entry=0xaaaaaac5ebb8, canvas_fbo=0, width=&lt;optimized out&gt;, height=&lt;optimized out&gt;) at ../src/scene-shadow.cpp:117
#2  0x0000aaaaaab0180c in ShadowPrivate::setup (this=this@entry=0xaaaaaac5ebb0, options=std::map with 12 elements = {...}) at ../src/canvas.h:225
#3  0x0000aaaaaab01f14 in SceneShadow::setup (this=0xaaaaaabaa930) at ../src/scene-shadow.cpp:521
#4  0x0000aaaaaaab6700 in Benchmark::setup_scene (this=0xaaaaaacc80d0) at ../src/benchmark.cpp:111
#5  0x0000aaaaaaab954c in MainLoop::step (this=this@entry=0xaaaaaaccc050) at /usr/include/c++/10/bits/stl_iterator.h:993
#6  0x0000aaaaaaaac5f0 in do_benchmark (canvas=...) at ../src/main.cpp:123
#7  0x0000aaaaaaaaa02c in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at ../src/main.cpp:221</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204410</commentid>
    <comment_count>1</comment_count>
    <who name="">jqt4</who>
    <bug_when>2021-11-02 17:06:17 +0300</bug_when>
    <thetext>Есть предположение, что подобная проблема была рассмотрена и решена в
https://github.com/glmark2/glmark2/issues/124</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220708</commentid>
    <comment_count>2</comment_count>
    <who name="Pavel Shilov">shilovps</who>
    <bug_when>2023-01-25 15:45:44 +0300</bug_when>
    <thetext>Произвел проверку на платформе:
* alt-workstation-10.0-rpi4-aarch64

Версии пакетов:
* libEGL-mesa-22.3.1-alt1.aarch64
* glmark2-2021.12-alt1.aarch64
* gdb-10.1-alt1.aarch64

$ uname -a
Linux host-188 5.15.73-rpi-def-alt1 #1 SMP PREEMPT Fri Oct 14 16:09:10 UTC 2022 aarch64 GNU/Linux

Никаких ошибок в выводе не обнаружено
$ gdb glmark2
GNU gdb (GDB) 10.1-alt1 (ALT Sisyphus)
Copyright (C) 2020 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;aarch64-alt-linux&quot;.
Type &quot;show configuration&quot; for configuration details.
For bug reporting instructions, please see:
&lt;https://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 glmark2...
Missing separate debuginfo for /usr/bin/glmark2
Try to install the hash file /usr/lib/debug/.build-id/49/fb959c3273e6f3b1789f16765c80c9b00fa726.debug
(No debugging symbols found in glmark2)
(gdb) run --fullscreen
Starting program: /usr/bin/glmark2 --fullscreen
[Thread debugging using libthread_db enabled]
Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.
[New Thread 0xfffff1190130 (LWP 5388)]
=======================================================
    glmark2 2021.12
=======================================================
    OpenGL Information
    GL_VENDOR:     Broadcom
    GL_RENDERER:   V3D 4.2
    GL_VERSION:    2.1 Mesa 22.3.1
=======================================================
[build] use-vbo=false: FPS: 60 FrameTime: 16.667 ms
[build] use-vbo=true: FPS: 62 FrameTime: 16.129 ms
[texture] texture-filter=nearest: FPS: 60 FrameTime: 16.667 ms
[texture] texture-filter=linear: FPS: 60 FrameTime: 16.667 ms
[texture] texture-filter=mipmap: FPS: 60 FrameTime: 16.667 ms
[shading] shading=gouraud: FPS: 61 FrameTime: 16.393 ms
[shading] shading=blinn-phong-inf: FPS: 59 FrameTime: 16.949 ms
[shading] shading=phong: FPS: 55 FrameTime: 18.182 ms
[shading] shading=cel: FPS: 55 FrameTime: 18.182 ms
[bump] bump-render=high-poly: FPS: 56 FrameTime: 17.857 ms
[bump] bump-render=normals: FPS: 59 FrameTime: 16.949 ms
[bump] bump-render=height: FPS: 58 FrameTime: 17.241 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 44 FrameTime: 22.727 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 30 FrameTime: 33.333 ms
[pulsar] light=false:quads=5:texture=false: FPS: 60 FrameTime: 16.667 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 24 FrameTime: 41.667 ms
[desktop] effect=shadow:windows=4: FPS: 56 FrameTime: 17.857 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 52 FrameTime: 19.231 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 52 FrameTime: 19.231 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 52 FrameTime: 19.231 ms
[ideas] speed=duration: FPS: 57 FrameTime: 17.544 ms
[jellyfish] &lt;default&gt;: FPS: 35 FrameTime: 28.571 ms
[terrain] &lt;default&gt;: FPS: 6 FrameTime: 166.667 ms
[shadow] &lt;default&gt;: FPS: 27 FrameTime: 37.037 ms
[refract] &lt;default&gt;: FPS: 12 FrameTime: 83.333 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 47 FrameTime: 21.277 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 40 FrameTime: 25.000 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 47 FrameTime: 21.277 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 45 FrameTime: 22.222 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 40 FrameTime: 25.000 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 42 FrameTime: 23.810 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 45 FrameTime: 22.222 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 39 FrameTime: 25.641 ms
=======================================================
                                  glmark2 Score: 47 
=======================================================
[Thread 0xfffff1190130 (LWP 5388) exited]
[Inferior 1 (process 5385) exited normally]
(gdb) run -b shadow
Starting program: /usr/bin/glmark2 -b shadow
[Thread debugging using libthread_db enabled]
Using host libthread_db library &quot;/lib64/libthread_db.so.1&quot;.
[New Thread 0xfffff1190130 (LWP 5405)]
=======================================================
    glmark2 2021.12
=======================================================
    OpenGL Information
    GL_VENDOR:     Broadcom
    GL_RENDERER:   V3D 4.2
    GL_VERSION:    2.1 Mesa 22.3.1
=======================================================
[shadow] &lt;default&gt;: FPS: 122 FrameTime: 8.197 ms
=======================================================
                                  glmark2 Score: 122 
=======================================================
[Thread 0xfffff1190130 (LWP 5405) exited]
[Inferior 1 (process 5404) exited normally]
(gdb)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>