<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 --- - Expression evaluation fails on FreeBSD in some cases"
   href="http://llvm.org/bugs/show_bug.cgi?id=17213">17213</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Expression evaluation fails on FreeBSD in some cases
          </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>FreeBSD
          </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>emaste@freebsd.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>See also 17184 - expression evaluation fails for many cases of a crashing /
asserting inferior.

There are two other cases where expression evaluation fails in the absence of a
crashing inferior.

BreakpointConditionsTestCase.test_breakpoint_condition_inline_with_dwarf_and_run_command
BreakpointConditionsTestCase.test_breakpoint_condition_with_dwarf_and_run_command

E.g.

% bin/lldb
../tools/lldb/test/functionalities/breakpoint/breakpoint_conditions/a.out
Current executable set to
'../tools/lldb/test/functionalities/breakpoint/breakpoint_conditions/a.out'
(x86_64).
(lldb) breakpoint set --name c -c 'val == 3'
Breakpoint 1: where = a.out`c + 7 at main.c:36, address = 0x0000000000400667
(lldb) run
Process 27897 launched:
'../tools/lldb/test/functionalities/breakpoint/breakpoint_conditions/a.out'
(x86_64)
Process 27897 stopped
* thread #1: tid = 102689, 0x00000000008004d0
a.out`_start(ap=0x0000000000000000, cleanup=0x0000000000001000) at crt1.c:65,
stop reason = breakpoint 1.1
    frame #0: 0x00000000008004d0 a.out`_start(ap=0x0000000000000000,
cleanup=0x0000000000001000) at crt1.c:65
   62   /* The entry function. */
   63   void
   64   _start(char **ap, void (*cleanup)(void))
-> 65   {
   66           int argc;
   67           char **argv;
   68           char **env;
Stopped due to an error evaluating condition of breakpoint 1.1: "val == 3"
Couldn't execute expression:
Couldn't materialize struct: size of variable val disagrees with the
ValueObject's size (0,4)
Errored out in Execute, couldn't PrepareToExecuteJITExpression</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>