public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zsojka at seznam dot cz" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/48142] New: miscompilation with -mpreferred-stack-boundary=5 -fstack-check=specific Date: Wed, 16 Mar 2011 02:15:00 -0000 [thread overview] Message-ID: <bug-48142-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48142 Summary: miscompilation with -mpreferred-stack-boundary=5 -fstack-check=specific Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 23674 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23674 reduced testcase Output: $ g++ -Os -mpreferred-stack-boundary=5 -fstack-check=specific -fno-omit-frame-pointer testcase.C $ valgrind -q ./a.out ==16640== Invalid read of size 8 ==16640== at 0x4007D0: main (testcase.C:6) ==16640== Address 0xfffffffffffffff8 is not stack'd, malloc'd or (recently) free'd (gdb) i r rsp rsp 0xfffffffffffffff8 0xfffffffffffffff8 (gdb) disassemble 0x00000000004007c6 <+82>: pop %rcx 0x00000000004007c7 <+83>: pop %r10 0x00000000004007c9 <+85>: xor %eax,%eax 0x00000000004007cb <+87>: pop %rbp 0x00000000004007cc <+88>: lea -0x8(%r10),%rsp => 0x00000000004007d0 <+92>: retq End of assembler dump. Tested revisions: r171001 - fail 4.6 r170955 - fail 4.5 r170955 - OK
next reply other threads:[~2011-03-16 1:27 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-16 2:15 zsojka at seznam dot cz [this message] 2011-03-16 10:55 ` [Bug target/48142] [4.6/4.7 Regression] " rguenth at gcc dot gnu.org 2011-03-16 15:21 ` jakub at gcc dot gnu.org 2011-03-17 8:27 ` ebotcazou at gcc dot gnu.org 2011-03-17 9:38 ` jakub at gcc dot gnu.org 2011-03-31 11:45 ` [Bug target/48142] [4.6/4.7 Regression] miscompilation with -Os -mpreferred-stack-boundary=5 -fstack-check ebotcazou at gcc dot gnu.org 2011-03-31 12:01 ` ebotcazou at gcc dot gnu.org 2011-03-31 12:13 ` ebotcazou at gcc dot gnu.org 2011-04-22 18:54 ` ubizjak at gmail dot com 2011-04-22 19:50 ` ebotcazou at gcc dot gnu.org 2011-04-23 7:39 ` ubizjak at gmail dot com 2011-04-27 13:12 ` ebotcazou 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-48142-4@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).