public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/18929] New: Profiling optimized code causes segfaults on ARM due to missing frames
@ 2004-12-10 18:16 opensource at artnaseef dot com
  2004-12-10 18:19 ` [Bug c/18929] " opensource at artnaseef dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: opensource at artnaseef dot com @ 2004-12-10 18:16 UTC (permalink / raw)
  To: gcc-bugs

When compiling with the arm-linux compiler with optimization enabled, the 
compiler removes frame pointers from functions even when they are profiled.  
This leads to a segmentation fault with the glibc version of mcount when it 
attempts to determine the caller of a function from the current stack because 
mcount assumes the frame pointer is there.

It seems that optimized functions, on this platform, should not drop their frame 
pointers when profiling is enabled.

-- 
           Summary: Profiling optimized code causes segfaults on ARM due to
                    missing frames
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: opensource at artnaseef dot com
                CC: gcc-bugs at gcc dot gnu dot org,opensource at artnaseef
                    dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-linux


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


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

end of thread, other threads:[~2004-12-13 15:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-10 18:16 [Bug c/18929] New: Profiling optimized code causes segfaults on ARM due to missing frames opensource at artnaseef dot com
2004-12-10 18:19 ` [Bug c/18929] " opensource at artnaseef dot com
2004-12-10 18:20 ` [Bug target/18929] " pinskia at gcc dot gnu dot org
2004-12-10 18:40 ` opensource at artnaseef dot com
2004-12-13 11:44 ` rearnsha at gcc dot gnu dot org
2004-12-13 15:28 ` opensource at artnaseef dot com
2004-12-13 15:46   ` Richard Earnshaw
2004-12-13 15:36 ` pinskia at gcc dot gnu dot org
2004-12-13 15:43 ` rearnsha at gcc dot gnu dot org
2004-12-13 15:56 ` opensource at artnaseef 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).