https://bugs.llvm.org/show_bug.cgi?id=36593
Bug ID: 36593
Summary: SIGALRM prevents tracing
Product: lldb
Version: 5.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: lldb-dev@lists.llvm.org
Reporter: s...@list.ru
CC: llvm-b...@lists.llvm.org
Hello.
Attached is a fully automated test-case.
Unpack tst.tar.gz and run "make lldb".
It will compile the binary and run lldb
with the custom .lldbinit script.
It will stop at the break-point.
Then you can press "n" to step, but nothing
happens:
---
(lldb) n
Process 9843 stopped
* thread #1, name = 'tst', stop reason = breakpoint 1.1 -4.1
frame #0: 0x00007ffff6cea9c4 libfdpp.so`DynAlloc(what="dosobj", num=1,
size=512) at dyninit.cc:59
56
57 __FAR(void)DynAlloc(const char *what, unsigned num, unsigned size)
58 {
-> 59 if (size != 512)
60 printf("TEST FAILED! size=%i\n", size);
61 else
62 printf("TEST PASSED! size=%i\n", size);
(lldb) n
Process 9843 stopped
* thread #1, name = 'tst', stop reason = breakpoint 1.1 -6.1
frame #0: 0x00007ffff6cea9c4 libfdpp.so`DynAlloc(what="dosobj", num=1,
size=512) at dyninit.cc:59
56
57 __FAR(void)DynAlloc(const char *what, unsigned num, unsigned size)
58 {
-> 59 if (size != 512)
60 printf("TEST FAILED! size=%i\n", size);
61 else
62 printf("TEST PASSED! size=%i\n", size);
(lldb) n
Process 9843 stopped
* thread #1, name = 'tst', stop reason = breakpoint 1.1 -8.1
frame #0: 0x00007ffff6cea9c4 libfdpp.so`DynAlloc(what="dosobj", num=1,
size=512) at dyninit.cc:59
56
57 __FAR(void)DynAlloc(const char *what, unsigned num, unsigned size)
58 {
-> 59 if (size != 512)
60 printf("TEST FAILED! size=%i\n", size);
61 else
62 printf("TEST PASSED! size=%i\n", size);
(lldb)
---
Its always at the same line.
Disabling SIGALRM in tst.cc makes it to work, so
it seems lldb doesn't handle signals.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev