<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/79634>79634</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb] Unclear error message when failing to debug programs on FreeBSD
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
khorben
</td>
</tr>
</table>
<pre>
FreeBSD supports a security setting, exposed in the `security.bsd.unprivileged_proc_debug` sysctl, preventing programs from being debugged globally (except for the `root` user).
When this sysctl is set to `0`, `lldb` fails with `error: Cannot launch 'program': Operation not permitted`. While this is as expected, it would be helpful to improve this error dialog and prompt the user to verify this sysctl upon this error.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUUsFu4yAQ_Rp8GdUiOHbigw9to1z3sFr1WGEzsdnFgJghaf5-hZuquxcbMbw37808TWRnjziI9kW0p0pnXkIa_iwhjeirMZj7cE6ILz9PQDnGkJhAA-GUk-U7EDJbPwv1CvgRA6EB64EXBNHJr1f1SKbOPiZ7tQ5nNO8xhend4Jhn0UmgO03sCkdMeEVfGCGmMCe9ElxSWGHEcrchZjQwuzBq5-4g1BE_JowMl5C--qYQuPBmwiRUXwt5EvL58_u2YNFn6dEVygkZOBSkFJ0sOkQnnTNjIblo6whulpdyiymFJJpneNXeBwans58WEOrw0CvUoZR_REyabfBQXkVMq2VGIzpZw9tiHX5qsASayuRwKlX1CpbhFrIzMCIs6OIlu6LNrjGF6wO1iQBjtQszaG_KrNbIm_3iuQCumOzl_p_THIP_h6CuzNCYvul1hcPuIDvVt61sqmXoDt3U6L7tm7FrDOpWqqbDXbvbN61Ro6rsoKTay53qdsf2qFStdkfszPGAFz21sr-IvcRVW1c7d13rkObKEmUcDn3X7CunR3S0RU4pjzfYikKpksA0FMzTmGcSe-ksMX2zsGW3ZXXbTnuCX35yqNNjJCsS6RnhVpZcFldCw-EzN9-JCh4ema5ycsPCHEk0z0KdhTrPlpc81lNYhTqXxo_fU0zhN04s1HmTS0KdNzt_AwAA___TJxjK">