Solved

terminate called after throwing an instance of 'int' Aborted (core dumped)

Posted on 2011-03-24
4
1,145 Views
Last Modified: 2012-05-11
Hi,
     Our application during the load test is exiting with zero size core dump (though the ulimit -c is set to unlimited), with the message "terminate called after throwing an instance of 'int' Aborted (core dumped)" displayed on the terminal.

    The application is written in C++ and runs on linux.

the output of uname -a of the machine on which our application is run is -
Linux version 2.6.9-42.ELsmp (bhcompile@hs20-bc1-1.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-2)) #1 SMP Wed Jul 12 23:27:17 EDT 2006
0
Comment
Question by:Jaya_Kumar_Satri
  • 2
  • 2
4 Comments
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 35221010
That looks to me like 2 messages run together. I recognise Aborted (core dumped) but not the preceding message which I suspect comes from some kind of signal handler.
I think your best bet is to run the program under gdb, which will stop and report when the first signal occurs. No need to re-comile with -g yet, although that might be useful.
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 35221012
Could it be that the application has filled the disk? You should really check this before the application exits, because they could be temporary files which disappear as soon as it does. Check disk space when gdb catches the first signal.
If you have quotas enabled, check them too.
0
 
LVL 8

Expert Comment

by:JIEXA
ID: 35225973
It seems to be a C++ application, and an exception (with int value) is thrown.

terminate() can be called if a function declares to throw one set of exception types, but another one is thrown, like:
  void func() throw (std::bad_alloc)
  { int v = 5; throw v; } // terminate() will be called
And the terminate() causes abort() call to be done, which causes a crash.
0
 
LVL 8

Expert Comment

by:JIEXA
ID: 35225978
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now