Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 98549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:13:02+00:00 2026-05-11T00:13:02+00:00

We get an abort when a C++ exception is thrown when running code compiled

  • 0

We get an abort when a C++ exception is thrown when running code compiled with -pthread.

Platform: AIX 5.3 technical level 8 Compiler: gcc 3.4.6 Linker: AIX linker 1.65.2.4

Test Code:

// exception.cpp #include <iostream>  class MyException { public:         MyException(){}         virtual ~MyException(){}; };  void gTest() {         throw MyException(); }  int main() {         try         {                 gTest();         }         catch(MyException const & ex)         {                 std::cout << 'exception was caught' << std::endl;         }          return 0; }   $ g++ exception.cpp $ ./a.out exception was caught $ g++ -pthread exception.cpp $ ./a.out terminate called after throwing an instance of 'MyException' IOT/Abort trap (core dumped) $ gdb a.out GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type 'show copying' to see the conditions. There is absolutely no warranty for GDB. Type 'show warranty' for details. This GDB was configured as 'powerpc-ibm-aix5.1.0.0'... (gdb) run Starting program: /home/leeder/except/a.out terminate called after throwing an instance of 'MyException'  Program received signal SIGABRT, Aborted. Switching to Thread 1 0xd0124834 in pthread_kill () from /usr/lib/libpthreads.a(shr_xpg5.o) (gdb) bt #0 0xd0124834 in pthread_kill () from /usr/lib/libpthreads.a(shr_xpg5.o) #1 0xd01242a8 in _p_raise () from /usr/lib/libpthreads.a(shr_xpg5.o) #2 0xd0359bdc in raise () from /usr/lib/libc.a(shr.o) #3 0xd03b7efc in abort () from /usr/lib/libc.a(shr.o) #4 0xd0ca1800 in __gnu_cxx::__verbose_terminate_handler() () at ../../.././libstdc++-v3/libsupc++/vterminate.cc:96 #5 0xd0ca1220 in __cxxabiv1::__terminate(void (*)()) (handler=0) at ../../.././libstdc++-v3/libsupc++/eh_terminate.cc:43 #6 0xd0ca128c in std::terminate() () at ../../.././libstdc++-v3/libsupc++/eh_terminate.cc:53 #7 0xd0ca7cfc in __cxa_throw (obj=0x200084e8, tinfo=0xffffffff, dest=Cannot access memory at address 0xffffffff ) at ../../.././libstdc++-v3/libsupc++/eh_throw.cc:80 #8 0x100008dc in gTest() () #9 0x100009f0 in main () (gdb) 

Has anyone seen anything similar?

Do you think upgrading to gcc 4 would help?

What about switching to IBM’s xl compiler?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:13:03+00:00Added an answer on May 11, 2026 at 12:13 am

    g++ 4.3.2 seems to work Ok for this problem. Also xlC v10 works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 213k
  • Answers 213k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I prefer to keep it simple: window.navigate('pathToApplication/MyApp.application'); May 12, 2026 at 10:35 pm
  • Editorial Team
    Editorial Team added an answer Christian has suggested a command button on a form, but… May 12, 2026 at 10:35 pm
  • Editorial Team
    Editorial Team added an answer Team City has an Open Source licensing option if that… May 12, 2026 at 10:35 pm

Related Questions

Even 2 decades ago, it was possible to call code written in one language
I recently read the excellent article The Transactional Memory / Garbage Collection Analogy by
My python project has a C++ component which is compiled and distributed as a
Is there a flag for gcc such that conversions from a long to a

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.