Skip navigation.
Home
The QNX Community Portal

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

Page 1 of 1

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

PostPosted: Tue Sep 06, 2016 6:01 pm
by abhayarya2000
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.

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

PostPosted: Tue Sep 06, 2016 9:24 pm
by Tim
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

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

PostPosted: Tue Sep 06, 2016 10:20 pm
by abhayarya2000
Thanks Tim