473,810 Members | 3,102 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Call stack of a SIGABRT, please help

Dear all,

I'm running a trace analyzer over a large trace file(several gig hz).
However it stopped in the middle. I got the call stack from the gdb. I
wonder if anyone could figure out the reason of this SIGABRT?

About to run ./tracer_21Feb200 6 ammp.loop_bound s.trace
ammp.mem_ops.tr ace
Using host libthread_db library "/lib/tls/libthread_db.so .1".

Program received signal SIGABRT, Aborted.
0x00ca8402 in __kernel_vsysca ll ()
#0 0x00ca8402 in __kernel_vsysca ll ()
#1 0x001697d5 in raise () from /lib/tls/libc.so.6
#2 0x0016b149 in abort () from /lib/tls/libc.so.6
#3 0x005641db in __gnu_cxx::__ve rbose_terminate _handler ()
from /usr/lib/libstdc++.so.6
#4 0x00561ef1 in __cxa_call_unex pected () from /usr/lib/libstdc++.so.6
#5 0x00561f26 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0x0056206f in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0x005624bc in operator new () from /usr/lib/libstdc++.so.6
#8 0x0804b0ba in std::vector<mem _op, std::allocator< mem_op> >
::_M_insert_aux
(this=0xbff7a2d 0, __position={_M_ current = 0xa7fca008},
__x=@0xbff7a240 )
at new_allocator.h :81
#9 0x0804a6ec in main (argc=3, argv=0xbff7a554 ) at stl_vector.h:33 0

terminate called after throwing an instance of 'std::bad_alloc '
what(): St9bad_alloc
=============== =============== ============
I would really appreciate if anyone could give some pointer or
suggestions!

Many thanks in advance,
Charlie

Feb 22 '06 #1
5 16613
Charlie wrote:
Dear all,

I'm running a trace analyzer over a large trace file(several gig hz).
However it stopped in the middle. I got the call stack from the gdb. I
wonder if anyone could figure out the reason of this SIGABRT?

About to run ./tracer_21Feb200 6 ammp.loop_bound s.trace
ammp.mem_ops.tr ace
Using host libthread_db library "/lib/tls/libthread_db.so .1".

Program received signal SIGABRT, Aborted.
0x00ca8402 in __kernel_vsysca ll ()
#0 0x00ca8402 in __kernel_vsysca ll ()
#1 0x001697d5 in raise () from /lib/tls/libc.so.6
#2 0x0016b149 in abort () from /lib/tls/libc.so.6
#3 0x005641db in __gnu_cxx::__ve rbose_terminate _handler ()
from /usr/lib/libstdc++.so.6
#4 0x00561ef1 in __cxa_call_unex pected () from /usr/lib/libstdc++.so.6
#5 0x00561f26 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0x0056206f in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0x005624bc in operator new () from /usr/lib/libstdc++.so.6
#8 0x0804b0ba in std::vector<mem _op, std::allocator< mem_op> >
::_M_insert_aux
(this=0xbff7a2d 0, __position={_M_ current = 0xa7fca008},
__x=@0xbff7a240 )
at new_allocator.h :81
#9 0x0804a6ec in main (argc=3, argv=0xbff7a554 ) at stl_vector.h:33 0

terminate called after throwing an instance of 'std::bad_alloc '
what(): St9bad_alloc
=============== =============== ============
I would really appreciate if anyone could give some pointer
NULL
or suggestions!


I'd say your program ran out of memory (the throw in new),
threw bad_alloc and then another exception was thrown
in the exception handling routines (hence std::terminate) ,
but I may be wrong.

HTH,
- J.
Feb 22 '06 #2

"Charlie" <go*********@ya hoo.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
Dear all,

I'm running a trace analyzer over a large trace file(several gig hz).
However it stopped in the middle. I got the call stack from the gdb. I
wonder if anyone could figure out the reason of this SIGABRT?

About to run ./tracer_21Feb200 6 ammp.loop_bound s.trace
ammp.mem_ops.tr ace
Using host libthread_db library "/lib/tls/libthread_db.so .1".

Program received signal SIGABRT, Aborted.
0x00ca8402 in __kernel_vsysca ll ()
#0 0x00ca8402 in __kernel_vsysca ll ()
#1 0x001697d5 in raise () from /lib/tls/libc.so.6
#2 0x0016b149 in abort () from /lib/tls/libc.so.6
#3 0x005641db in __gnu_cxx::__ve rbose_terminate _handler ()
from /usr/lib/libstdc++.so.6
#4 0x00561ef1 in __cxa_call_unex pected () from /usr/lib/libstdc++.so.6
#5 0x00561f26 in std::terminate () from /usr/lib/libstdc++.so.6
#6 0x0056206f in __cxa_throw () from /usr/lib/libstdc++.so.6
#7 0x005624bc in operator new () from /usr/lib/libstdc++.so.6
#8 0x0804b0ba in std::vector<mem _op, std::allocator< mem_op> >
::_M_insert_aux
(this=0xbff7a2d 0, __position={_M_ current = 0xa7fca008},
__x=@0xbff7a240 )
at new_allocator.h :81
#9 0x0804a6ec in main (argc=3, argv=0xbff7a554 ) at stl_vector.h:33 0

