473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

SIGSEGV : 11 error

Hi,
I ran my C++ application on UNIX and got the SIGSEGV: 11 error. dbx
reads the core like below:

0x7f741f10: _malloc_unlocked+0x021c: ld [%o0 + 8], %o1
Current function is std::allocator<std::pair<const int,ProcessState>
::allocate 389 void * tmp = _RWSTD_STATIC_CAST(void*,(::operator
new(_RWSTD_STATIC_CAST(size_t,(n)))));

[1] _malloc_unlocked(0x7f7c2858, 0x1bbfa8, 0x7f7bc008, 0x2008,
0x1bc040, 0x0),at 0x7f741f10
[2] malloc(0x2008, 0x0, 0x7fbdc0c0, 0x7fbdc790, 0x7fb40b60,
0x7fbded84), at 0x7f741cd8
[3] _filbuf(0x142238, 0x1, 0x7f7bc008, 0x0, 0x2000, 0x1), at
0x7f78edf8
[4] _doprnt(0x0, 0xffbedf68, 0x142238, 0x7f7bc008, 0x40, 0x11cf6c),
at 0x7f784afc
[5] printf(0x11cf6c, 0x142228, 0x7f7c3a54, 0x0, 0x2, 0x0), at
0x7f788154
[6] p4_error(0x139048, 0xb, 0xb, 0x0, 0x0, 0x0), at 0xfe7d0
[7] sig_err_handler(0xb, 0x0, 0xffbee0e0, 0x7f7bc008, 0x0, 0x0), at
0xfea14
[8] _setpgid(0xb, 0x0, 0xffbee0e0, 0x7f7c284c, 0x7f7c2848, 0x0), at
0x7f79ebc4
[9] _malloc_unlocked(0x7f7c2858, 0x1bbfa8, 0x7f7bc008, 0xb8,
0x1bc040, 0x0), at 0x7f741ea0
[10] malloc(0xb4, 0xffbee8c3, 0x0, 0xffbee8c2, 0x2234c, 0x7f741ce4),
at 0x7f741cd8
[11] operator new(0xb4, 0xffbee8c3, 0x13740, 0xffbeee38, 0x7fa4a8d4,
0xb4), at 0x7fa371b8
=>[12] std::allocator<std::pair<const int,ProcessState>::allocate(this = 0xffbee5ff, n = 180U, _ARG3 = (nil)), line 389 in "memory"

[13] std::allocator_interface<std::allocator<std::pair< const
int,ProcessState> >,__rwstd::__rb_tree<int,std::pair<const
int,ProcessState>,__rwstd::__select1st <std::pair<const
int,ProcessState>,int>,std::less<int>,std::allocat or<std::pair<const
int,ProcessState> > >::__rb_tree_node>::allocate(this = 0xffbee5ff, n =
1U, p = (nil)), line 488 in "memory"
[14] __rwstd::__rb_tree<int,std::pair<const
int,ProcessState>,__rwstd::__select1st<std::pair<c onst
int,ProcessState>,int>,std::less<int>,std::allocat or<std::pair<const
int,ProcessState> > >::__add_new_buffer(this = 0x1b9c28), line 167 in
"tree"
[15] __rwstd::__rb_tree<int,std::pair<const
int,ProcessState>,__rwstd::__select1st<std::pair<c onst
int,ProcessState>,int>,std::less<int>,std::allocat or<std::pair<const
int,ProcessState> > >::__get_link(this = 0x1b9c28), line 189 in "tree"
[16] __rwstd::__rb_tree<int,std::pair<const
int,ProcessState>,__rwstd::__select1st<std::pair<c onst
int,ProcessState>,int>,std::less<int>,std::allocat or<std::pair<const
int,ProcessState> > >::__get_node(this = 0x1b9c28), line 223 in "tree"
[17] __rwstd::__rb_tree<int,std::pair<const
int,ProcessState>,__rwstd::__select1st<std::pair<c onst
int,ProcessState>,int>,std::less<int>,std::allocat or<std::pair<const
int,ProcessState> > >::init(this = 0x1b9c28), line 483 in "tree"
[18] __rwstd::__rb_tree<int,std::pair<const
int,ProcessState>,__rwstd::__select1st<std::pair<c onst
int,ProcessState>,int>,std::less<int>,std::allocat or<std::pair<const
int,ProcessState> > >::__rb_tree(this = 0x1b9c28, _RWSTD_COMP = STRUCT,
always = false, alloc = CLASS), line 499 in "tree"
[19]
std::map<int,ProcessState,std::less<int>,std::allo cator<std::pair<const
int,ProcessState> > >::map(this = 0x1b9c28, comp = STRUCT, alloc =
CLASS), line 148 in "map"
[20] ContContrlState::ContContrlState(this = 0x1b9c00), line 18 in
"ContContrlState.hh"
[21] ContContrlObject::allocateState(this = 0x1b3c20), line 804 in
"ContContrlObject.cc"
[22] StateManager::saveState(this = 0x1b3e78), line 126 in
"StateManager.cc"
[23] TimeWarp::saveState(this = 0x1b3c20), line 429 in "TimeWarp.cc"
[24] TimeWarp::executeSimulation(this = 0x1b3c20), line 325 in
"TimeWarp.cc"
[25] LTSFScheduler::runProcesses(this = 0xffbef270), line 50 in
"LTSFScheduler.cc"
[26] LogicalProcess::simulate(this = 0xffbeee90, _ARG2 = 2147483647),
line 885 in "LogicalProcess.cc"
[27] main(argc = 1, argv = 0x16a420), line 299 in "main.cc"

