Summary: | backtrace(3) function can return negative | ||
---|---|---|---|
Product: | Base System | Reporter: | Poul-Henning Kamp <phk> |
Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | emaste |
Priority: | --- | ||
Version: | 10.3-RELEASE | ||
Hardware: | arm | ||
OS: | Any |
Description
Poul-Henning Kamp
![]() ![]() A commit references this bug: Author: phk Date: Mon Sep 21 16:43:39 UTC 2020 New revision: 365952 URL: https://svnweb.freebsd.org/changeset/base/365952 Log: Pull in fix from upstream NetBSD rev. 1.5: If Unwind_Backtrace is broken, ctx.n will still contain ~0, and we will return that which poor behavior for the user, so return 0 instead. We could document ~0 to be an error, but that would deviate from the Linux behavior which is not desirable. Noted by Poul-Henning Kamp PR: 209842 Changes: head/contrib/libexecinfo/unwind.c |