public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27176] New: “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux
@ 2021-01-13  0:27 galex-713@galex-713.eu
  2021-01-13  1:03 ` [Bug gdb/27176] " simark at simark dot ca
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: galex-713@galex-713.eu @ 2021-01-13  0:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27176

            Bug ID: 27176
           Summary: “demangler-warning: unable to demangle” while loading
                    debugging telegram-desktop under Debian 10 GNU/Linux
           Product: gdb
           Version: 8.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: galex-713@galex-713.eu
  Target Milestone: ---
             Flags: security?

Hello,

I tried to debug telegram-desktop (1.5.11-1), then noticed there were no
debugging symbols, so I installed the Debian 10 package
telegram-desktop-dbgsyms (same version ofc) for GNU/Linux x86_64, and since
then, when I want to debug telegram-desktop, gdb says me that (afterwards
(typing n) it seems to work normally, but I haven’t done much yet, yet it asks
to report, so so I do):

GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from
telegram-desktop.../build/gdb-EbRs5Y/gdb-8.2.1/gdb/cp-support.c:1581:
demangler-warning: unable to demangle
'_ZNSt11_Tuple_implILm0EJN3rpl8producerIN4base5flagsIN11MTPDchannel4FlagEEENS0_8no_errorEZNS0_7details10map_helperIZN4Data18FlagsValueWithMaskINSA_5FlagsIS6_Lj2147486693EE6ChangeES7_ZNS8_11then_helperISE_S7_ZNKS0_12event_streamISE_E6eventsEvEUlRKT_E_EclISE_S7_ZNS0_6singleISE_EEDaOSI_EUlSK_E_SE_S7_EEDaONS1_ISI_T0_T1_EEEUlSK_E_EEDaSU_NSI_4TypeEEUlRKSE_E0_EclISE_S7_ZNS8_13filter_helperIZNSB_ISE_S7_SV_EEDaSU_SW_EUlSY_E_EclISE_S7_SV_vEEDaSU_EUlSK_E_S6_EEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNSA_15SingleFlagValueINSC_INS3_IN19MTPDchatAdminRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS1E_S7_ZNKSG_IS1E_E6eventsEvEUlSK_E_EclIS1E_S7_ZNSO_IS1E_EEDaSP_EUlSK_E_S1E_S7_EEDaSU_EUlSK_E_EEDaSU_NSI_4EnumEEUlS1C_E_EclIS1C_S7_ZNS9_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlRKS1E_E0_EclIS1E_S7_ZNS12_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlS1Q_E_EclIS1E_S7_S1K_vEEDaSU_EUlSK_E_S1C_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNS19_INSC_INS3_IN20MTPDchatBannedRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS25_S7_ZNKSG_IS25_E6eventsEvEUlSK_E_EclIS25_S7_ZNSO_IS25_EEDaSP_EUlSK_E_S25_S7_EEDaSU_EUlSK_E_EEDaSU_S1L_EUlS23_E_EclIS23_S7_ZNS9_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlRKS25_E0_EclIS25_S7_ZNS12_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlS2G_E_EclIS25_S7_S2B_vEEDaSU_EUlSK_E_S23_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EES2Q_EED1Ev'
(demangler failed with signal 11)
Unable to dump core, use `ulimit -c unlimited' before executing GDB next time.
/build/gdb-EbRs5Y/gdb-8.2.1/gdb/cp-support.c:1595: demangler-warning: unable to
demangle
'_ZNSt11_Tuple_implILm0EJN3rpl8producerIN4base5flagsIN11MTPDchannel4FlagEEENS0_8no_errorEZNS0_7details10map_helperIZN4Data18FlagsValueWithMaskINSA_5FlagsIS6_Lj2147486693EE6ChangeES7_ZNS8_11then_helperISE_S7_ZNKS0_12event_streamISE_E6eventsEvEUlRKT_E_EclISE_S7_ZNS0_6singleISE_EEDaOSI_EUlSK_E_SE_S7_EEDaONS1_ISI_T0_T1_EEEUlSK_E_EEDaSU_NSI_4TypeEEUlRKSE_E0_EclISE_S7_ZNS8_13filter_helperIZNSB_ISE_S7_SV_EEDaSU_SW_EUlSY_E_EclISE_S7_SV_vEEDaSU_EUlSK_E_S6_EEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNSA_15SingleFlagValueINSC_INS3_IN19MTPDchatAdminRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS1E_S7_ZNKSG_IS1E_E6eventsEvEUlSK_E_EclIS1E_S7_ZNSO_IS1E_EEDaSP_EUlSK_E_S1E_S7_EEDaSU_EUlSK_E_EEDaSU_NSI_4EnumEEUlS1C_E_EclIS1C_S7_ZNS9_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlRKS1E_E0_EclIS1E_S7_ZNS12_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlS1Q_E_EclIS1E_S7_S1K_vEEDaSU_EUlSK_E_S1C_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNS19_INSC_INS3_IN20MTPDchatBannedRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS25_S7_ZNKSG_IS25_E6eventsEvEUlSK_E_EclIS25_S7_ZNSO_IS25_EEDaSP_EUlSK_E_S25_S7_EEDaSU_EUlSK_E_EEDaSU_S1L_EUlS23_E_EclIS23_S7_ZNS9_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlRKS25_E0_EclIS25_S7_ZNS12_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlS2G_E_EclIS25_S7_S2B_vEEDaSU_EUlSK_E_S23_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EES2Q_EED1Ev'
(demangler failed with signal 11)
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/27176] “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux
  2021-01-13  0:27 [Bug gdb/27176] New: “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux galex-713@galex-713.eu
