public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59083] New: -fisolate-erroneous-paths produces illegal instruction with enabled -fprofile-generate
@ 2013-11-11 22:04 marxin.liska at gmail dot com
  2013-11-11 22:50 ` [Bug c++/59083] " law at redhat dot com
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: marxin.liska at gmail dot com @ 2013-11-11 22:04 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59083
           Summary: -fisolate-erroneous-paths produces illegal instruction
                    with enabled -fprofile-generate
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin.liska at gmail dot com

Hello,
   I've encountered a new bug that was introduced by SVN commit: 204414.

Program: gimp
commit 88ecd59c3436d302b644a5d25c1938c0e7b60ae0
Author: Michael Natterer <mitch@gimp.org>
Date:   Tue Feb 5 20:43:53 2013 +0100

GCC: 204414

uname -a:
Linux marxinbox 3.7.4-gentoo #6 SMP Mon Sep 30 20:53:52 CEST 2013 x86_64 AMD
FX(tm)-8350 Eight-Core Processor AuthenticAMD GNU/Linux

Build flags:
CFLAGS="-flto=9 -fno-fat-lto-objects -O2 -fprofile-generate"

When I added -fno-isolate-erroneous-paths the program run correctly.

Stacktrace:

    │0x988226 <windows_actions_dock_window_added+646>        addq  
$0x1,0x6a8732(%rip)        # 0x1030960
<__gcov0.gimp_action_group_add_actions.lto_priv.4837+64>                       
                                                   │   │0x98822e
<windows_actions_dock_window_added+654>        addq   $0x1,0x6a87d2(%rip)      
 # 0x1030a08 <__gcov0.gimp_action_group_add_actions.lto_priv.4837+232>         
                                                                │   │0x988236
<windows_actions_dock_window_added+662>        callq  0x820fa0
<gimp_action_group_check_unique_action.lto_priv.5831>                          
                                                                               
 │   │0x98823b <windows_actions_dock_window_added+667>        test   %eax,%eax 
                                                                               
                                                                              
│   │0x98823d <windows_actions_dock_window_added+669>        jne    0x988258
<windows_actions_dock_window_added+696>                                        
                                                                               
 │   │0x98823f <windows_actions_dock_window_added+671>        addq  
$0x1,0x6a8721(%rip)        # 0x1030968
<__gcov0.gimp_action_group_add_actions.lto_priv.4837+72>                       
                                                   │   │0x988247
<windows_actions_dock_window_added+679>        addq   $0x1,0x6a87b1(%rip)      
 # 0x1030a00 <__gcov0.gimp_action_group_add_actions.lto_priv.4837+224>         
                                                                │   │0x98824f
<windows_actions_dock_window_added+687>        jmpq   0x988100
<windows_actions_dock_window_added+352>                                        
                                                                               
 │   │0x988254 <windows_actions_dock_window_added+692>        nopl   0x0(%rax) 
                                                                               
                                                                              
│   │0x988258 <windows_actions_dock_window_added+696>        mov    $0x5,%edx  
                                                                               
                                                                              │
  │0x98825d <windows_actions_dock_window_added+701>        mov   
$0xb8b6f6,%esi                                                                 
                                                                               
          │   │0x988262 <windows_actions_dock_window_added+706>        xor   
%edi,%edi                                                                      
                                                                               
          │   │0x988264 <windows_actions_dock_window_added+708>        callq 
0x478da0 <dcgettext@plt>                                                       
                                                                               
          │  >│0x988269 <windows_actions_dock_window_added+713>        ud2     
                                                                               
                                                                               
        │   │0x98826b                                                nopl  
0x0(%rax,%rax,1)                                                               
                                                                               
          │   │0x988270 <windows_actions_update_display_accels>        push  
%r14                                                                           
                                                                               
          │   │0x988272 <windows_actions_update_display_accels+2>      mov   
%rdi,%r14                                                                      
                                                                               
          │   │0x988275 <windows_actions_update_display_accels+5>      push  
%r13                                                                           
                                                                               
          │   │0x988277 <windows_actions_update_display_accels+7>      push  
%r12                                                                           
                                                                               
          │   │0x988279 <windows_actions_update_display_accels+9>      push  
%rbp                                                                           
                                                                               
          │   │0x98827a <windows_actions_update_display_accels+10>     push  
%rbx                                                                           
                                                                               
          │   │0x98827b <windows_actions_update_display_accels+11>     mov   
0x20(%rdi),%rdi                                                                
                                                                               
          │   │0x98827f <windows_actions_update_display_accels+15>     addq  
$0x1,0x7e7df9(%rip)        # 0x1170080
<__gcov0.windows_actions_update_display_accels>                                
                                                   │   │0x988287
<windows_actions_update_display_accels+23>     callq  0x99e6b0
<gimp_get_display_iter>                                                        
                                                                               
 │   │0x98828c <windows_actions_update_display_accels+28>     test   %rax,%rax 
                                                                               
                                                                              
│   │0x98828f <windows_actions_update_display_accels+31>     mov    %rax,%rbx  
                                                                               
                                                                              │
  │0x988292 <windows_actions_update_display_accels+34>     je     0x988398
<windows_actions_update_display_accels+296>                                    
                                                                               
 │   │0x988298 <windows_actions_update_display_accels+40>     xor    %ebp,%ebp 
                                                                               
                                                                              
│   │0x98829a <windows_actions_update_display_accels+42>     jmpq   0x988366
<windows_actions_update_display_accels+246>                                    
                                                                               
 │   │0x98829f <windows_actions_update_display_accels+47>     nop        

Thank you,
Martin
>From gcc-bugs-return-434319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 11 22:08:57 2013
Return-Path: <gcc-bugs-return-434319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 8182 invoked by alias); 11 Nov 2013 22:08:57 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 8152 invoked by uid 48); 11 Nov 2013 22:08:52 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59083] -fisolate-erroneous-paths produces illegal instruction with enabled -fprofile-generate
Date: Mon, 11 Nov 2013 22:08:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed
Message-ID: <bug-59083-4-51AALLdLsP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59083-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59083-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-11/txt/msg01096.txt.bz2
Content-length: 580

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY083

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-11-11
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
We need a testcase for this.  ud2 translates to __builtin_trap so this could be
a bug in their code still.


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

end of thread, other threads:[~2013-12-18 13:08 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-11 22:04 [Bug c++/59083] New: -fisolate-erroneous-paths produces illegal instruction with enabled -fprofile-generate marxin.liska at gmail dot com
2013-11-11 22:50 ` [Bug c++/59083] " law at redhat dot com
2013-11-12 16:00 ` marxin.liska at gmail dot com
2013-11-12 16:17 ` octoploid at yandex dot com
2013-11-12 16:19 ` law at redhat dot com
2013-11-12 16:26 ` octoploid at yandex dot com
2013-11-12 16:39 ` octoploid at yandex dot com
2013-11-12 23:10 ` law at redhat dot com
2013-11-13  5:17 ` octoploid at yandex dot com
2013-11-13  5:30 ` law at redhat dot com
2013-11-13  7:34 ` law at redhat dot com
2013-11-13  7:42 ` law at redhat dot com
2013-11-13  7:50 ` octoploid at yandex dot com
2013-11-13  9:08 ` octoploid at yandex dot com
2013-11-13 15:47 ` rguenth at gcc dot gnu.org
2013-11-13 16:50 ` law at redhat dot com
2013-11-13 17:04 ` octoploid at yandex dot com
2013-11-13 17:10 ` law at redhat dot com
2013-11-18 12:03 ` octoploid at yandex dot com
2013-12-18 13:08 ` trippels at gcc dot gnu.org

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).