public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55898] New: Can't obtain stack trace
@ 2013-01-07 15:02 net147 at gmail dot com
  2013-01-07 16:58 ` [Bug c++/55898] " paolo.carlini at oracle dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: net147 at gmail dot com @ 2013-01-07 15:02 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55898
           Summary: Can't obtain stack trace
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: net147@gmail.com


Created attachment 29098
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29098
Test case

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mbgcc-sjlj/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/4.8.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../../../mingw-sources/gcc-trunk/configure
--host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32
--target=x86_64-w64-mingw32
--prefix=/temp/x64-trunk-snapshot-win32-sjlj-rev2/prefix
--with-sysroot=/temp/x64-trunk-snapshot-win32-sjlj-rev2/prefix --enable-shared
--enable-static --enable-targets=all --enable-multilib
--enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes
--enable-threads=win32 --enable-libgomp --enable-lto --enable-graphite
--enable-cloog-backend=isl --enable-checking=release
--enable-fully-dynamic-string --enable-version-specific-runtime-libs
--enable-sjlj-exceptions --disable-ppl-version-check
--disable-cloog-version-check --disable-libstdcxx-pch --disable-libstdcxx-debug
--disable-bootstrap --disable-rpath --disable-win32-registry --disable-nls
--disable-werror --disable-symvers --with-gnu-as --with-gnu-ld
--with-tune=generic --with-host-libstdcxx='-static -lstdc++' --with-libiconv
--with-gmp=/temp/mingw-prereq/x86_64-w64-mingw32-static
--with-mpfr=/temp/mingw-prereq/x86_64-w64-mingw32-static
--with-mpc=/temp/mingw-prereq/x86_64-w64-mingw32-static
--with-ppl=/temp/mingw-prereq/x86_64-w64-mingw32-static
--with-cloog=/temp/mingw-prereq/x86_64-w64-mingw32-static
--with-pkgversion='Built by MinGW-builds project'
--with-bugurl=http://sourceforge.net/projects/mingwbuilds/ CFLAGS='-O2 -pipe
-fomit-frame-pointer -I/temp/x64-trunk-snapshot-win32-sjlj-rev2/libs/include
-I/temp/mingw-prereq/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe
-fomit-frame-pointer' CPPFLAGS= LDFLAGS='-pipe
-L/temp/x64-trunk-snapshot-win32-sjlj-rev2/libs/lib
-L/temp/mingw-prereq/x86_64-w64-mingw32-static/lib
-L/temp/x64-trunk-snapshot-win32-sjlj-rev2/prefix/opt/lib'
Thread model: win32
gcc version 4.8.0 20121225 (experimental) (Built by MinGW-builds project) 

g++ -g test.cpp
gdb a.exe
(gdb) break test.cpp:19
(gdb) run
(gdb) where
#0  Derived::Derived (this=0x22fd70) at test.cpp:19
#1  0x0000000000000000 in ?? ()

This affects MinGW-w64 GCC 64-bit SJLJ builds. GCC versions known to be
affected: 4.6.1, 4.6.3, 4.7.2, 4.8.0 20121225.

It does not seem to affect MinGW-w64 GCC 64-bit SEH builds.


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

* [Bug c++/55898] Can't obtain stack trace
  2013-01-07 15:02 [Bug c++/55898] New: Can't obtain stack trace net147 at gmail dot com
@ 2013-01-07 16:58 ` paolo.carlini at oracle dot com
  2013-01-07 18:42 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-01-07 16:58 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ktietz at gcc dot gnu.org

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-01-07 16:58:04 UTC ---
Kai, can you have a look?


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

* [Bug c++/55898] Can't obtain stack trace
  2013-01-07 15:02 [Bug c++/55898] New: Can't obtain stack trace net147 at gmail dot com
  2013-01-07 16:58 ` [Bug c++/55898] " paolo.carlini at oracle dot com
@ 2013-01-07 18:42 ` pinskia at gcc dot gnu.org
  2013-01-07 18:57 ` vanboxem.ruben at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-01-07 18:42 UTC (permalink / raw)
  To: gcc-bugs


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-01-07 18:42:21 UTC ---
I bet this is because --enable-sjlj-exceptions turns off the output of the
dwarf2 eh_frame which is used by the debugger to unwind the frames in most
cases if the frame pointer is omitted.

Why are you using SJLJ exceptions anyways? They are much slower when exceptions
don't happen.


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

* [Bug c++/55898] Can't obtain stack trace
  2013-01-07 15:02 [Bug c++/55898] New: Can't obtain stack trace net147 at gmail dot com
  2013-01-07 16:58 ` [Bug c++/55898] " paolo.carlini at oracle dot com
  2013-01-07 18:42 ` pinskia at gcc dot gnu.org
@ 2013-01-07 18:57 ` vanboxem.ruben at gmail dot com
  2013-01-11 10:20 ` net147 at gmail dot com
  2013-11-25 21:38 ` ktietz at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: vanboxem.ruben at gmail dot com @ 2013-01-07 18:57 UTC (permalink / raw)
  To: gcc-bugs


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

Ruben Van Boxem <vanboxem.ruben at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vanboxem.ruben at gmail dot
                   |                            |com

--- Comment #3 from Ruben Van Boxem <vanboxem.ruben at gmail dot com> 2013-01-07 18:57:20 UTC ---
I can confirm this happens on
GCC 4.7.2 x86_64 sjlj
GCC 4.6.3 x86_64 sjlj

And does not happen on (a good stack trace is obtained):
GCC 4.*.* i686 sjlj/dw2
GCC 4.8 x86_64 seh


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

* [Bug c++/55898] Can't obtain stack trace
  2013-01-07 15:02 [Bug c++/55898] New: Can't obtain stack trace net147 at gmail dot com
                   ` (2 preceding siblings ...)
  2013-01-07 18:57 ` vanboxem.ruben at gmail dot com
@ 2013-01-11 10:20 ` net147 at gmail dot com
  2013-11-25 21:38 ` ktietz at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: net147 at gmail dot com @ 2013-01-11 10:20 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Jonathan Liu <net147 at gmail dot com> 2013-01-11 10:20:15 UTC ---
It works if I compile the test case with -fno-exceptions.


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

* [Bug c++/55898] Can't obtain stack trace
  2013-01-07 15:02 [Bug c++/55898] New: Can't obtain stack trace net147 at gmail dot com
                   ` (3 preceding siblings ...)
  2013-01-11 10:20 ` net147 at gmail dot com
@ 2013-11-25 21:38 ` ktietz at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-11-25 21:38 UTC (permalink / raw)
  To: gcc-bugs

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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-11-25
     Ever confirmed|0                           |1

--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Yes, this is related to the switch --enable-sjlj-exceptions turning off
eh_frame information


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

end of thread, other threads:[~2013-11-25 21:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-07 15:02 [Bug c++/55898] New: Can't obtain stack trace net147 at gmail dot com
2013-01-07 16:58 ` [Bug c++/55898] " paolo.carlini at oracle dot com
2013-01-07 18:42 ` pinskia at gcc dot gnu.org
2013-01-07 18:57 ` vanboxem.ruben at gmail dot com
2013-01-11 10:20 ` net147 at gmail dot com
2013-11-25 21:38 ` ktietz 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).