terminate called after throwing an instance of 'std::bad_alloc '
what(): St9bad_alloc
=============== =============== ============
I would really appreciate if anyone could give some pointer or
suggestions!


Your insert in a vector called new, which threw an error. Just look at them
backwards.

9: function main
8: called a std::vector.ins ert
7: which called new
6: which threw an error

New normally throws an error if it runs out of memory. Just how big is your
object?
Feb 22 '06 #3
Many thanks! The input files are, indeed, very large:

162M ammp.loop_bound s.trace
4.7G ammp.mem_ops.tr ace

I guess it maybe running out of the limit of 4Gb virtual memory? Is
there a work-arround to solve this problem?

Many thanks!

Feb 22 '06 #4
Many thanks for your suggestions! (and the NULL pointer :-) )

Feb 22 '06 #5
Charlie wrote:
Many thanks! The input files are, indeed, very large:

162M ammp.loop_bound s.trace
4.7G ammp.mem_ops.tr ace

I guess it maybe running out of the limit of 4Gb virtual memory? Is
there a work-arround to solve this problem?


Not reading a 4.7GB file into memory would be a good start.

Can you not access the file in much smaller chunks? The usual approach
is to have some meta data about the file you need to access. This meta
data may already be encoded into the file at the beginning or end, or
you may have to parse the file yourself and build the information.

This meta information typically allows you do to random access on the file.

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Feb 22 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1565
by: Berteun Damman | last post by:
Hello, First I was trying to get PyOSD, but as soon as I did `import pyosd' Python received a SIGABRT. Then I wrote my own module, which looks like: #include <Python.h> static PyMethodDef testmod_methods = { {NULL, NULL} }; void initmymod(void) { Py_InitModule("mymod", testmod_methods);
2
3767
by: Sylwia | last post by:
Hi! I need your help... I have the following problem. I've implemented the python Windows Service which behaves like a log supervisor. If the space used by log files is bigger than a given upper limit, then it starts to delete log files until the space is less than a given
0
1554
by: Nazgul | last post by:
Hi! Sorry if I posted it twice... I need your help... I have the following problem. I've implemented the python Windows Service which behaves like a log supervisor. If the space used by log files is bigger than a given upper limit, then it starts to delete log files until the space is less than a given lower limit. I configured the service to start up automatically on system boot. The script checks the space used by log files every 1000...
1
5635
by: Roger Davis | last post by:
I am having a problem with a program that allocates very large amounts of memory (approaching 2Gb total) in small chunks, e.g., a few Mb at a time. The program is dumping core because it consistently gets a SIGABRT while it is in a call to new to allocate memory. I tracked down some old Usenet postings that discussed how new's standard behavior is to throw an exception that ultimately results in a SIGABRT whenever it cannot allocate the...
2
6292
by: jammie_linux | last post by:
Hi, Can anybody please tell me that why the following code is getting the SIGABRT signal when the statement "node = new Node();" in the append function executes ? #include <iostream> #include <string> #include <new> using namespace std;
24
2633
by: ALI-R | last post by:
Hi All, First of all I think this is gonna be one of those threads :-) since I have bunch of questions which make this very controversial:-0) Ok,Let's see: I was reading an article that When you pass a Value-Type to method call ,Boxing and Unboxing would happen,Consider the following snippet: int a=1355; myMethod(a); ......
6
3831
by: spamguy21 | last post by:
I've been unusually plagued by programs compiling flawlessly but aborting halfway through due to SIGABRT error 6. I've done my best to diagnose, but it's not clear what I'm looking for; the code causing can be boiled down to basic commands. Below is the simplest instance I've made that reproduces the problem. Assume a class A. Class A contains a void function called insert: // file A.h #include <string>
1
3114
by: George2 | last post by:
Hello everyone, Such code segment is used to check whether function call or exception- handling mechanism runs out of memory first (written by Bjarne), void perverted() { try{
0
1215
by: Joey Bersche | last post by:
I've been experiencing an intermittent crash where no python stacktrace is provided. It happens for a url downloading process that can last up to 12 hours and crawls about 50,000 urls. I'm using urllib2 for the downloads. There are 5-10 downloading threads, and some custom website exploration code for providing the urls to crawl. The downloads are completed in memory (not piped), then saved to a file. There are also nice per domain...
0
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10124
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6882
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4334
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.