avatar
Abort(coredump) ??????????????# Unix - 噫吁兮,危乎高哉
m*r
1
After compiling, I ran the program. Linux gave me this error
message and nothing else.
When I use debugger to debug, entering some function ( I
guess that contains some mistakes), the message is :
__eq__H3ZcZt18string_char_traits1ZcZt24__default_alloc_templ
ate2b1i0_RCt12basic_string3ZX01ZX11ZX21PCX01_b
([email protected], rhs=0x804f801 "") at
../../../libstdc++/std/straits.h:125
Does this mean something wrong with standard lib file? Or I
used them wrong? Or, something else???
Please tell me why,
avatar
c*t
2
It' likely that the way you used the standard lib functions
wrong. For example, you tried to pass a NULL pointer to
a function which assume that is not.
You need to step through the program, or insert breaks
at various points to figure out the exact location of
erroraneous use of the lib function.

【在 m****r 的大作中提到】
: After compiling, I ran the program. Linux gave me this error
: message and nothing else.
: When I use debugger to debug, entering some function ( I
: guess that contains some mistakes), the message is :
: __eq__H3ZcZt18string_char_traits1ZcZt24__default_alloc_templ
: ate2b1i0_RCt12basic_string3ZX01ZX11ZX21PCX01_b
: ([email protected], rhs=0x804f801 "") at
: ../../../libstdc++/std/straits.h:125
: Does this mean something wrong with standard lib file? Or I
: used them wrong? Or, something else???

avatar
h*a
3
in gdb, when core dump, use where command to see the
stack

【在 c*****t 的大作中提到】
: It' likely that the way you used the standard lib functions
: wrong. For example, you tried to pass a NULL pointer to
: a function which assume that is not.
: You need to step through the program, or insert breaks
: at various points to figure out the exact location of
: erroraneous use of the lib function.

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。