From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130990 invoked by alias); 13 Oct 2015 10:17:03 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 130908 invoked by uid 48); 13 Oct 2015 10:17:00 -0000 From: "streibel.2003 at gmx dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67950] New: AIX: Illegal instruction in accept() Date: Tue, 13 Oct 2015 10:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: streibel.2003 at gmx dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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: 2015-10/txt/msg00974.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67950 Bug ID: 67950 Summary: AIX: Illegal instruction in accept() Product: gcc Version: 4.9.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: streibel.2003 at gmx dot net Target Milestone: --- Created attachment 36494 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36494&action=edit Output of the GCC build process (make) I compiled GCC, Version 4.9.3 on an AIX 7.1 machine. The output of the build process (make) is in the appendix. A C test program which calls accept() works fine when compiled with gcc. However it crashes within the accept() function when compiled with g++. The crash happens as soon as a client connects to the server: [root@dev71 tmp]# uname -a AIX dev71 1 7 00F6C0A94C00 [root@dev71 tmp]# /opt/gcc-4.9.3-hans/bin/gcc -o tcpserver tcpserver.c [root@dev71 tmp]# /opt/gcc-4.9.3-hans/bin/g++ -o tcpserver tcpserver.c ld: 0711-768 WARNING: Object /tmp//ccy8CL9X.o, section 1, function .accept: The branch at address 0x8a8 is not followed by a recognized no-op or TOC-reload instruction. The unrecognized instruction is 0x7C691B78. ld: 0711-768 WARNING: Object /tmp//ccy8CL9X.o, section 1, function .accept: The branch at address 0x8a8 is not followed by a recognized no-op or TOC-reload instruction. The unrecognized instruction is 0x7C691B78. [root@dev71 tmp]# ./tcpserver 1234 --> before accept() <-- Illegal instruction (core dumped) [root@dev71 tmp]# A self compiled GCC, Version 4.9.1 Shows the same behaviour. A GCC, Version 4.8.3 which we installed via an RPM package works fine.