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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>127352</bug_id>
          
          <creation_ts>2014-01-21 09:36:57 -0800</creation_ts>
          <short_desc>[GTK] Accessibility daemons are killing the bots</short_desc>
          <delta_ts>2020-07-06 00:10:55 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=132134</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=153483</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sergio Villar Senin">svillar</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>apinheiro</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>clopez</cc>
    
    <cc>commit-queue</cc>
    
    <cc>jdiggs</cc>
    
    <cc>mario</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>ossy</cc>
    
    <cc>svillar</cc>
    
    <cc>zan</cc>
    
    <cc>zsborbely.u-szeged</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>970284</commentid>
    <comment_count>0</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2014-01-21 09:36:57 -0800</bug_when>
    <thetext>I knew that we fixed something like this in the past, but I have just logged in our bots and there were literally hundreds of dbus-daemon and at-spi processes running in the bot machines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>976305</commentid>
    <comment_count>1</comment_count>
    <who name="Mario Sanchez Prada">mario</who>
    <bug_when>2014-02-04 06:09:38 -0800</bug_when>
    <thetext>What we fixed was a typo in the run-gtk-tests that was preventing the daemon to properly shut down, so I thought that would be enough to fix the problem in the bots.

Unfortunately, that seemed not to be enough, and it&apos;s quite hard for me to find the real issue and fix it because I neither can reproduce the problem locally nor I can ssh into the bots. Thus, if someone else with access to the bot could investigate this issue, that would be great.

Of course, I&apos;d be happy to help with it, but at this point I think some investigation inside the actual bot would be the way to go.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997507</commentid>
    <comment_count>2</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2014-04-04 02:12:14 -0700</bug_when>
    <thetext>Raising importance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997625</commentid>
    <comment_count>3</comment_count>
      <attachid>228604</attachid>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-04-04 10:48:31 -0700</bug_when>
    <thetext>Created attachment 228604
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997627</commentid>
    <comment_count>4</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-04-04 10:49:48 -0700</bug_when>
    <thetext>I can confirm the issue with the dbus-daemon processes, but not with at-spi ones.

I have attached a patch for this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997652</commentid>
    <comment_count>5</comment_count>
      <attachid>228604</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-04 11:37:28 -0700</bug_when>
    <thetext>Comment on attachment 228604
Patch

Clearing flags on attachment: 228604

Committed r166798: &lt;http://trac.webkit.org/changeset/166798&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>997653</commentid>
    <comment_count>6</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2014-04-04 11:37:32 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998532</commentid>
    <comment_count>7</comment_count>
    <who name="Zsolt Borbely">zsborbely.u-szeged</who>
    <bug_when>2014-04-08 04:52:47 -0700</bug_when>
    <thetext>Killing the dbus-daemon is not a good solution, since it locks the screen of the EFL performance bot. In this case every tests will fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998535</commentid>
    <comment_count>8</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-04-08 05:00:24 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Killing the dbus-daemon is not a good solution, since it locks the screen of the EFL performance bot. In this case every tests will fail.

How that can happen?

