public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64
@ 2004-09-02 3:21 masahiro at kasahara dot ws
2004-09-02 5:10 ` [Bug target/17277] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 8+ messages in thread
From: masahiro at kasahara dot ws @ 2004-09-02 3:21 UTC (permalink / raw)
To: gcc-bugs
Exception handling seems completely broken when -maix64 option is specified.
I have tried with g++ version 3.4.0, 3.4.1, 3.4.2 20040829 (prerelease)
respectively and got the same result. Following is a small test case.
cleo% cat throw.cc
#include <stdio.h>
int main()
{
try{
throw 1;
} catch( int i ) {
printf("catch\n");
}
return 0;
}
cleo% g++ -maix32 throw.cc -o throw; ./throw
catch
cleo% g++ -maix64 throw.cc -o throw; ./throw
zsh: segmentation fault (core dumped) ./throw
It works fine under -maix32 option, but when we want to compile in 64-bit mode
the compiled binary crushes just after throw. I used native ld and as (which
are the latest versions). The configure command line is
./configure --enable-languages=c,c++ --disable-nls
--
Summary: [AIX] could not catch an exception when specified -
maix64
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: masahiro at kasahara dot ws
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-ibm-aix5.2.0.0
GCC host triplet: powerpc-ibm-aix5.2.0.0
GCC target triplet: powerpc-ibm-aix5.2.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17277] [AIX] could not catch an exception when specified -maix64
2004-09-02 3:21 [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64 masahiro at kasahara dot ws
@ 2004-09-02 5:10 ` pinskia at gcc dot gnu dot org
2004-09-09 17:09 ` dje at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-02 5:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-09-02 05:10 -------
hmm, the only thing remotely close to this is PR 13391 but that delt with shared libraries.
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |target
Keywords| |wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17277] [AIX] could not catch an exception when specified -maix64
2004-09-02 3:21 [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64 masahiro at kasahara dot ws
2004-09-02 5:10 ` [Bug target/17277] " pinskia at gcc dot gnu dot org
@ 2004-09-09 17:09 ` dje at gcc dot gnu dot org
2004-09-09 17:10 ` dje at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-09-09 17:09 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2004-09-09 17:09 -------
The correct TOC pointer is not being restored in the exception handler catch
block, so the call to __cxa_catch_begin in the shared library through glink code
is loading the function address from the wrong TOC. The code works correctly in
32-bit mode and the algorithm is the same, so the failure is very suspicious.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Priority|P2 |P1
Last reconfirmed|0000-00-00 00:00:00 |2004-09-09 17:09:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17277] [AIX] could not catch an exception when specified -maix64
2004-09-02 3:21 [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64 masahiro at kasahara dot ws
2004-09-02 5:10 ` [Bug target/17277] " pinskia at gcc dot gnu dot org
2004-09-09 17:09 ` dje at gcc dot gnu dot org
@ 2004-09-09 17:10 ` dje at gcc dot gnu dot org
2004-09-11 17:10 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-09-09 17:10 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2004-09-09 17:09:46 |2004-09-09 17:10:26
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17277] [AIX] could not catch an exception when specified -maix64
2004-09-02 3:21 [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64 masahiro at kasahara dot ws
` (2 preceding siblings ...)
2004-09-09 17:10 ` dje at gcc dot gnu dot org
@ 2004-09-11 17:10 ` cvs-commit at gcc dot gnu dot org
2004-09-11 17:11 ` cvs-commit at gcc dot gnu dot org
2004-09-11 17:11 ` dje at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-11 17:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-11 17:10 -------
Subject: Bug 17277
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: dje@gcc.gnu.org 2004-09-11 17:10:25
Modified files:
gcc : ChangeLog
gcc/config/rs6000: aix.h
Log message:
PR target/17277
* config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Use __64BIT__ to
choose 64-bit version.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.617&r2=2.2326.2.618
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/aix.h.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.43.4.2&r2=1.43.4.3
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17277] [AIX] could not catch an exception when specified -maix64
2004-09-02 3:21 [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64 masahiro at kasahara dot ws
` (4 preceding siblings ...)
2004-09-11 17:11 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-11 17:11 ` dje at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: dje at gcc dot gnu dot org @ 2004-09-11 17:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From dje at gcc dot gnu dot org 2004-09-11 17:11 -------
Fixed in GCC 3.4.3 and mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17277] [AIX] could not catch an exception when specified -maix64
2004-09-02 3:21 [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64 masahiro at kasahara dot ws
` (3 preceding siblings ...)
2004-09-11 17:10 ` cvs-commit at gcc dot gnu dot org
@ 2004-09-11 17:11 ` cvs-commit at gcc dot gnu dot org
2004-09-11 17:11 ` dje at gcc dot gnu dot org
5 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-09-11 17:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-09-11 17:11 -------
Subject: Bug 17277
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: dje@gcc.gnu.org 2004-09-11 17:11:05
Modified files:
gcc : ChangeLog
Log message:
Add PR target/17277 to ChangeLog entry.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5391&r2=2.5392
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17277
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug target/17277] [AIX] could not catch an exception when specified -maix64
[not found] <bug-17277-4@http.gcc.gnu.org/bugzilla/>
@ 2014-06-28 16:51 ` chandrakm at hotmail dot com
0 siblings, 0 replies; 8+ messages in thread
From: chandrakm at hotmail dot com @ 2014-06-28 16:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17277
Krishnamoorthy C <chandrakm at hotmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |chandrakm at hotmail dot com
--- Comment #6 from Krishnamoorthy C <chandrakm at hotmail dot com> ---
The exact same code/application compiles and runs fine on multiple OS's ( HP
UX, Windows , Red Hat etc ) , i am seeing the problem only on AIX 7.1
But when you say this problem could be something other than AIX 7.1, could it
be the environment variables, or a mismatch in the shared libs used. Btw, a
shared lib , compiled with gcc on AIX 7.1, but in C language is also being
used.
Would you suggest using a lower verion of the gcc compiler what we used?
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-06-28 16:51 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-02 3:21 [Bug c++/17277] New: [AIX] could not catch an exception when specified -maix64 masahiro at kasahara dot ws
2004-09-02 5:10 ` [Bug target/17277] " pinskia at gcc dot gnu dot org
2004-09-09 17:09 ` dje at gcc dot gnu dot org
2004-09-09 17:10 ` dje at gcc dot gnu dot org
2004-09-11 17:10 ` cvs-commit at gcc dot gnu dot org
2004-09-11 17:11 ` cvs-commit at gcc dot gnu dot org
2004-09-11 17:11 ` dje at gcc dot gnu dot org
[not found] <bug-17277-4@http.gcc.gnu.org/bugzilla/>
2014-06-28 16:51 ` chandrakm at hotmail dot com
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).