[Bug c++/18509] New: [hppa] try-catch program fails when compiled with frame pointers

tausq at debian dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 16 00:07:00 GMT 2004


tausq@ios:/tmp$ g++ -o try_catch try_catch.cc
tausq@ios:/tmp$ ./try_catch
Segmentation fault (core dumped)

tausq@ios:/tmp$ g++ -fomit-frame-pointer -o try_catch try_catch.cc
tausq@ios:/tmp$ ./try_catch
tausq@ios:/tmp$ 

tausq@ios:/tmp$ g++ -O1 -fno-omit-frame-pointer -o try_catch try_catch.cc
tausq@ios:/tmp$ ./try_catch
free(): invalid pointer 0xbff004b8!
Segmentation fault (core dumped)
tausq@ios:/tmp$

The same problem is seen in 3.0, but not in gcc-3.4.

-- 
           Summary: [hppa] try-catch program fails when compiled with frame
                    pointers
           Product: gcc
           Version: 3.3.5
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tausq at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: hppa-unknown-linux
  GCC host triplet: hppa-unknown-linux
GCC target triplet: hppa-unknown-linux


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



More information about the Gcc-bugs mailing list