Could anyone give me some hints about this?

Patricia

Sep 4 '05 #1
3 3305
Patricia wrote:
Hi,
I ran my C++ application on UNIX and got the SIGSEGV: 11 error. dbx
reads the core like below:

0x7f741f10: _malloc_unlocked+0x021c: ld [%o0 + 8], %o1
Current function is std::allocator<std::pair<const int,ProcessState>
::allocate


I'd guess that your heap is corrupt. You could be in for a long
debugging session to track it down, because with problems like this the
error often happens a long time before the program crashes.

john
Sep 4 '05 #2
Is there a way to make the program crash as soon as the heap is
corrupted ?

Sep 5 '05 #3
Patricia wrote:
Is there a way to make the program crash as soon as the heap is
corrupted ?


There are various tools that can help track down this sort of bug, by
warning about heap corruption and similar problems when they occur. They
tend to be compiler and/or operating system specific so you should ask
about these tools on a group for programming Unix, comp.unix.programmer
perhaps.

john
Sep 5 '05 #4

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

Similar topics

0
by: Dieter Maurer | last post by:
Python 2.3.3, Linux 2.4.x: It looks as if a SIGSEGV in a thread of a multi threaded application does not kill the complete process under some circumstances but only one thread (unrelated to the...
0
by: Paffko | last post by:
What are the possibilities of getting SIGBUS and SIGSEGV errors in the following scenario? There is a program (C/C++/Pro*C) that was running fine under HP-UX 11.x and Oracle8i (8.1.6). Oracle...
7
by: USUN_TO | last post by:
Hi, i got problem when i bind in this way: local_addr.sin_family = AF_INET; local_addr.sin_addr.s_addr = inet_addr("127.0.0.1"); local_addr.sin_port = htons(CLIENT_PORT); i can easly bind...
4
by: junky_fellow | last post by:
what is the difference between signals SIGBUS and SIGSEGV ? when does an application program receive SIGBUS and in which cases SIGSEGV ? thanx in advance for any help ...
13
by: vashwath | last post by:
Hi all, In my current project I am using signals for error handling. Since I cannot show full code, I have just shown important piece of code which is relevant. void sigsegenv() {...
4
by: subirs | last post by:
Hi, I am encountering SIGSEGV if I am opeing and closing a file in a do-while loop. i am including the part of the code where I have used fscanf....
1
by: rajukk200 | last post by:
Dear seniors, While starting up database I am getting "ORA-03113 End-of-file in communication channel" error. In alert log the following error is logged. ORA-07445: exception encountered:...
1
by: stuffduff | last post by:
Hi, I have a python extension that works fine while it is running, but when I exit python I get this error: GNU gdb Red Hat Linux (6.5-15.fc6rh) Copyright (C) 2006 Free Software Foundation,...
1
by: krazedkid | last post by:
I am trying to get my code to handle SIGSEGV multiple times, it will handle one of them but then nothing else. void sigHandler( int signum ) { if ( signum == SIGSEGV ) { printf("got a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.