<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </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 --- - backtrace truncated after assertion failure in inferior"
   href="http://llvm.org/bugs/show_bug.cgi?id=15671">15671</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>backtrace truncated after assertion failure in inferior
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lldb
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>All Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>lldb-dev@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>ben.langmuir@intel.com
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>To reproduce, compile the following with clang or gcc:
#include <assert.h>
int main() {
  assert(0);
  return 0;
}

and run it in lldb
(lldb) run
(lldb) bt

Expected behaviour: I can see the frame for main in the backtrace and I can use
the command "up" to get to it.  With gdb, I get the backtrace:
#0  0x00007ffff7a51425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff7a54b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff7a4a0ee in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007ffff7a4a192 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x0000000000400571 in main ()


Actual: whereas with lldb, I get
* thread #1: tid = 0x6aef, 0x00007fa686778425 libc.so.6`raise + 53, stop reason
= signal SIGABRT
    frame #0: 0x00007fa686778425 libc.so.6`raise + 53
    frame #1: 0x00007fa68677bb8b libc.so.6`abort + 379


More info:
Revision: 178756 (nightly build from llvm.org/apt)
Ubuntu 12.04
x86-64</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>