public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/56846] New: _Unwind_Backtrace on ARM and noexcept
@ 2013-04-04 19:40 npl at chello dot at
  2014-05-09  6:10 ` [Bug libgcc/56846] " joey.ye at arm dot com
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: npl at chello dot at @ 2013-04-04 19:40 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56846

             Bug #: 56846
           Summary: _Unwind_Backtrace on ARM and noexcept
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: npl@chello.at


I want to inquire about the feasibility of using _Unwind_Backtrace on ARM,
particularly in combination with the noexcept keyword.
Since the backtrace depends on the unwind information, it seems the
_Unwind_Backtrace breaks down when encountering "noexcept" functions.
Whats even worse is, that instead of just stopping, _Unwind_Backtrace will just
infinitely report the last context (unless the the callback tells to stop).

So there are two points I guess, first that the _Unwind_Backtrace should stop
when it cant proceed further instead of looping forever. I suppose thats a bug.

Then I`d ask if its somehow possible to still backtrace through noexcept
functions, perhaps with a compiler switch that still generates the necessary
unwind tables and/or manual adjustment to the personality routine. (gdb can
generate the traces... so I guess it must be possible)

I am using an arm-none-eabi toolchain, of version 4.7.2. 
----------------------------------------------------------------
Using built-in specs.
COLLECT_GCC=arm-none-eabi-gcc
COLLECT_LTO_WRAPPER=/opt/hipase-imx28-v0/libexec/gcc/arm-none-eabi/4.7.2/lto-wrapper
Target: arm-none-eabi
Configured with: /opt/hipase-imx28-v0/src/gcc-4.7.2/configure
--prefix=/opt/hipase-imx28-v0 --target=arm-none-eabi --enable-languages=c,c++
--disable-libstdcxx-verbose --disable-libmudflap --disable-libssp
--disable-libstdcxx-pch --enable-multilib --disable-shared --disable-nls
--with-system-zlib --enable-tls --enable-gold --with-gnu-as --with-gnu-ld
--enable-lto --with-newlib
--with-gmp=/home/tcbuild/toolchain-make/build/ggcnativebuild/gmp-5.0.5
--with-mpfr=/home/tcbuild/toolchain-make/build/ggcnativebuild/mpfr-3.1.1
--with-mpc=/home/tcbuild/toolchain-make/build/ggcnativebuild/mpc-1.0.1
--with-cloog=/home/tcbuild/toolchain-make/build/ggcnativebuild/cloog-ppl-0.15.11
--with-ppl=/home/tcbuild/toolchain-make/build/ggcnativebuild/ppl-0.11
--with-host-libstdcxx='-Wl,-Bstatic,/usr/lib/gcc/i486-linux-gnu/4.4.5/libstdc++.a,/usr/lib/gcc/i486-linux-gnu/4.4.5/libsupc++.a,-Bdynamic
-lm'
Thread model: single
gcc version 4.7.2 (GCC)


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

end of thread, other threads:[~2014-12-15 16:58 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-04 19:40 [Bug libgcc/56846] New: _Unwind_Backtrace on ARM and noexcept npl at chello dot at
2014-05-09  6:10 ` [Bug libgcc/56846] " joey.ye at arm dot com
2014-05-09 16:32 ` npl at chello dot at
2014-05-12  4:16 ` joey.ye at arm dot com
2014-05-14 19:00 ` npl at chello dot at
2014-05-16 15:05 ` ramana at gcc dot gnu.org
2014-08-22  6:01 ` joey.ye at arm dot com
2014-08-25  9:39 ` tony.wang at arm dot com
2014-08-25  9:58 ` tony.wang at arm dot com
2014-09-10  4:46 ` thopre01 at gcc dot gnu.org
2014-10-06 12:25 ` yroux at gcc dot gnu.org
2014-11-01 14:26 ` npl at chello dot at
2014-11-12 18:10 ` thopre01 at gcc dot gnu.org
2014-11-12 18:28 ` yroux at gcc dot gnu.org
2014-11-13  0:05 ` thopre01 at gcc dot gnu.org
2014-11-13  9:09 ` thopre01 at gcc dot gnu.org
2014-11-27 13:59 ` thopre01 at gcc dot gnu.org
2014-11-27 14:10 ` thopre01 at gcc dot gnu.org
2014-12-15 16:58 ` thopre01 at gcc dot gnu.org

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).