[lldb-dev] [Bug 18533] New: Failing FreeBSD test case test_inferior_asserting_disassemble (TestInferiorAssert.AssertingInferiorTestCase)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jan 18 08:19:42 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18533
Bug ID: 18533
Summary: Failing FreeBSD test case
test_inferior_asserting_disassemble
(TestInferiorAssert.AssertingInferiorTestCase)
Product: lldb
Version: unspecified
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev at cs.uiuc.edu
Reporter: emaste at freebsd.org
Classification: Unclassified
>From buildbot,
http://llvm-amd64.freebsd.your.org:8010/builders/lldb-amd64-freebsd/builds/1709/steps/check-lldb.1/logs/stdio
Reproducing manually,
% ../../build/bin/lldb test/functionalities/inferior-assert/a.out
(lldb) run
Process 22374 launched:
'/data/emaste/src/llvm/tools/lldb/test/functionalities/inferior-assert/a.out'
(x86_64)
Hello, assertion!
...
(lldb) frame select 2
frame #2: 0x0000000800921351 libc.so.7`__assert(func=<unavailable>,
file=<unavailable>, line=<unavailable>, failedexpr=<unavailable>) + 81 at
assert.c:54
51 (void)fprintf(stderr,
52 "Assertion failed: (%s), function %s, file %s,
line %d.\n",
53 failedexpr, func, file, line);
-> 54 abort();
55 /* NOTREACHED */
56 }
(lldb) disassemble -a 0x0000000800921351
libc.so.7`__assert at assert.c:45:
0x800921300: pushq %rbp
0x800921301: movq %rsp, %rbp
0x800921304: movl %edx, %r9d
0x800921307: movq %rsi, %r8
0x80092130a: movq %rdi, %rax
0x80092130d: movq 0x256fac(%rip), %rdx
0x800921314: movq (%rdx), %rdi
0x800921317: testq %rax, %rax
0x80092131a: jne 0x800921338 ; __assert + 56 at
assert.c:51
0x80092131c: leaq 0x2dd5f(%rip), %rsi
0x800921323: movq %rcx, %rdx
0x800921326: movq %r8, %rcx
0x800921329: movl %r9d, %r8d
0x80092132c: xorb %al, %al
0x80092132e: callq 0x8008547ac ; symbol stub for: fprintf
0x800921333: callq 0x80085490c ; symbol stub for: abort
0x800921338: leaq 0x2dd6e(%rip), %rsi
0x80092133f: movq %rcx, %rdx
0x800921342: movq %rax, %rcx
0x800921345: xorb %al, %al
0x800921347: callq 0x8008547ac ; symbol stub for: fprintf
0x80092134c: callq 0x80085490c ; symbol stub for: abort
(lldb)
The lookup of the PC in frame 2 finds __assert, but the __assert disassembly
stops before the PC:
(lldb) disassemble -s 0x0000000800921347
libc.so.7`__assert + 71 at assert.c:51:
0x800921347: callq 0x8008547ac ; symbol stub for: fprintf
0x80092134c: callq 0x80085490c ; symbol stub for: abort
-> 0x800921351: nop
0x800921352: nop
0x800921353: nop
0x800921354: nop
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140118/6438c01e/attachment.html>
More information about the lldb-dev
mailing list