#1107618 libunwind: backtrace broken on hppa

Package:
src:libunwind
Source:
src:libunwind
Submitter:
John David Anglin
Date:
2026-03-16 06:29:01 UTC
Severity:
normal
Tags:
#1107618#5
Date:
2025-06-10 19:00:13 UTC
From:
To:
Dear Maintainer,

Many issues have been fixed by commit f7a07922b8dafd006b743ecfd443ac566797178f
to libunwind.

There are two open issues with fixes:
https://github.com/libunwind/libunwind/pull/886/commits/7dd3998f6d828bec1bcae276a0ebbc207dbdc65b
https://github.com/libunwind/libunwind/issues/889

Hopefully, these will be installed soon and included in the next Debian
update.

Regards,
Dave Anglin

#1107618#10
Date:
2026-03-16 06:27:31 UTC
From:
To:
Hi,

I also ended up NMUing libunwind. Here is my diff:

From 5dff90a8af00aeeb8db2215d3bf05453b81719a2 Mon Sep 17 00:00:00 2001
From: Helmut Grohne <helmut@subdivi.de>
Date: Mon, 16 Mar 2026 07:07:21 +0100
Subject: [PATCH] NMU libunwind/1.8.1-0.3 disabling C++ exception support

Disable C++ exception support for all architectures.

 * hppa maintainer John Dave Anglin reported it (and other things) as
   broken via #1107618 and requested it to be disabled.
 * python-memray autopkgtests segfault (#1122076) when libunwind is
   lazy-loaded, because its semantics do not match gcc's, whose symbols
   it overrides.
 * There is another x86 segfault reported upstream (#1130107) where
   disabling C++ exception support makes the problem go away.
 * It was originally enabled in Debian to support clang/llvm (#923962),
   but that ends up using its own libunwind.
 * Fedora disables C++ exception support.
 * libunwind upstream recommends disabling it.
https://github.com/libunwind/libunwind/issues/405#issuecomment-1209587993
 * I ran autopkgtests for all rdeps with C++ exception support disabled
   and none of the failures is to be attributed to this change.
---
 debian/changelog | 8 ++++++++
 debian/rules     | 6 +-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8b88ab6..18198a4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+libunwind (1.8.1-0.3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Disable C++ exception support everywhere.
+    (Closes: #1122076, #1130107) (Addresses: #1107618)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Mon, 16 Mar 2026 07:03:10 +0100
+
 libunwind (1.8.1-0.2) unstable; urgency=medium

   * Non-maintainer upload
diff --git a/debian/rules b/debian/rules
index 76f11d9..a76f9ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,10 +6,6 @@

 export DEB_BUILD_MAINT_OPTIONS = hardening=-all,+format