Article View: linux.debian.bugs.dist
Article #4804Bug#1153986: swig: segfault (infinite recursion in Swig_symbol_typedef_reduce) on namespaced typedef of shared_ptr, regression i...
From: Rafael Laboissière
Date: Tue, 17 Nov 2026 09:20
Date: Tue, 17 Nov 2026 09:20
50 lines
3771 bytes
3771 bytes
Control: forwarded -1 https://github.com/swig/swig/issues/3610
Control: tags -1 + upstream
Thank you for the bug report. I have forwarded it to the upstream authors. Let us see what they say about it.
As an aside note, I noticed that the Siconos Team have released a new release 2026.rc2 (candidate version) [1]. According to the release notes, this version replaces SWIG by Pybind11 for generating the Python bindings [2]. Updating the Debian package to that version may fix the FTBFS issue.
Best,
Rafael Laboissière
[1] https://github.com/siconos/siconos/releases/tag/2026.rc2
[2] https://gricad-gitlab.univ-grenoble-alpes.fr/nonsmooth/siconos/-/blob/main/docs/devel/RELEASE_2026.rc2.md?plain=1#L66
* Nico Della Torre <nicoz91@ubuntu.com> [2026-11-14 17:22]:
> Package: swig
> Version: 4.5.1-2
> Severity: serious
> Tags: ftbfs
> Control: affects -1 src:siconos
>
> swig 4.5.1 segfaults (infinite recursion between Swig_symbol_typedef_reduce
> and Swig_symbol_template_reduce in Swig/symbol.c) on a typedef in a
> namespace that has the same name as the class in its template argument.
> This makes siconos FTBFS. It works with 4.4.1-2.
>
> Reproducer, run with: swig -c++ -python test.i
>
> %module m
>
> namespace std {
> template<class T> class shared_ptr {};
> template<class T> class set { public: typedef T *iterator; };
> }
>
> class A;
> namespace SP { typedef std::shared_ptr<A> A; }
>
> typedef std::set<SP::A> ASet;
> typedef ASet::iterator AIterator;
>
> --
> ⠀⢀⣴⣾⠿⠿⣿⣶⣄⠀ Nico Della Torre (nicoz)
> ⢠⣿⠋⠀⣠⢄⠀⠙⣿⣇ Debian Maintainer · Ubuntu
> ⢾⡇⠀⣾⠀⠀⠀⢀⣿⡟ https://wiki.debian.org/nicoz
> ⠘⣇⠀⠘⢷⣶⣶⣾⠟⠁ IRC: nicoz @ OFTC, Libera.Chat
> ⠀⠈⠣⢄⠀⠀⠀⠀⠀⠀ GPG: 0456 E8BC 1DC0 B027 EF8D 66A6 9549 3787 F6F1 9F03
>
>
Technical Details
Message-ID:
<O0nw6-cqy5-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NZoNz-bRW5-3@gated-at.bofh.it> <NZoNz-bRW5-3@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Rafael Laboissière <rafael@debian.org> Newsgroups: linux.debian.bugs.dist Subject: Bug#1153986: swig: segfault (infinite recursion in Swig_symbol_typedef_reduce) on namespaced typedef of shared_ptr, regression in 4.5 Date: Tue, 17 Nov 2026 10:20:02 +0100 Message-ID: <O0nw6-cqy5-5@gated-at.bofh.it> References: <NZoNz-bRW5-3@gated-at.bofh.it> <NZoNz-bRW5-3@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Tue Nov 17 09:17:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Rafael Laboissière <rafael@debian.org>, 1153986@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: torsten@debian.org X-Debian-Pr-Message: followup 1153986 X-Debian-Pr-Package: swig X-Debian-Pr-Keywords: ftbfs X-Debian-Pr-Source: swig, swig1.3, swig2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Organization: Debian GNU/Linux X-Content-Language: en-us X-Position: 482 X-Debian-User: rafael X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003093 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 50 Sender: robomod@news.nic.it X-Original-Cc: 1153986@bugs.debian.org X-Original-Date: Tue, 17 Nov 2026 10:15:16 +0100 X-Original-Message-ID: <avwbJNVVdM9HSPDS@laboissiere.net> X-Original-References: <ca643667-75e0-41bd-bcb9-eb58a96c5a8e@ubuntu.com> <ca643667-75e0-41bd-bcb9-eb58a96c5a8e@ubuntu.com>