From: Nitish Kumar Mishra <mishra.nitish.88@gmail.com>
To: David Edelsohn <dje.gcc@gmail.com>
Cc: Pedro Alves <palves@redhat.com>,
"gdb@sourceware.org" <gdb@sourceware.org>,
Yao Qi <qiyaoltc@gmail.com>
Subject: Re: Issue with Latest GDB on AIX with GCC-6.12
Date: Fri, 10 Feb 2017 07:22:00 -0000 [thread overview]
Message-ID: <CACC+hkj42Sz3pcOV7yRMZTboiCd8YFOwGug6NEgeEtWyyOC4gg@mail.gmail.com> (raw)
In-Reply-To: <CAGWvnyn_wHjeUOuj=3E+wokBCCRhd+ZiYPbXTQO+3N_d_kPYWg@mail.gmail.com>
Hi All,
> 3. GDB with GCC-6.1, 64 bit mode, with static options : NOT WORKING
> 4. GDB with GCC-6.1, 64 bit mode, without static options : COMPILATION ERROR.
>
> P.S.: Static options means: -static-libstdc++ -static-libgcc
>What is the compilation error?
With GCC-6.1, 64 bit mode, WITHOUT static option, below is the output of the
compilation error:
ld: 0711-317 ERROR: Undefined symbol: ._Unwind_Resume
ld: 0711-317 ERROR: Undefined symbol: .__cxa_atexit
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: error: ld returned 8 exit status
> Does GCC 4.8.5 and GCC 6.1 fail in the same manner? Neither catch the
exception?
Yes, by NOT WORKING, I meant, niether catching the exception and process is
getting terminated.
Thanks,
Nitish
On Thu, Feb 9, 2017 at 9:20 PM, David Edelsohn <dje.gcc@gmail.com> wrote:
> On Thu, Feb 9, 2017 at 7:15 AM, Nitish Kumar Mishra
> <mishra.nitish.88@gmail.com> wrote:
>> Hi all,
>> While sending the previous mail the statements got broken.
>> I am not sure if it is understandable. So, trying again :)
>>
>> 1. GDB with GCC-4.8.5, 32 bit mode, with or without static
>> options : NOT WORKING.
>> 2. GDB with GCC-4.8.5, 64 bit mode, with or without static
>> options : WORKING FINE
>
> Okay. This is why I was confused about GCC 4.8.5. I don't have any
> immediate intuition why 64 bit mode would have an effect on GCC. To
> me this implies a subtle AIX linker issue. I have experienced AIX ld
> behaving differently in 32 bit mode and 64 bit mode.
>
>> 3. GDB with GCC-6.1, 64 bit mode, with static options : NOT WORKING
>> 4. GDB with GCC-6.1, 64 bit mode, without static options : COMPILATION ERROR.
>>
>> P.S.: Static options means: -static-libstdc++ -static-libgcc
>
> What is the compilation error?
>
> Does GCC 4.8.5 and GCC 6.1 fail in the same manner? Neither catch the
> exception?
>
> GCC EH on AIX was improved (for GCC 6) to place EH tables in the
> read-only section so that they could be shared and not bloat the data
> section. This also changed the data encoding. But this change should
> not have affected the algorithm to find an exception handler.
>
> If it fails for both GCC 4.8 and GCC 6.1, that implies the problem is
> not a recent GCC change.
>
> It's possible that there is something wrong with the GCC code and it
> accidentally works sometime, or it's possible that there is some bad
> interaction between GCC and the AIX linker (like relocations or
> ordering of symbols).
>
> Because of the limited GDB functionality on AIX, debugging is
> difficult. We need some more information about exactly why the EH
> walker is failing to find the relevant EH frame. What is wrong with
> the table in the executable or in memory?
>
> Thanks, David
next prev parent reply other threads:[~2017-02-10 7:22 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-28 23:56 David Edelsohn
2017-01-29 1:11 ` David Edelsohn
2017-01-31 13:09 ` Pedro Alves
2017-02-07 8:05 ` Nitish Kumar Mishra
2017-02-07 10:30 ` Pedro Alves
2017-02-07 13:44 ` David Edelsohn
2017-02-07 13:57 ` Pedro Alves
2017-02-07 14:16 ` David Edelsohn
2017-02-08 6:16 ` Nitish Kumar Mishra
2017-02-08 7:04 ` Nitish Kumar Mishra
2017-02-08 12:06 ` Pedro Alves
2017-02-08 13:32 ` David Edelsohn
2017-02-09 4:51 ` Nitish Kumar Mishra
2017-02-09 12:05 ` Nitish Kumar Mishra
2017-02-09 12:15 ` Nitish Kumar Mishra
2017-02-09 15:50 ` David Edelsohn
2017-02-10 7:22 ` Nitish Kumar Mishra [this message]
2017-02-10 15:52 ` David Edelsohn
2017-02-12 21:05 ` David Edelsohn
2017-02-12 23:52 ` Pedro Alves
2017-02-13 15:02 ` David Edelsohn
2017-02-13 15:19 ` Eli Zaretskii
2017-02-13 15:38 ` Nitish Kumar Mishra
2017-02-20 11:22 ` Nitish Kumar Mishra
2017-02-20 11:25 ` Nitish Kumar Mishra
2017-02-20 11:37 ` Nitish Kumar Mishra
2017-02-21 8:01 ` Nitish Kumar Mishra
2017-02-21 14:47 ` David Edelsohn
-- strict thread matches above, loose matches on Subject: below --
2017-01-25 10:54 Nitish Kumar Mishra
2017-01-25 11:12 ` Pedro Alves
2017-01-25 13:52 ` Pedro Alves
2017-01-25 14:01 ` Pedro Alves
2017-01-25 14:38 ` Yao Qi
2017-01-25 14:44 ` Pedro Alves
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=CACC+hkj42Sz3pcOV7yRMZTboiCd8YFOwGug6NEgeEtWyyOC4gg@mail.gmail.com \
--to=mishra.nitish.88@gmail.com \
--cc=dje.gcc@gmail.com \
--cc=gdb@sourceware.org \
--cc=palves@redhat.com \
--cc=qiyaoltc@gmail.com \
/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: link
Be 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