string 에 계속 데이터를 넣을 경우 signal SIGABRT, Aborted . 발생
gdb
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1 0x00007f4b9a9fc9fb in __GI_abort () at abort.c:100
#2 0x00007f4b9b051957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007f4b9b057ab6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007f4b9b057af1 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007f4b9b057d24 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007f4b9b05829c in operator new(unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007f4b9b0e9c8b in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8 0x00007f4b9b0eb233 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_append(char const*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
coredumpctl gdb
Stack trace of thread 4789:
#0 0x00007f4b9a9fafb7 __GI_raise (libc.so.6)
#1 0x00007f4b9a9fc9fb __GI_abort (libc.so.6)
#2 0x00007f4b9b051957 n/a (libstdc++.so.6)
#3 0x00007f4b9b057ab6 n/a (libstdc++.so.6)
#4 0x00007f4b9b057af1 _ZSt9terminatev (libstdc++.so.6)
#5 0x00007f4b9b057d24 __cxa_throw (libstdc++.so.6)
#6 0x00007f4b9b05829c _Znwm (libstdc++.so.6)
#7 0x00007f4b9b0e9c8b _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEmmPKcm (libstdc++.so.6)
#8 0x00007f4b9b0eb233 _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm (libstdc++.so.6)
'프로그래밍 > C빌드 에러' 카테고리의 다른 글
[Ubuntu][GDB] Cannot access memory at address 발생하지 않는 방법 (0) | 2022.05.11 |
---|---|
[C 빌드 에러] error: narrowing conversion of ‘’ from ‘int’ to ‘char’ inside { } [-Wnarrowing] (0) | 2020.11.10 |
aws sdk cpp cmake error (0) | 2018.09.28 |
LINUX 빌드 후 mysql_query() 함수 Segmentation fault (0) | 2013.05.10 |
ld: 0711-317 ERROR: Undefined symbol: .floor (0) | 2013.05.09 |
댓글