ALL,
For some reason, I am getting a crash doing push_back in std::vector<>.
Below is the backtrace and the last executed line:
(gdb) s std::vector<DataEditFiield, std::allocator<DataEditFiield> >::push_back (this=0x7fffd6ffc9b0, __x=...)
at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_vector.h:954
954 { emplace_back(std::move(__x)); }
(gdb) fin Run till exit from #0 std::vector<DataEditFiield, std::allocator<DataEditFiield> >::push_back (this=0x7fffd6ffc9b0, __x=...)
at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_vector.h:954
Thread 11 "dbhandler" received signal SIGSEGV, Segmentation fault.
0x00007ffff541bea0 in __memcpy_ssse3 () from /lib64/libc.so.6 (gdb) bt
#0 0x00007ffff541bea0 in __memcpy_ssse3 () from /lib64/libc.so.6
#1 0x00007ffff5f90943 in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
>::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) () from
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libstdc++.so.6
#2 0x00007ffff5f90cc9 in std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t>
>::operator=(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) () from
/usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/libstdc++.so.6
#3 0x00007fffe30ebdd5 in DataEditFiield::ValuueType::ValuueType (this=0x7fffcc001420, myvalue=...) at ../../dbinterface/database.h:53
#4 0x00007fffe30f9b79 in DataEditFiield::DataEditFiield (this=0x7fffcc001410) at ../../dbinterface/database.h:40
#5 0x00007fffe30f9bc8 in __gnu_cxx::new_allocator<DataEditFiield>::construct<DataEditFiield, DataEditFiield> (this=0x7fffd6ffc9b0,
__p=0x7fffcc001410, __args#0=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/ext/new_allocator.h:136
#6 0x00007fffe30f7042 in std::allocator_traits<std::allocator<DataEditFiield>
>::construct<DataEditFiield, DataEditFiield> (__a=...,
__p=0x7fffcc001410, __args#0=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/alloc_traits.h:475
#7 0x00007fffe30f7157 in std::vector<DataEditFiield, std::allocator<DataEditFiield> >::_M_realloc_insert<DataEditFiield>
(this=0x7fffd6ffc9b0,
__position=..., __args#0=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/vector.tcc:415
#8 0x00007fffe30f3b76 in std::vector<DataEditFiield, std::allocator<DataEditFiield> >::emplace_back<DataEditFiield>
(this=0x7fffd6ffc9b0,
__args#0=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/vector.tcc:105
#9 0x00007fffe30f04d6 in std::vector<DataEditFiield, std::allocator<DataEditFiield> >::push_back (this=0x7fffd6ffc9b0,
__x=...)
at /usr/lib/gcc/x86_64-pc-linux-gnu/7.3.0/include/g++-v7/bits/stl_vector.h:954
#10 0x00007fffe30eb44c in SQLiteDatabase::EditTableData (this=0x555555e918f0, row=..., errorMsg=...)
at /home/igor/dbhandler/libsqlite/database_sqlite.cpp:2044
#11 0x00007fffd5eb60ba in DBTableEdit::Entry (this=0x555555880110) at /home/igor/dbhandler/libtabledataedit/dbtableedit.cpp:48
#12 0x00007ffff63b6bb5 in wxThread::CallEntry (this=0x555555880110) at ../include/wx/thrimpl.cpp:356
#13 0x00007ffff63b11a1 in wxThreadInternal::PthreadStart (thread=0x555555880110) at ../src/unix/threadpsx.cpp:891
#14 0x00007ffff63b0c31 in wxPthreadStart (ptr=0x555555880110) at ../src/unix/threadpsx.cpp:841
#15 0x00007ffff56a3aba in start_thread () from /lib64/libpthread.so.0
#16 0x00007ffff53d870f in clone () from /lib64/libc.so.6
What is the problem? Do I need to implement something?
The STL code shouldn't crash...
TIA!!
Aucun commentaire:
Enregistrer un commentaire