[lldb-dev] [Bug 36593] New: SIGALRM prevents tracing

via lldb-dev lldb-dev at lists.llvm.org
Sun Mar 4 02:21:33 PST 2018


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 at lists.llvm.org
          Reporter: stsp at list.ru
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180304/ef98e86a/attachment.html>


More information about the lldb-dev mailing list