@ 2021-01-13  1:03 ` simark at simark dot ca
  2021-01-13  4:08 ` galex-713@galex-713.eu
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: simark at simark dot ca @ 2021-01-13  1:03 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27176

Simon Marchi <simark at simark dot ca> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simark at simark dot ca

--- Comment #1 from Simon Marchi <simark at simark dot ca> ---
Actually, I would suggest trying to file a bug on the gcc bugzilla, in the
"demangler" category:

https://gcc.gnu.org/bugzilla/query.cgi

Either the symbol is correctly mangled and the demangler is failing to demangle
it, or the symbol is incorrectly mangled.  In both cases, the producer and
consumer of the mangled symbol is maintained by gcc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/27176] “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux
  2021-01-13  0:27 [Bug gdb/27176] New: “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux galex-713@galex-713.eu
  2021-01-13  1:03 ` [Bug gdb/27176] " simark at simark dot ca
@ 2021-01-13  4:08 ` galex-713@galex-713.eu
  2021-01-13  4:28 ` simark at simark dot ca
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: galex-713@galex-713.eu @ 2021-01-13  4:08 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27176

--- Comment #2 from Garreau, Alexandre <galex-713@galex-713.eu> ---
Oh thank you!  But I’m curious: why did *gdb* tell me it had a bug? if the bug
is not due to gdb but wrong input, shouldn’t gdb not say that? isn’t that mere
fact a sort of bug?

Also, since I didn’t used directly gcc but only gdb, should I, now, rather
report the bug to my distribution (Debian) rather than gcc? or should I
investigate the gcc version that has been used to produce these debugging
symbols (likely gcc (Debian 8.3.0-6) 8.3.0), and report to gcc anyway (pointing
them to the wrongly mangled debugging symbols)?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/27176] “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux
  2021-01-13  0:27 [Bug gdb/27176] New: “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux galex-713@galex-713.eu
  2021-01-13  1:03 ` [Bug gdb/27176] " simark at simark dot ca
  2021-01-13  4:08 ` galex-713@galex-713.eu
@ 2021-01-13  4:28 ` simark at simark dot ca
  2021-01-13  4:44 ` galex-713@galex-713.eu
  2021-01-13 14:12 ` cbiesinger at google dot com
  4 siblings, 0 replies; 6+ messages in thread
From: simark at simark dot ca @ 2021-01-13  4:28 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27176

