当前位置: 技术问答>linux和unix
这个错误信息是什么意思:Address not mapped to object
来源: 互联网 发布时间:2016-10-09
本文导语: (gdb) n 87 if ( XMLString::equals(loop->loc, ptr) && XMLString::equals(loop->nstr, ptr1) ) (gdb) print loop->loc $1 = (unsigned short *) 0x5500540046002d (gdb) print ptr $2 = (unsigned short *) 0x60000000...
(gdb) n
87 if ( XMLString::equals(loop->loc, ptr) && XMLString::equals(loop->nstr, ptr1) )
(gdb) print loop->loc
$1 = (unsigned short *) 0x5500540046002d
(gdb) print ptr
$2 = (unsigned short *) 0x6000000000038870
(gdb) print loop->nstr
$3 = (unsigned short *) 0x600000000001c4a0
(gdb) print ptr1
$4 = (unsigned short *) 0x6000000000038d30
(gdb) n
Program received signal SIGSEGV, Segmentation fault
si_code: 1 - SEGV_MAPERR - Address not mapped to object.
0x400000000002e2c0:0 in xercesc_2_5::SchemaStore::hasSchemaItem (
this=0x600000000001a530, schemaLoc=0x60000000000a3810,
schemaNstr=0x60000000000a3680) at SchemaStore.cpp:87
87 if ( XMLString::equals(loop->loc, ptr) && XMLString::equals(loop->nstr, ptr1) )
大家有什么思路吗?
87 if ( XMLString::equals(loop->loc, ptr) && XMLString::equals(loop->nstr, ptr1) )
(gdb) print loop->loc
$1 = (unsigned short *) 0x5500540046002d
(gdb) print ptr
$2 = (unsigned short *) 0x6000000000038870
(gdb) print loop->nstr
$3 = (unsigned short *) 0x600000000001c4a0
(gdb) print ptr1
$4 = (unsigned short *) 0x6000000000038d30
(gdb) n
Program received signal SIGSEGV, Segmentation fault
si_code: 1 - SEGV_MAPERR - Address not mapped to object.
0x400000000002e2c0:0 in xercesc_2_5::SchemaStore::hasSchemaItem (
this=0x600000000001a530, schemaLoc=0x60000000000a3810,
schemaNstr=0x60000000000a3680) at SchemaStore.cpp:87
87 if ( XMLString::equals(loop->loc, ptr) && XMLString::equals(loop->nstr, ptr1) )
大家有什么思路吗?
|
指针loop->loc的地址值不对,无法读出该地址指向的obj。