public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/67950] New: AIX: Illegal instruction in accept()
@ 2015-10-13 10:17 streibel.2003 at gmx dot net
2015-10-13 10:55 ` [Bug c++/67950] " redi at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: streibel.2003 at gmx dot net @ 2015-10-13 10:17 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67950] AIX: Illegal instruction in accept()
2015-10-13 10:17 [Bug c++/67950] New: AIX: Illegal instruction in accept() streibel.2003 at gmx dot net
@ 2015-10-13 10:55 ` redi at gcc dot gnu.org
2015-10-13 11:36 ` streibel.2003 at gmx dot net
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2015-10-13 10:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67950
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2015-10-13
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The output of building GCC is not very helpful, please see
https://gcc.gnu.org/bugs/
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67950] AIX: Illegal instruction in accept()
2015-10-13 10:17 [Bug c++/67950] New: AIX: Illegal instruction in accept() streibel.2003 at gmx dot net
2015-10-13 10:55 ` [Bug c++/67950] " redi at gcc dot gnu.org
@ 2015-10-13 11:36 ` streibel.2003 at gmx dot net
2015-10-13 11:37 ` streibel.2003 at gmx dot net
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: streibel.2003 at gmx dot net @ 2015-10-13 11:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67950
--- Comment #2 from Hans Streibel <streibel.2003 at gmx dot net> ---
Ok, here is the missing Information:
[root@dev71 tmp]# /opt/gcc-4.9.3-hans/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/opt/gcc-4.9.3-hans/bin/gcc
COLLECT_LTO_WRAPPER=/opt/gcc-4.9.3-hans/libexec/gcc/powerpc-ibm-aix7.1.0.0/4.9.3/lto-wrapper
Target: powerpc-ibm-aix7.1.0.0
Configured with: ./configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld
--prefix=/opt/gcc-4.9.3-hans --enable-languages=c,c++
--enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd
--host=powerpc-ibm-aix7.1.0.0
Thread model: aix
gcc version 4.9.3 (GCC)
Compiler warnings:
Beside the warnings that where already in the original post, there are no
warnings, even None with -W and -Wall
Preprocessed files:
- tcpserver.i (produced by gcc)
- tcpserver.ii (produced by g++)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67950] AIX: Illegal instruction in accept()
2015-10-13 10:17 [Bug c++/67950] New: AIX: Illegal instruction in accept() streibel.2003 at gmx dot net
2015-10-13 10:55 ` [Bug c++/67950] " redi at gcc dot gnu.org
2015-10-13 11:36 ` streibel.2003 at gmx dot net
@ 2015-10-13 11:37 ` streibel.2003 at gmx dot net
2015-10-13 11:38 ` streibel.2003 at gmx dot net
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: streibel.2003 at gmx dot net @ 2015-10-13 11:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67950
--- Comment #3 from Hans Streibel <streibel.2003 at gmx dot net> ---
Created attachment 36496
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36496&action=edit
gcc preprocessed result
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67950] AIX: Illegal instruction in accept()
2015-10-13 10:17 [Bug c++/67950] New: AIX: Illegal instruction in accept() streibel.2003 at gmx dot net
` (2 preceding siblings ...)
2015-10-13 11:37 ` streibel.2003 at gmx dot net
@ 2015-10-13 11:38 ` streibel.2003 at gmx dot net
2015-10-13 11:46 ` streibel.2003 at gmx dot net
2021-07-18 21:21 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: streibel.2003 at gmx dot net @ 2015-10-13 11:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67950
--- Comment #4 from Hans Streibel <streibel.2003 at gmx dot net> ---
Created attachment 36497
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36497&action=edit
g++ preprocessed result
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67950] AIX: Illegal instruction in accept()
2015-10-13 10:17 [Bug c++/67950] New: AIX: Illegal instruction in accept() streibel.2003 at gmx dot net
` (3 preceding siblings ...)
2015-10-13 11:38 ` streibel.2003 at gmx dot net
@ 2015-10-13 11:46 ` streibel.2003 at gmx dot net
2021-07-18 21:21 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: streibel.2003 at gmx dot net @ 2015-10-13 11:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67950
--- Comment #5 from Hans Streibel <streibel.2003 at gmx dot net> ---
Just noticed:
Adding an optimization flag -O1 or -O2 to g++ removes this bug (-O0 does not
help):
[root@dev71 tmp]# /opt/gcc-4.9.3-hans/bin/g++ -o tcpserver.4.9.3++ -O1 -Wall
tcpserver.c
[root@dev71 tmp]# ./tcpserver.4.9.3++ 1234
--> before accept() <--
--> accept() returned: 4 <--
fd after accept(): 4
abc
read 0 bytes from the socket. Socket is closed
--> before accept() <--
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/67950] AIX: Illegal instruction in accept()
2015-10-13 10:17 [Bug c++/67950] New: AIX: Illegal instruction in accept() streibel.2003 at gmx dot net
` (4 preceding siblings ...)
2015-10-13 11:46 ` streibel.2003 at gmx dot net
@ 2021-07-18 21:21 ` pinskia at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-18 21:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67950
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Just marked as a dup of bug 63435 as mentioned and it looks like it is only an
issue in GCC 4.9 and before.
*** This bug has been marked as a duplicate of bug 63435 ***
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-07-18 21:21 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-13 10:17 [Bug c++/67950] New: AIX: Illegal instruction in accept() streibel.2003 at gmx dot net
2015-10-13 10:55 ` [Bug c++/67950] " redi at gcc dot gnu.org
2015-10-13 11:36 ` streibel.2003 at gmx dot net
2015-10-13 11:37 ` streibel.2003 at gmx dot net
2015-10-13 11:38 ` streibel.2003 at gmx dot net
2015-10-13 11:46 ` streibel.2003 at gmx dot net
2021-07-18 21:21 ` pinskia 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).