<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Tools] The GDB backtrace report tool don't checks GDB return code."
   href="https://bugs.webkit.org/show_bug.cgi?id=160414">160414</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[Tools] The GDB backtrace report tool don't checks GDB return code.
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Tools / Tests
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>clopez&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org, lforschler&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>There is an issue with current Debug builds of WebKitGTK+ and GDB. Check #159919

GDB=7.7.1 segfaults when trying to analyze a core produced on a Debug build of WebKitGTK+ without producing any output.

The WebKit tooling don't checks the return code and assumes that an empty stdout means that the corefile was not generated as expected.

So, it returns this:


&quot;&quot;&quot;
crash log for WebKitWebProcess (pid 7371):

Coredump core-pid_7371.dump not found. To enable crash logs:

- run this command as super-user: echo &quot;|Tools/Scripts/process-linux-coredump /home/clopez/webkit/cores/core-pid_%p.dump&quot; &gt; /proc/sys/kernel/core_pattern
- enable core dumps: ulimit -c unlimited
- set the WEBKIT_CORE_DUMPS_DIRECTORY environment variable: export WEBKIT_CORE_DUMPS_DIRECTORY=/home/clopez/webkit/cores


STDERR: 
STDERR: warning: core file may not match specified executable file.
STDERR: &lt;empty&gt;
&quot;&quot;&quot;

Which is at best, misleading.

We should detect the return code from GDB and inform about it when it is non-zero.</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>