<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Improve GDB backtrace generation for GTK/EFL"
   href="https://bugs.webkit.org/show_bug.cgi?id=128928#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Improve GDB backtrace generation for GTK/EFL"
   href="https://bugs.webkit.org/show_bug.cgi?id=128928">bug 128928</a>
              from <span class="vcard"><a class="email" href="mailto:clopez&#64;igalia.com" title="Carlos Alberto Lopez Perez &lt;clopez&#64;igalia.com&gt;"> <span class="fn">Carlos Alberto Lopez Perez</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=128928#c6">comment #6</a>)
<span class="quote">&gt; coredumpctl is not useful for bots -- anything that makes coredumps display
&gt; in the web interface would be a great solution there -- but for humans
&gt; running tests manually, we should try to figure out a solution that doesn't
&gt; require editing core_pattern to disable it.
&gt; </span >

Humans running tests can already match a coredump with a test name. Is a matter of running only one test at a time and picking the last coredump. 

The main use case here is for the bots. The bots runs thousands of tests in parallel, and they need a way to match the coredump with the test name. Otherwise is not possible to show the backtrace/crash log on the results page that the bot published.

For example: <a href="https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20%28Tests%29/r189464%20%2810899%29/results.html">https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20%28Tests%29/r189464%20%2810899%29/results.html</a>

Notice the empty crash logs on that html page published by the bot? That's what we are trying to fix here.

<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=128928#c5">comment #5</a>)
&gt; &gt; I guess that would require the users to run systemd. This can be problematic
&gt; &gt; on the bots (they run on unprivileged containers, and systemd don't plays
&gt; &gt; nice there)
&gt; 
&gt; Huh, I didn't realize that. I thought all Linux except Gentoo was using
&gt; systemd nowadays (certainly it's installed on the bots I used yesterday),
&gt; and that it was designed to handle unprivileged containers nicely -- that's
&gt; the whole point of machinectl, right? but I've hardly used containers myself.
&gt; </span >

Well, Ubuntu is still using upstart (the switch to systemd still didn't happened.. I guess that by 16.04 maybe).

And with unprivileged containers I mean LXC namespace based containers, and systemd is not running correctly inside there.

I think i read that in the latest releases of systemd this was somehow fixed, but I didn't tested it. So I remain cautious about the possibility of using something like coredumpctl inside a LXC namespace based container until I test it and see it working.

<span class="quote">&gt; &gt; So...  the main question.... is coredumpctl able to get and print the
&gt; &gt; environ variables that a program had defined when it crashed for a given
&gt; &gt; coredump? If is not, I don't think it will be of any help here.
&gt; 
&gt; Hm, I don't think so. You can match on an awful lot, anything listed in
&gt; systemd.journal-fields(7), but not environment variables. It'd be easy to
&gt; add though, since it has access to /proc/$pid/environ as you say, we'd just
&gt; need to make it save the environment as a journal field. This is how the
&gt; abrt coredumpctl integration was written -- abrt needed more info on the
&gt; coredumps, so they modified coredumpctl to save it in journal fields. But
&gt; that is a lot more work....</span >

If you are interested on adding this to systemd please go ahead.. 

But take into account that because of the release cycles of the distributions, the time it will take to reach the systemd used by all our developers (debian/ubuntu/fedora/etc) will be measured in years.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>