<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>14527</bug_id>
          
          <creation_ts>2021-08-26 14:10:15 +0000</creation_ts>
          <short_desc>virtgl test failures on ubuntu2004 workers</short_desc>
          <delta_ts>2021-09-02 14:54:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Michael Halstead">mhalstead</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>steve</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91273</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-08-26 14:10:15 +0000</bug_when>
    <thetext>oe-selftest runtime_test.TestImage.test_testimage_virgl_headless is failing on ubuntu2004 workers after the module changes akanavin requested, e.g.:

https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2482

This is happening for dunfell and hardknott builds as well as master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91275</commentid>
    <comment_count>1</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2021-08-26 14:20:25 +0000</bug_when>
    <thetext>With dunfell I am also seeing the same issue with fedora31 workers:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/2443</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91280</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-08-26 14:48:21 +0000</bug_when>
    <thetext>This should be fixed by adding pokybuild user to render group:

pokybuild@ubuntu2004-ty-1:~$ groups
pokybuild kvm
pokybuild@ubuntu2004-ty-1:~$ ls -l /dev/dri/renderD128 
crw-rw---- 1 root render 226, 128 Aug 23 16:54 /dev/dri/renderD128

I requested the change from MH.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91289</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2021-08-26 16:25:19 +0000</bug_when>
    <thetext>pokybuild is a member of the render group on workers where render exists. 

Currently this is:

centos8-ty-1.yocto.io
centos8-ty-2.yocto.io
debian10-ty-1.yocto.io
debian10-ty-2.yocto.io
debian10-ty-3.yocto.io
fedora31-ty-1.yocto.io
fedora33-ty-1.yocto.io
tumbleweed-ty-1.yocto.io
tumbleweed-ty-3.yocto.io
ubuntu2004-arm-1.yocto.io
ubuntu2004-ty-1.yocto.io
ubuntu2004-ty-2.yocto.io

The group doesn&apos;t yet exist on the following and I need to find out the correct way to add it:

centos7-ty-4.yocto.io
debian8-ty-1.yocto.io
debian9-ty-2.yocto.io
opensuse152-ty-1.yocto.io
ubuntu1604-ty-1.yocto.io
ubuntu1804-arm-1.yocto.io
ubuntu1804-ty-1.yocto.io
ubuntu1804-ty-3.yocto.io</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91291</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-08-26 18:03:28 +0000</bug_when>
    <thetext>I do not think you need to do this everywhere. This only needs to be done where
permissions on /dev/dri/render* prevent pokybuild user from reading and writing to it. So far, ubuntu 20.04 is the only host known to have the problem:

pokybuild@ubuntu2004-ty-1:~$ groups
pokybuild kvm
pokybuild@ubuntu2004-ty-1:~$ ls -l /dev/dri/renderD128 
crw-rw---- 1 root render 226, 128 Aug 23 16:54 /dev/dri/renderD128

