[Bug 209842] backtrace(3) function can return negative

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Sep 21 16:44:19 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209842

--- Comment #1 from commit-hook at FreeBSD.org ---
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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list