Skip navigation.
Home
The QNX Community Portal

View topic - Vector.assign crash in _flist_bin_first_fit () from libc.so.

Vector.assign crash in _flist_bin_first_fit () from libc.so.

For the old QNX2 and QNX4 RTOS

Vector.assign crash in _flist_bin_first_fit () from libc.so.

Postby abhayarya2000 » Tue Sep 06, 2016 6:01 pm

Hi,

I have following crash when trying to do vector.assign.
This code was working perfectly for 3 mnts but came across following crash one day.
Would like to know under what circumstances following crash occur.

#0 0x010279dc in _flist_bin_first_fit () from libc.so.3
#1 0x01027260 in _list_memalign () from libc.so.3
#2 0x01028440 in T.70 () from libc.so.3
#3 0x785e126c in operator new(unsigned int) () from libcpp.so.4
#4 0x780a80b8 in void std::vector<char, std::allocator<char> >::assign<char*>(char*, char*) () from libNS_FrameworkUnified.so

Kindly help under which situation above stack frame comes up.
abhayarya2000
New Member
 
Posts: 4
Joined: Fri Jul 01, 2016 11:52 pm

Re: Vector.assign crash in _flist_bin_first_fit () from libc

Postby Tim » Tue Sep 06, 2016 9:24 pm

Just a wild guess but I'd say your machine ran out of memory.

https://github.com/vocho/openqnx/blob/m ... c-common.h

I suspect that function definition at the above link means it's trying to fit your memory request (from the new() call) and is unable to do so and so it's throwing an exception. The fact you say it ran fine for 3 months is another reason to make me think you ran out of memory.

You may want to periodically check the ram usage of your program.

Tim
Tim
Senior Member
 
Posts: 1391
Joined: Wed Mar 10, 2004 12:28 am

Re: Vector.assign crash in _flist_bin_first_fit () from libc

Postby abhayarya2000 » Tue Sep 06, 2016 10:20 pm

Thanks Tim
abhayarya2000
New Member
 
Posts: 4
Joined: Fri Jul 01, 2016 11:52 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 2 guests