If /dev/dri/render* does not exist, or has permissions set such that pokybuid can already access it, nothing needs to be done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91292</commentid>
    <comment_count>5</comment_count>
    <who name="Steve Sakoman">steve</who>
    <bug_when>2021-08-26 19:23:33 +0000</bug_when>
    <thetext>(In reply to comment #4)

&gt; So far, ubuntu 20.04 is the only host known to have the
&gt; problem

On dunfell I also see this consistently on the fedora 31 worker, so we need it there too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91293</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-08-26 21:04:09 +0000</bug_when>
    <thetext>Ubuntu 20.04 has correct permissions now, so I verified that the test in master branch now succeeds. I will check dunfell in a moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91294</commentid>
    <comment_count>7</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-08-26 21:38:07 +0000</bug_when>
    <thetext>Dunfell shows a different problem:
qemu-system-x86_64: Display &apos;egl-headless&apos; is not available.

Investigating.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91295</commentid>
    <comment_count>8</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-08-26 22:34:12 +0000</bug_when>
    <thetext>Ok, on dunfell it&apos;s actually a segfault:
Segmentation fault (core dumped)

Core was generated by `/home/pokybuild/akanavin/poky/build-dunfell-st/tmp/work/x86_64-linux/qemu-helpe&apos;.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007f9ab2bf832b in ?? () from /usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
[Current thread is 1 (LWP 1228936)]
(gdb) bt
#0  0x00007f9ab2bf832b in ?? () from /usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
#1  0x00007f9ab2bf87d2 in ?? () from /usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
#2  0x00007f9ad0488daa in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#3  0x00007f9ad048e8ac in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#4  0x00007f9ad0487718 in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#5  0x00007f9ad047e924 in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#6  0x0000560d97718404 in ?? ()
#7  0x0000560d97718e0e in ?? ()
#8  0x0000560d9771926a in ?? ()
#9  0x0000560d973d0d79 in ?? ()
#10 0x00007f9ad43fdb15 in __libc_start_main () from /home/pokybuild/akanavin/poky/build-dunfell-st/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6
#11 0x0000560d973d44ce in ?? ()

I guess it&apos;s best to just disable the test in dunfell :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91296</commentid>
    <comment_count>9</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-08-26 23:01:42 +0000</bug_when>
    <thetext>More specific dump from dunfell:

Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fdf499f732b in ?? () from /usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
[Current thread is 1 (LWP 2563137)]
(gdb) bt
#0  0x00007fdf499f732b in ?? () from /usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
#1  0x00007fdf499f77d2 in ?? () from /usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
#2  0x00007fdf4b5dadaa in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#3  0x00007fdf4b5e08ac in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#4  0x00007fdf4b5d9718 in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#5  0x00007fdf4b5d0924 in ?? () from /lib/x86_64-linux-gnu/libEGL_mesa.so.0
#6  0x000055ca4ace281f in qemu_egl_init_dpy (dpy=&lt;optimized out&gt;, platform=platform@entry=12759, mode=mode@entry=DISPLAYGL_MODE_ON)
    at /home/pokybuild/akanavin/poky/build-dunfell-st/tmp/work/x86_64-linux/qemu-system-native/4.2.0-r0/qemu-4.2.0/ui/egl-helpers.c:400
#7  0x000055ca4ace3077 in qemu_egl_init_dpy_mesa (dpy=&lt;optimized out&gt;, mode=mode@entry=DISPLAYGL_MODE_ON) at /home/pokybuild/akanavin/poky/build-dunfell-st/tmp/work/x86_64-linux/qemu-system-native/4.2.0-r0/qemu-4.2.0/ui/egl-helpers.c:438
#8  0x000055ca4ace3145 in egl_rendernode_init (rendernode=&lt;optimized out&gt;, mode=DISPLAYGL_MODE_ON) at /home/pokybuild/akanavin/poky/build-dunfell-st/tmp/work/x86_64-linux/qemu-system-native/4.2.0-r0/qemu-4.2.0/ui/egl-helpers.c:166
#9  0x000055ca4ace338f in egl_headless_init (ds=&lt;optimized out&gt;, opts=&lt;optimized out&gt;) at /home/pokybuild/akanavin/poky/build-dunfell-st/tmp/work/x86_64-linux/qemu-system-native/4.2.0-r0/qemu-4.2.0/ui/egl-headless.c:186
#10 0x000055ca4acc9b5e in qemu_display_init (ds=&lt;optimized out&gt;, opts=&lt;optimized out&gt;) at /home/pokybuild/akanavin/poky/build-dunfell-st/tmp/work/x86_64-linux/qemu-system-native/4.2.0-r0/qemu-4.2.0/ui/console.c:2330
#11 0x000055ca4ab31318 in main (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;, envp=&lt;optimized out&gt;) at /home/pokybuild/akanavin/poky/build-dunfell-st/tmp/work/x86_64-linux/qemu-system-native/4.2.0-r0/qemu-4.2.0/vl.c:4399</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91297</commentid>
    <comment_count>10</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2021-08-27 08:39:07 +0000</bug_when>
    <thetext>Patch for dunfell:
https://lists.openembedded.org/g/openembedded-core/message/155398</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91330</commentid>
    <comment_count>11</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-09-02 14:54:33 +0000</bug_when>
    <thetext>Fixed by config changes on the AB worker and disabling the test on dunfell.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>