Solved

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

Posted on 2011-03-24
4
1,135 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

706 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

20 Experts available now in Live!

Get 1:1 Help Now