i use gtest to test my code,and when i execute the binary,i got this error:
[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (120 ms total)
[ PASSED ] 1 test.
Segmentation fault
it already test pass,but got Segmentation fault,and i use addr2line to check the error line,here is this line
file :string
line : 1471
void __set_short_size(size_type_s) _NOEXCEPT
#ifdef _LIBCPP_BIG_ENDIAN
{r_first().__s.__size = (unsigned_char)(_s);}
#else
{r_first().__s.__size = (unsigned_char)(_s<<1);} #line 1471
how can i do? thank you for your help
Aucun commentaire:
Enregistrer un commentaire