[llvm-bugs] [Bug 47952] New: SIGCHLD prevents from entering breakpoint

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 23 04:26:50 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47952

            Bug ID: 47952
           Summary: SIGCHLD prevents from entering breakpoint
           Product: lldb
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: artemhevorhian at gmail.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

- Running Ubuntu 18.04.
- Binaries for reproduction:
  - Download Swift 5.3 toolchain:
https://swift.org/builds/swift-5.3-release/ubuntu1804/swift-5.3-RELEASE/swift-5.3-RELEASE-ubuntu18.04.tar.gz
  - Download llvm toolchain v.11. 
- Commands:
  - `lldb $swiftc`, `swiftc` is path to Swift compiler.
  - Inside LLDB run:
    - `breakpoint set --name Lexer` - should see this:
      - `Breakpoint 1: 8 locations.`
    - `run main.swift`, where `main.swift` is a file with the following
contents:
      - `func fibbonaci(n: Int) { print("hello") }`
    AT THIS POINT, I EXPECT LLDB TO STOP AT BREAKPOINT, 
    INSTEAD, IT MISSES THE BREAKPOINT AND FINISHES EXECUTION OF THE PROGRAM,
    REPORTING THIS ALONG THE WAY (3 TIMES):
      - `Process` X `stopped and restarted: thread 1 received signal: SIGCHLD`

Have checked this SO thread, configured the signal handler for SIGCHLD in this
way :
- `pro hand -p true -s false SIGCHLD`
With this configuration, the behaviour of lldb is completely the same as
described above.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201023/61b07985/attachment.html>


More information about the llvm-bugs mailing list