You should be running the bot as an unprivileged user, so the bot can&apos;t kill the processes (dbus-daemon) of the system or of other users.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998542</commentid>
    <comment_count>9</comment_count>
    <who name="Zsolt Borbely">zsborbely.u-szeged</who>
    <bug_when>2014-04-08 05:37:27 -0700</bug_when>
    <thetext>Every user has his/her own dbus-daemon, and the EFL performance bot kills the current user&apos;s daemon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>998543</commentid>
    <comment_count>10</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-04-08 05:51:15 -0700</bug_when>
    <thetext>(In reply to comment #9)
&gt; Every user has his/her own dbus-daemon, and the EFL performance bot kills the current user&apos;s daemon.

Does the EFL performance bot runs as root? Otherwise I don&apos;t understand</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>999527</commentid>
    <comment_count>11</comment_count>
    <who name="Zsolt Borbely">zsborbely.u-szeged</who>
    <bug_when>2014-04-10 07:37:24 -0700</bug_when>
    <thetext>We run it as not root, the buildbot killed its own dbus-daemon, not anyone else&apos;s daemon. The dbus-daemon is neccessary in case of gnome and unity as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>999535</commentid>
    <comment_count>12</comment_count>
    <who name="Csaba Osztrogonác">ossy</who>
    <bug_when>2014-04-10 07:57:37 -0700</bug_when>
    <thetext>I agree with Zsolt, killing dbus-daemon is not the proper fix 
instead of finding and fixing the issue you raised on GTK.

If you really want to kill all dbus-daemon processes, please improve 
kill-old-processes to receive --efl/--gtk/... options and kill dbus-daemon 
only on GTK. And then you can simple make the buildmaster to pass the 
platform to the script with calling appendCustomBuildFlag() in master.cfg
similar to CompileWebKit or RunWebKitTests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1000472</commentid>
    <comment_count>13</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-04-14 05:43:46 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; I agree with Zsolt, killing dbus-daemon is not the proper fix 
&gt; instead of finding and fixing the issue you raised on GTK.
&gt; 

I don&apos;t know if there is another possible fix for this issue other than killing all the dbus-daemon process. Ideas?

&gt; If you really want to kill all dbus-daemon processes, please improve 
&gt; kill-old-processes to receive --efl/--gtk/... options and kill dbus-daemon 
&gt; only on GTK. And then you can simple make the buildmaster to pass the 
&gt; platform to the script with calling appendCustomBuildFlag() in master.cfg
&gt; similar to CompileWebKit or RunWebKitTests.

This looks like a good idea, I think we can do it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1010455</commentid>
    <comment_count>14</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-05-20 04:37:57 -0700</bug_when>
    <thetext>I have been investigating this issue, and my tests reveal that the rogue dbus-daemon processes that are created when running Tools/Scripts/run-gtk-tests is because of bug https://bugs.webkit.org/show_bug.cgi?id=131675

I tried to run run-gtk-tests several times with and without the patch attached on https://bugs.webkit.org/show_bug.cgi?id=131675 and compared the dbus-daemon process before and after the execution of run-gtk-tests.
I can confirm that with the patch on https://bugs.webkit.org/show_bug.cgi?id=131675 this problem not longer shows, and not extra dbus-daemon process are left after the test ends the execution.


The approach of killing all the dbus-daemon process on the step kill-old-processes only hides the real problem. It also makes very difficult to run the bot inside a GNOME session (and that is convenient for a perf bot). So I suggest to rollout r166798 &lt;http://trac.webkit.org/changeset/166798&gt; and get the patch on https://bugs.webkit.org/show_bug.cgi?id=131675 applied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1011240</commentid>
    <comment_count>15</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2014-05-23 07:42:16 -0700</bug_when>
    <thetext>(In reply to comment #14)
&gt; The approach of killing all the dbus-daemon process on the step kill-old-processes only hides the real problem. It also makes very difficult to run the bot inside a GNOME session (and that is convenient for a perf bot). So I suggest to rollout r166798 &lt;http://trac.webkit.org/changeset/166798&gt; and get the patch on https://bugs.webkit.org/show_bug.cgi?id=131675 applied.

Created bug 133215 for rolling out r166798.

But before rolling out r166798, it would be great if we can get bug 131675 fixed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1129895</commentid>
    <comment_count>16</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2015-10-01 04:26:20 -0700</bug_when>
    <thetext>We have detected this started to happen again.

There are lots of rogue at-spi-bus-launcher and dbus-daemon process on the GTK+ bots

There was about 600 processes like this on the test bots:

slave     9795  0.0  0.0  34120  1016 ?        Ss   Sep30   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
slave     9797  0.0  0.0 255720  3276 ?        Sl   Sep30   0:00 /home/slave/webkitgtk/gtk-linux-64-debug-tests/build/WebKitBuild/DependenciesGTK/Root/libexec/at-spi-bus-launcher
slave     9800  0.0  0.0  34120  1640 ?        S    Sep30   0:00  \_ /usr/bin/dbus-daemon --config-file=/home/slave/webkitgtk/gtk-linux-64-debug-tests/build/WebKitBuild/DependenciesGTK/Root/etc/at-spi2/accessibility.conf --nofork --print-address 3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1158800</commentid>
    <comment_count>17</comment_count>
    <who name="Carlos Alberto Lopez Perez">clopez</who>
    <bug_when>2016-01-26 06:32:12 -0800</bug_when>
    <thetext>I have proposed in bug 153483 a patch to allow defining an extra list of tasks to kill on each bot. That way I can configure dbus-daemon and related at-spi process to be killed on the GTK test bots as needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1668984</commentid>
    <comment_count>18</comment_count>
    <who name="Sergio Villar Senin">svillar</who>
    <bug_when>2020-07-06 00:10:55 -0700</bug_when>
    <thetext>Seems that this is no longer an issue. Let&apos;s reopen this in case it fails again.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>228604</attachid>
            <date>2014-04-04 10:48:31 -0700</date>
            <delta_ts>2014-04-04 11:37:27 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-127352-20140404194810.patch</filename>
            <type>text/plain</type>
            <size>1102</size>
            <attacher name="Carlos Alberto Lopez Perez">clopez</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTY2NzgyCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggMGI2NGQ5N2IyZGRhNWI5ZDU4MjRlNmJkMWI5ODI0OWQ3
MWE5NzQxOS4uOTkxZTRkNjQ3MjU4NThmYmRlNmEzNWQ0MTA0NTkyYzdlOTNlMTNlYiAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDEz
IEBACisyMDE0LTA0LTA0ICBDYXJsb3MgQWxiZXJ0byBMb3BleiBQZXJleiAgPGNsb3BlekBpZ2Fs
aWEuY29tPgorCisgICAgICAgIFtHVEtdIGtpbGwtb2xkLXByb2Nlc3NlcyBzaG91bGQga2lsbCBk
YnVzLWRhZW1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