--- Comment #3 from Simon Marchi <simark at simark dot ca> ---
(In reply to Garreau, Alexandre from comment #2)
> Oh thank you!  But I’m curious: why did *gdb* tell me it had a bug? if the
> bug is not due to gdb but wrong input, shouldn’t gdb not say that? isn’t
> that mere fact a sort of bug?

Perhaps.  gdb uses the demangler from gcc.  It's code shared between the two
repos, but it's maintained by gcc and we just import it.  The demangler is
never supposed to crash, but it happens some times.  I haven't written that
code, but I suppose that it was decided that when this happens, GDB can't
reasonably continue, so we might as well consider an error internal to the
demangler internal to GDB too.

> 
> Also, since I didn’t used directly gcc but only gdb, should I, now, rather
> report the bug to my distribution (Debian) rather than gcc? or should I
> investigate the gcc version that has been used to produce these debugging
> symbols (likely gcc (Debian 8.3.0-6) 8.3.0), and report to gcc anyway
> (pointing them to the wrongly mangled debugging symbols)?

Well, you raise a good point about the versions.  You should ideally try the
latest version of GDB (which might include a newer version of the demangler),
see if the problem still exists.

When passing your symbol in c++filt on Debian 10, I get a segfault, likely the
same root cause as your problem:

root@36f2fe0af0bb:/# c++filt 
_ZNSt11_Tuple_implILm0EJN3rpl8producerIN4base5flagsIN11MTPDchannel4FlagEEENS0_8no_errorEZNS0_7details10map_helperIZN4Data18FlagsValueWithMaskINSA_5FlagsIS6_Lj2147486693EE6ChangeES7_ZNS8_11then_helperISE_S7_ZNKS0_12event_streamISE_E6eventsEvEUlRKT_E_EclISE_S7_ZNS0_6singleISE_EEDaOSI_EUlSK_E_SE_S7_EEDaONS1_ISI_T0_T1_EEEUlSK_E_EEDaSU_NSI_4TypeEEUlRKSE_E0_EclISE_S7_ZNS8_13filter_helperIZNSB_ISE_S7_SV_EEDaSU_SW_EUlSY_E_EclISE_S7_SV_vEEDaSU_EUlSK_E_S6_EEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNSA_15SingleFlagValueINSC_INS3_IN19MTPDchatAdminRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS1E_S7_ZNKSG_IS1E_E6eventsEvEUlSK_E_EclIS1E_S7_ZNSO_IS1E_EEDaSP_EUlSK_E_S1E_S7_EEDaSU_EUlSK_E_EEDaSU_NSI_4EnumEEUlS1C_E_EclIS1C_S7_ZNS9_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlRKS1E_E0_EclIS1E_S7_ZNS12_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlS1Q_E_EclIS1E_S7_S1K_vEEDaSU_EUlSK_E_S1C_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNS19_INSC_INS3_IN20MTPDchatBannedRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS25_S7_ZNKSG_IS25_E6eventsEvEUlSK_E_EclIS25_S7_ZNSO_IS25_EEDaSP_EUlSK_E_S25_S7_EEDaSU_EUlSK_E_EEDaSU_S1L_EUlS23_E_EclIS23_S7_ZNS9_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlRKS25_E0_EclIS25_S7_ZNS12_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlS2G_E_EclIS25_S7_S2B_vEEDaSU_EUlSK_E_S23_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EES2Q_EED1Ev
Segmentation fault (core dumped)

When I run it through c++file in my binutils-gdb development tree, it doesn't
seem to demangle, but at least it doesn't segfault.

$ ../binutils/cxxfilt
_ZNSt11_Tuple_implILm0EJN3rpl8producerIN4base5flagsIN11MTPDchannel4FlagEEENS0_8no_errorEZNS0_7details10map_helperIZN4Data18FlagsValueWithMaskINSA_5FlagsIS6_Lj2147486693EE6ChangeES7_ZNS8_11then_helperISE_S7_ZNKS0_12event_streamISE_E6eventsEvEUlRKT_E_EclISE_S7_ZNS0_6singleISE_EEDaOSI_EUlSK_E_SE_S7_EEDaONS1_ISI_T0_T1_EEEUlSK_E_EEDaSU_NSI_4TypeEEUlRKSE_E0_EclISE_S7_ZNS8_13filter_helperIZNSB_ISE_S7_SV_EEDaSU_SW_EUlSY_E_EclISE_S7_SV_vEEDaSU_EUlSK_E_S6_EEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNSA_15SingleFlagValueINSC_INS3_IN19MTPDchatAdminRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS1E_S7_ZNKSG_IS1E_E6eventsEvEUlSK_E_EclIS1E_S7_ZNSO_IS1E_EEDaSP_EUlSK_E_S1E_S7_EEDaSU_EUlSK_E_EEDaSU_NSI_4EnumEEUlS1C_E_EclIS1C_S7_ZNS9_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlRKS1E_E0_EclIS1E_S7_ZNS12_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlS1Q_E_EclIS1E_S7_S1K_vEEDaSU_EUlSK_E_S1C_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNS19_INSC_INS3_IN20MTPDchatBannedRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS25_S7_ZNKSG_IS25_E6eventsEvEUlSK_E_EclIS25_S7_ZNSO_IS25_EEDaSP_EUlSK_E_S25_S7_EEDaSU_EUlSK_E_EEDaSU_S1L_EUlS23_E_EclIS23_S7_ZNS9_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlRKS25_E0_EclIS25_S7_ZNS12_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlS2G_E_EclIS25_S7_S2B_vEEDaSU_EUlSK_E_S23_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EES2Q_EED1Ev
_ZNSt11_Tuple_implILm0EJN3rpl8producerIN4base5flagsIN11MTPDchannel4FlagEEENS0_8no_errorEZNS0_7details10map_helperIZN4Data18FlagsValueWithMaskINSA_5FlagsIS6_Lj2147486693EE6ChangeES7_ZNS8_11then_helperISE_S7_ZNKS0_12event_streamISE_E6eventsEvEUlRKT_E_EclISE_S7_ZNS0_6singleISE_EEDaOSI_EUlSK_E_SE_S7_EEDaONS1_ISI_T0_T1_EEEUlSK_E_EEDaSU_NSI_4TypeEEUlRKSE_E0_EclISE_S7_ZNS8_13filter_helperIZNSB_ISE_S7_SV_EEDaSU_SW_EUlSY_E_EclISE_S7_SV_vEEDaSU_EUlSK_E_S6_EEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNSA_15SingleFlagValueINSC_INS3_IN19MTPDchatAdminRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS1E_S7_ZNKSG_IS1E_E6eventsEvEUlSK_E_EclIS1E_S7_ZNSO_IS1E_EEDaSP_EUlSK_E_S1E_S7_EEDaSU_EUlSK_E_EEDaSU_NSI_4EnumEEUlS1C_E_EclIS1C_S7_ZNS9_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlRKS1E_E0_EclIS1E_S7_ZNS12_IZNSB_IS1E_S7_S1K_EEDaSU_SW_EUlS1Q_E_EclIS1E_S7_S1K_vEEDaSU_EUlSK_E_S1C_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNS19_INSC_INS3_IN20MTPDchatBannedRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_IS25_S7_ZNKSG_IS25_E6eventsEvEUlSK_E_EclIS25_S7_ZNSO_IS25_EEDaSP_EUlSK_E_S25_S7_EEDaSU_EUlSK_E_EEDaSU_S1L_EUlS23_E_EclIS23_S7_ZNS9_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlRKS25_E0_EclIS25_S7_ZNS12_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlS2G_E_EclIS25_S7_S2B_vEEDaSU_EUlSK_E_S23_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EES2Q_EED1Ev

Again, I don't know if this is a valid mangling or not.  But the odds are that
with a newer GDB, you'll be able to go further.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/27176] “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux
  2021-01-13  0:27 [Bug gdb/27176] New: “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux galex-713@galex-713.eu
                   ` (2 preceding siblings ...)
  2021-01-13  4:28 ` simark at simark dot ca
@ 2021-01-13  4:44 ` galex-713@galex-713.eu
  2021-01-13 14:12 ` cbiesinger at google dot com
  4 siblings, 0 replies; 6+ messages in thread
From: galex-713@galex-713.eu @ 2021-01-13  4:44 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27176

--- Comment #4 from Garreau, Alexandre <galex-713@galex-713.eu> ---
Le mercredi 13 janvier 2021 05:28:01 CET, vous avez écrit :
> https://sourceware.org/bugzilla/show_bug.cgi?id=27176
> 
> --- Comment #3 from Simon Marchi <simark at simark dot ca> ---
> (In reply to Garreau, Alexandre from comment #2)
> 
> > Oh thank you!  But I’m curious: why did *gdb* tell me it had a bug? if
> > the bug is not due to gdb but wrong input, shouldn’t gdb not say
> > that? isn’t that mere fact a sort of bug?
> 
> Perhaps.  gdb uses the demangler from gcc.  It's code shared between the
> two repos, but it's maintained by gcc and we just import it.  The
> demangler is never supposed to crash, but it happens some times.  I
> haven't written that code, but I suppose that it was decided that when
> this happens, GDB can't reasonably continue, so we might as well
> consider an error internal to the demangler internal to GDB too.

Oh ok.  I just reported everything, including the version and buildlogs of 
this version of telegram-desktop with the original gcc, but I guess it has 
nothing to do… anyway meanwhile I have also included the version of gdb.

> > Also, since I didn’t used directly gcc but only gdb, should I, now,
> > rather report the bug to my distribution (Debian) rather than gcc? or
> > should I investigate the gcc version that has been used to produce
> > these debugging symbols (likely gcc (Debian 8.3.0-6) 8.3.0), and
> > report to gcc anyway (pointing them to the wrongly mangled debugging
> > symbols)?
> 
> Well, you raise a good point about the versions.  You should ideally try
> the latest version of GDB (which might include a newer version of the
> demangler), see if the problem still exists.

That implies recompiling everything for a little problem whose 
implications I still don’t understand :/ I mainly reported because the UI 
asked me to.  And when an UI seems assertive enough about the fact its 
program is broken and I should report, I imagine that it can help 
improving something…

> When passing your symbol in c++filt on Debian 10, I get a segfault,
> likely the same root cause as your problem:
> 
> root@36f2fe0af0bb:/# c++filt
> _ZNSt11_Tuple_implILm0EJN3rpl8producerIN4base5flagsIN11MTPDchannel4FlagE
> EENS0_8no_errorEZNS0_7details10map_helperIZN4Data18FlagsValueWithMaskINS
> A_5FlagsIS6_Lj2147486693EE6ChangeES7_ZNS8_11then_helperISE_S7_ZNKS0_12ev
> ent_streamISE_E6eventsEvEUlRKT_E_EclISE_S7_ZNS0_6singleISE_EEDaOSI_EUlSK
> _E_SE_S7_EEDaONS1_ISI_T0_T1_EEEUlSK_E_EEDaSU_NSI_4TypeEEUlRKSE_E0_EclISE
> _S7_ZNS8_13filter_helperIZNSB_ISE_S7_SV_EEDaSU_SW_EUlSY_E_EclISE_S7_SV_v
> EEDaSU_EUlSK_E_S6_EEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNSA_15SingleFlagValue
> INSC_INS3_IN19MTPDchatAdminRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_I
> S1E_S7_ZNKSG_IS1E_E6eventsEvEUlSK_E_EclIS1E_S7_ZNSO_IS1E_EEDaSP_EUlSK_E_
> S1E_S7_EEDaSU_EUlSK_E_EEDaSU_NSI_4EnumEEUlS1C_E_EclIS1C_S7_ZNS9_IZNSB_IS
> 1E_S7_S1K_EEDaSU_SW_EUlRKS1E_E0_EclIS1E_S7_ZNS12_IZNSB_IS1E_S7_S1K_EEDaS
> U_SW_EUlS1Q_E_EclIS1E_S7_S1K_vEEDaSU_EUlSK_E_S1C_EEDaSU_EUlSK_E_bEEDaSU_
> EUlSK_E_EENS1_IbS7_ZNS9_IZNS19_INSC_INS3_IN20MTPDchatBannedRights4FlagEE
> ELj4294967295EE6ChangeES7_ZNSF_IS25_S7_ZNKSG_IS25_E6eventsEvEUlSK_E_EclI
> S25_S7_ZNSO_IS25_EEDaSP_EUlSK_E_S25_S7_EEDaSU_EUlSK_E_EEDaSU_S1L_EUlS23_
> E_EclIS23_S7_ZNS9_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlRKS25_E0_EclIS25_S7_ZNS
> 12_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlS2G_E_EclIS25_S7_S2B_vEEDaSU_EUlSK_E_S
> 23_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EES2Q_EED1Ev Segmentation fault (core
> dumped)
> 
> When I run it through c++file in my binutils-gdb development tree, it
> doesn't seem to demangle, but at least it doesn't segfault.
> 
> $ ../binutils/cxxfilt
> _ZNSt11_Tuple_implILm0EJN3rpl8producerIN4base5flagsIN11MTPDchannel4FlagE
> EENS0_8no_errorEZNS0_7details10map_helperIZN4Data18FlagsValueWithMaskINS
> A_5FlagsIS6_Lj2147486693EE6ChangeES7_ZNS8_11then_helperISE_S7_ZNKS0_12ev
> ent_streamISE_E6eventsEvEUlRKT_E_EclISE_S7_ZNS0_6singleISE_EEDaOSI_EUlSK
> _E_SE_S7_EEDaONS1_ISI_T0_T1_EEEUlSK_E_EEDaSU_NSI_4TypeEEUlRKSE_E0_EclISE
> _S7_ZNS8_13filter_helperIZNSB_ISE_S7_SV_EEDaSU_SW_EUlSY_E_EclISE_S7_SV_v
> EEDaSU_EUlSK_E_S6_EEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNSA_15SingleFlagValue
> INSC_INS3_IN19MTPDchatAdminRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_I
> S1E_S7_ZNKSG_IS1E_E6eventsEvEUlSK_E_EclIS1E_S7_ZNSO_IS1E_EEDaSP_EUlSK_E_
> S1E_S7_EEDaSU_EUlSK_E_EEDaSU_NSI_4EnumEEUlS1C_E_EclIS1C_S7_ZNS9_IZNSB_IS
> 1E_S7_S1K_EEDaSU_SW_EUlRKS1E_E0_EclIS1E_S7_ZNS12_IZNSB_IS1E_S7_S1K_EEDaS
> U_SW_EUlS1Q_E_EclIS1E_S7_S1K_vEEDaSU_EUlSK_E_S1C_EEDaSU_EUlSK_E_bEEDaSU_
> EUlSK_E_EENS1_IbS7_ZNS9_IZNS19_INSC_INS3_IN20MTPDchatBannedRights4FlagEE
> ELj4294967295EE6ChangeES7_ZNSF_IS25_S7_ZNKSG_IS25_E6eventsEvEUlSK_E_EclI
> S25_S7_ZNSO_IS25_EEDaSP_EUlSK_E_S25_S7_EEDaSU_EUlSK_E_EEDaSU_S1L_EUlS23_
> E_EclIS23_S7_ZNS9_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlRKS25_E0_EclIS25_S7_ZNS
> 12_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlS2G_E_EclIS25_S7_S2B_vEEDaSU_EUlSK_E_S
> 23_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EES2Q_EED1Ev
> _ZNSt11_Tuple_implILm0EJN3rpl8producerIN4base5flagsIN11MTPDchannel4Flag
> EEENS0_8no_errorEZNS0_7details10map_helperIZN4Data18FlagsValueWithMaskIN
> SA_5FlagsIS6_Lj2147486693EE6ChangeES7_ZNS8_11then_helperISE_S7_ZNKS0_12e
> vent_streamISE_E6eventsEvEUlRKT_E_EclISE_S7_ZNS0_6singleISE_EEDaOSI_EUlS
> K_E_SE_S7_EEDaONS1_ISI_T0_T1_EEEUlSK_E_EEDaSU_NSI_4TypeEEUlRKSE_E0_EclIS
> E_S7_ZNS8_13filter_helperIZNSB_ISE_S7_SV_EEDaSU_SW_EUlSY_E_EclISE_S7_SV_
> vEEDaSU_EUlSK_E_S6_EEDaSU_EUlSK_E_EENS1_IbS7_ZNS9_IZNSA_15SingleFlagValu
> eINSC_INS3_IN19MTPDchatAdminRights4FlagEEELj4294967295EE6ChangeES7_ZNSF_
> IS1E_S7_ZNKSG_IS1E_E6eventsEvEUlSK_E_EclIS1E_S7_ZNSO_IS1E_EEDaSP_EUlSK_E
> _S1E_S7_EEDaSU_EUlSK_E_EEDaSU_NSI_4EnumEEUlS1C_E_EclIS1C_S7_ZNS9_IZNSB_I
> S1E_S7_S1K_EEDaSU_SW_EUlRKS1E_E0_EclIS1E_S7_ZNS12_IZNSB_IS1E_S7_S1K_EEDa
> SU_SW_EUlS1Q_E_EclIS1E_S7_S1K_vEEDaSU_EUlSK_E_S1C_EEDaSU_EUlSK_E_bEEDaSU
> _EUlSK_E_EENS1_IbS7_ZNS9_IZNS19_INSC_INS3_IN20MTPDchatBannedRights4FlagE
> EELj4294967295EE6ChangeES7_ZNSF_IS25_S7_ZNKSG_IS25_E6eventsEvEUlSK_E_Ecl
> IS25_S7_ZNSO_IS25_EEDaSP_EUlSK_E_S25_S7_EEDaSU_EUlSK_E_EEDaSU_S1L_EUlS23
> _E_EclIS23_S7_ZNS9_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlRKS25_E0_EclIS25_S7_ZN
> S12_IZNSB_IS25_S7_S2B_EEDaSU_SW_EUlS2G_E_EclIS25_S7_S2B_vEEDaSU_EUlSK_E_
> S23_EEDaSU_EUlSK_E_bEEDaSU_EUlSK_E_EES2Q_EED1Ev
> 
> Again, I don't know if this is a valid mangling or not.  But the odds
> are that with a newer GDB, you'll be able to go further.

The fact is with this gdb I’m perfectly able to debug the program with no 
error, I just have to type “n” at the beginning of gdb (not to quit) and 
continue… and until now it worked… but I’m not that profficent with gdb and 
I have not have tried everything possible of course.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug gdb/27176] “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux
  2021-01-13  0:27 [Bug gdb/27176] New: “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux galex-713@galex-713.eu
                   ` (3 preceding siblings ...)
  2021-01-13  4:44 ` galex-713@galex-713.eu
@ 2021-01-13 14:12 ` cbiesinger at google dot com
  4 siblings, 0 replies; 6+ messages in thread
From: cbiesinger at google dot com @ 2021-01-13 14:12 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=27176

Christian Biesinger <cbiesinger at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #5 from Christian Biesinger <cbiesinger at google dot com> ---
However, gdb typically catches SIGSEGV from demangling calls to avoid issues
like this -- should whatever this callsite is do so too?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-01-13 14:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13  0:27 [Bug gdb/27176] New: “demangler-warning: unable to demangle” while loading debugging telegram-desktop under Debian 10 GNU/Linux galex-713@galex-713.eu
2021-01-13  1:03 ` [Bug gdb/27176] " simark at simark dot ca
2021-01-13  4:08 ` galex-713@galex-713.eu
2021-01-13  4:28 ` simark at simark dot ca
2021-01-13  4:44 ` galex-713@galex-713.eu
2021-01-13 14:12 ` cbiesinger at google dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).