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: unassig...@gcc.gnu.org

        ReportedBy: net...@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.

Reply via email to