<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - SIGCHLD prevents from entering breakpoint"
href="https://bugs.llvm.org/show_bug.cgi?id=47952">47952</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SIGCHLD prevents from entering breakpoint
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>artemhevorhian@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>- Running Ubuntu 18.04.
- Binaries for reproduction:
- Download Swift 5.3 toolchain:
<a href="https://swift.org/builds/swift-5.3-release/ubuntu1804/swift-5.3-RELEASE/swift-5.3-RELEASE-ubuntu18.04.tar.gz">https://swift.org/builds/swift-5.3-release/ubuntu1804/swift-5.3-RELEASE/swift-5.3-RELEASE-ubuntu18.04.tar.gz</a>
- 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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>