Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2025 19:41:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 284953] typeid() returns mangled string that can't be demangled
Message-ID:  <bug-284953-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284953

            Bug ID: 284953
           Summary: typeid() returns mangled string that can't be
                    demangled
           Product: Base System
           Version: 14.2-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: yuri@freebsd.org

How to reproduce:

1. install the proxsuite package:
> $ cd /usr/ports/math/proxsuite && make install clean

2. install the nanobind and eigen packages:
> $ sudo pkg install nanobind eigen

3. compile the attached testcase.cpp:
> $ c++ testcase.cpp -std=3Dc++20 -I /usr/local/include -I /usr/local/inclu=
de/eigen3 -Wno-missing-template-arg-list-after-template-kw

4. run it

> $ ./a.out


It prints this:

$ ./a.out=20
> name(mangled)=3DN9proxsuite6linalg3veg3VecIbNS1_3mem11SystemAllocELNS3_13=
DtorAvailableE2ELNS3_13CopyAvailableE2EEE
> name(demangled)=3D(null)


Problems:
1. abi::__cxa_demangle fails to demangle this name and returns nullptr.
2. c++filt also fails to demangle this name and prints the same string inst=
ead
of printing the C++ object description.

Either the mangled name is wrong in some way, or demangling procedures fail=
 to
demangle this valid mangled string.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-284953-227>