🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.rc
3 messages
3 total messages Started by Nico Della Torre Sat, 14 Nov 2026 16:30
Bug#1153986: swig: segfault (infinite recursion in Swig_symbol_typedef_reduce) on namespaced typedef of shared_ptr, regression i...
#3144
Author: Nico Della Torre
Date: Sat, 14 Nov 2026 16:30
32 lines
3623 bytes
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
Processed: swig: segfault (infinite recursion in Swig_symbol_typedef_reduce) on namespaced typedef of shared_ptr, regression in...
#3145
Author: Debian Bug Tracking System
Date: Sat, 14 Nov 2026 16:30
11 lines
2121 bytes
Processing control commands:

> affects -1 src:siconos
Bug #1153986 [swig] swig: segfault (infinite recursion in Swig_symbol_typedef_reduce) on namespaced typedef of shared_ptr, regression in 4.5
Added indication that 1153986 affects src:siconos

-- 
1153986: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153986
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Processed: Re: swig: segfault (infinite recursion in Swig_symbol_typedef_reduce) on namespaced typedef of shared_ptr, regressi...
#3384
Author: Debian Bug Tracking System
Date: Tue, 17 Nov 2026 09:20
15 lines
2330 bytes
Processing control commands:

> forwarded -1 https://github.com/swig/swig/issues/3610
Bug #1153986 [swig] swig: segfault (infinite recursion in Swig_symbol_typedef_reduce) on namespaced typedef of shared_ptr, regression in 4.5
Set Bug forwarded-to-address to 'https://github.com/swig/swig/issues/3610'.
> tags -1 + upstream
Bug #1153986 [swig] swig: segfault (infinite recursion in Swig_symbol_typedef_reduce) on namespaced typedef of shared_ptr, regression in 4.5
Added tag(s) upstream.

-- 
1153986: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153986
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads