public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "changpeng.fang at amd dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/47037] 465.tonto Segmentation Fault in memset with -fcaller-saves (default at -O2 or higher) Date: Thu, 23 Dec 2010 18:05:00 -0000 [thread overview] Message-ID: <bug-47037-4-gbf5KDWfvM@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-47037-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47037 Changpeng Fang <changpeng.fang at amd dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|465.tonto Segmentation |465.tonto Segmentation |Fault in memset |Fault in memset with | |-fcaller-saves (default at | |-O2 or higher) --- Comment #3 from Changpeng Fang <changpeng.fang at amd dot com> 2010-12-23 18:05:02 UTC --- .LBB633: .loc 1 967 0 discriminator 2 movq %r13, %rdx movq %rbx, %rsi movq %rsp, %rdi call memcpy movl $128, %edx leaq (%rsp,%r13), %rdi ## <---- bad address movl $32, %esi subq %r13, %rdx movq %rsp, %r12 call memset jmp .L707 .LVL646: .p2align 4,,10 .p2align 3 Actually, the segfault is in copying label to symbol at line 967: character(128) :: symbol symbol = label(1:lensym) The memset is to set the remainder of the 128 bytes to ZEROs. The local code seems good to me. It might be that the %rsp is not appropriately set. Anyway, it is not likely to be a fortran bug because it only occurs at -O2 or higher when -fcaller-saves is turned on,
next prev parent reply other threads:[~2010-12-23 18:05 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-22 0:44 [Bug regression/47037] New: 465.tonto Segmentation Fault in memset changpeng.fang at amd dot com 2010-12-22 0:55 ` [Bug regression/47037] " changpeng.fang at amd dot com 2010-12-23 9:14 ` tkoenig at gcc dot gnu.org 2010-12-23 18:05 ` changpeng.fang at amd dot com [this message] 2010-12-23 18:09 ` [Bug regression/47037] 465.tonto Segmentation Fault in memset with -fcaller-saves (default at -O2 or higher) changpeng.fang at amd dot com 2010-12-28 16:07 ` rguenth at gcc dot gnu.org 2011-01-03 22:00 ` changpeng.fang at amd dot com 2011-01-03 22:04 ` hjl.tools at gmail dot com 2011-01-03 22:30 ` changpeng.fang at amd dot com 2012-02-02 8:13 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-47037-4-gbf5KDWfvM@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).