Venkatesh Thanneermalai
2016-11-05 17:36:42 UTC
Hi Team,
I am using xerces 3.1.4. When the program is executed, the Initialize was
succesful and I had created an object for DOMParser on which I had called
parse() on an Input File in the local system.
While executing the same, got a segmentation fault
*Segmentation fault (protection violation) when writing to
0x1001002eb48Interrupt: 14Signal code: SEGV_ACCERR - Invalid permissions
for mapped object (2)A*borting process CBACsInstallerPT (15) in VM (id:0,
pid:8147, spawner pid:7788, lm set version:1)
Call stack for the same:
------------------------------------------------------------------------------
7f7fcdd62976: /lib64/libc.so.6: file format elf64-x86-64
Disassembly of section .text:
0000000000070976 <_IO_ferror+0x46>:
_IO_ferror():
70976: 0f b1 32 cmpxchg %esi,(%rdx)
------------------------------------------------------------------------------
8134c002:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000000caf72 <xercesc_3_1::PosixFileMgr::fileRead(void*, unsigned long,
unsigned char*, xercesc_3_1::MemoryManager*)+0x10e>:
_ZN11xercesc_3_112PosixFileMgr8fileReadEPvmPhPNS_13MemoryManagerE():
caf72: 85 c0 test %eax,%eax
------------------------------------------------------------------------------
81285fb8:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
0000000000004f28 <xercesc_3_1::XMLPlatformUtils::readFileBuffer(void*,
unsigned long, unsigned char*, xercesc_3_1::MemoryManager*)+0xc8>:
_ZN11xercesc_3_116XMLPlatformUtils14readFileBufferEPvmPhPNS_13MemoryManagerE():
4f28: 48 83 c4 30 add $0x30,%rsp
------------------------------------------------------------------------------
813c5139:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
-----------------------------------------------------------------------------
813c5139:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000001440a9 <xercesc_3_1::BinFileInputStream::readBytes(unsigned
char*, unsigned long)+0x31>:
_ZN11xercesc_3_118BinFileInputStream9readBytesEPhm():
1440a9: c9 leaveq
------------------------------------------------------------------------------
812e1669:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000000605d9 <xercesc_3_1::XMLReader::refreshRawBuffer()+0x16f>:
_ZN11xercesc_3_19XMLReader16refreshRawBufferEv():
605d9: 48 89 c2 mov %rax,%rdx
------------------------------------------------------------------------------
812e6563:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000000654d3 <xercesc_3_1::XMLReader::XMLReader(unsigned short const*,
unsigned short const*, xercesc_3_1::BinInputStream*,
xercesc_3_1::XMLReader::RefFrom, xercesc_3_1::XMLReader::Types,
xercesc_3_1::XMLReader::Sources, bool, bool, unsigned long,
xercesc_3_1::XMLReader::XMLVersion, xercesc_3_1::MemoryManager*)+0x1c3>:
_ZN11xercesc_3_19XMLReaderC1EPKtS2_PNS_14BinInputStreamENS0_7RefFromENS0_5TypesENS0_7SourcesEbbmNS0_10XMLVersionEPNS_13MemoryManagerE():
654d3: 48 8b 05 00 00 00 00 mov 0x0(%rip),%rax #
654da <xercesc_3_1::XMLReader::XMLReader(unsigned short const*, unsigned
short const*, xercesc_3_1::BinInputStream*,
xercesc_3_1::XMLReader::RefFrom, xercesc_3_1::XMLReader::Types,
xercesc_3_1::XMLReader::Sources, bool, bool, unsigned long,
xercesc_3_1::XMLReader::XMLVersion, xercesc_3_1::MemoryManager*)+0x1ca>
654d6: R_X86_64_GOTPCREL
xercesc_3_1::XMLPlatformUtils::fgTransService-0x4
Disassembly of section .text:
000000000005ec90
<xercesc_3_1::ReaderMgr::createReader(xercesc_3_1::InputSource const&,
bool, xercesc_3_1::XMLReader::RefFrom, xercesc_3_1::XMLReader::Types,
xercesc_3_1::XMLReader::Sources, bool, unsigned long)+0x24a>:
_ZN11xercesc_3_19ReaderMgr12createReaderERKNS_11InputSourceEbNS_9XMLReader7RefFromENS4_5TypesENS4_7SourcesEbm():
5ec90: 48 8b 45 a0 mov -0x60(%rbp),%rax
------------------------------------------------------------------------------
813f9868:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000001787d8
<xercesc_3_1::IGXMLScanner::scanReset(xercesc_3_1::InputSource
const&)+0x7ce>:
_ZN11xercesc_3_112IGXMLScanner9scanResetERKNS_11InputSourceE():
1787d8: 48 89 45 e8 mov %rax,-0x18(%rbp)
------------------------------------------------------------------------------
813f1547:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000001704b7
<xercesc_3_1::IGXMLScanner::scanDocument(xercesc_3_1::InputSource
const&)+0x6b>:
_ZN11xercesc_3_112IGXMLScanner12scanDocumentERKNS_11InputSourceE():
1704b7: 48 8b 45 98 mov -0x68(%rbp),%rax
------------------------------------------------------------------------------
812ec131:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
000000000006b0a1 <xercesc_3_1::XMLScanner::scanDocument(unsigned short
const*)+0x651>:
_ZN11xercesc_3_110XMLScanner12scanDocumentEPKt():
6b0a1: e9 66 01 00 00 jmpq 6b20c
<xercesc_3_1::XMLScanner::scanDocument(unsigned short const*)+0x7bc>
------------------------------------------------------------------------------
812ec33e:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
000000000006b2ae <xercesc_3_1::XMLScanner::scanDocument(char const*)+0x50>:
_ZN11xercesc_3_110XMLScanner12scanDocumentEPKc():
6b2ae: 48 8d 7d d0 lea -0x30(%rbp),%rdi
------------------------------------------------------------------------------
81396142:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000001150b2 <xercesc_3_1::AbstractDOMParser::parse(char const*)+0xd6>:
_ZN11xercesc_3_117AbstractDOMParser5parseEPKc():
1150b2: 48 8b 45 a8 mov -0x58(%rbp),%rax
Any help is appreciated on the reason.
--Venkatesh
I am using xerces 3.1.4. When the program is executed, the Initialize was
succesful and I had created an object for DOMParser on which I had called
parse() on an Input File in the local system.
While executing the same, got a segmentation fault
*Segmentation fault (protection violation) when writing to
0x1001002eb48Interrupt: 14Signal code: SEGV_ACCERR - Invalid permissions
for mapped object (2)A*borting process CBACsInstallerPT (15) in VM (id:0,
pid:8147, spawner pid:7788, lm set version:1)
Call stack for the same:
------------------------------------------------------------------------------
7f7fcdd62976: /lib64/libc.so.6: file format elf64-x86-64
Disassembly of section .text:
0000000000070976 <_IO_ferror+0x46>:
_IO_ferror():
70976: 0f b1 32 cmpxchg %esi,(%rdx)
------------------------------------------------------------------------------
8134c002:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000000caf72 <xercesc_3_1::PosixFileMgr::fileRead(void*, unsigned long,
unsigned char*, xercesc_3_1::MemoryManager*)+0x10e>:
_ZN11xercesc_3_112PosixFileMgr8fileReadEPvmPhPNS_13MemoryManagerE():
caf72: 85 c0 test %eax,%eax
------------------------------------------------------------------------------
81285fb8:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
0000000000004f28 <xercesc_3_1::XMLPlatformUtils::readFileBuffer(void*,
unsigned long, unsigned char*, xercesc_3_1::MemoryManager*)+0xc8>:
_ZN11xercesc_3_116XMLPlatformUtils14readFileBufferEPvmPhPNS_13MemoryManagerE():
4f28: 48 83 c4 30 add $0x30,%rsp
------------------------------------------------------------------------------
813c5139:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
-----------------------------------------------------------------------------
813c5139:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000001440a9 <xercesc_3_1::BinFileInputStream::readBytes(unsigned
char*, unsigned long)+0x31>:
_ZN11xercesc_3_118BinFileInputStream9readBytesEPhm():
1440a9: c9 leaveq
------------------------------------------------------------------------------
812e1669:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000000605d9 <xercesc_3_1::XMLReader::refreshRawBuffer()+0x16f>:
_ZN11xercesc_3_19XMLReader16refreshRawBufferEv():
605d9: 48 89 c2 mov %rax,%rdx
------------------------------------------------------------------------------
812e6563:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000000654d3 <xercesc_3_1::XMLReader::XMLReader(unsigned short const*,
unsigned short const*, xercesc_3_1::BinInputStream*,
xercesc_3_1::XMLReader::RefFrom, xercesc_3_1::XMLReader::Types,
xercesc_3_1::XMLReader::Sources, bool, bool, unsigned long,
xercesc_3_1::XMLReader::XMLVersion, xercesc_3_1::MemoryManager*)+0x1c3>:
_ZN11xercesc_3_19XMLReaderC1EPKtS2_PNS_14BinInputStreamENS0_7RefFromENS0_5TypesENS0_7SourcesEbbmNS0_10XMLVersionEPNS_13MemoryManagerE():
654d3: 48 8b 05 00 00 00 00 mov 0x0(%rip),%rax #
654da <xercesc_3_1::XMLReader::XMLReader(unsigned short const*, unsigned
short const*, xercesc_3_1::BinInputStream*,
xercesc_3_1::XMLReader::RefFrom, xercesc_3_1::XMLReader::Types,
xercesc_3_1::XMLReader::Sources, bool, bool, unsigned long,
xercesc_3_1::XMLReader::XMLVersion, xercesc_3_1::MemoryManager*)+0x1ca>
654d6: R_X86_64_GOTPCREL
xercesc_3_1::XMLPlatformUtils::fgTransService-0x4
Disassembly of section .text:
000000000005ec90
<xercesc_3_1::ReaderMgr::createReader(xercesc_3_1::InputSource const&,
bool, xercesc_3_1::XMLReader::RefFrom, xercesc_3_1::XMLReader::Types,
xercesc_3_1::XMLReader::Sources, bool, unsigned long)+0x24a>:
_ZN11xercesc_3_19ReaderMgr12createReaderERKNS_11InputSourceEbNS_9XMLReader7RefFromENS4_5TypesENS4_7SourcesEbm():
5ec90: 48 8b 45 a0 mov -0x60(%rbp),%rax
------------------------------------------------------------------------------
813f9868:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000001787d8
<xercesc_3_1::IGXMLScanner::scanReset(xercesc_3_1::InputSource
const&)+0x7ce>:
_ZN11xercesc_3_112IGXMLScanner9scanResetERKNS_11InputSourceE():
1787d8: 48 89 45 e8 mov %rax,-0x18(%rbp)
------------------------------------------------------------------------------
813f1547:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000001704b7
<xercesc_3_1::IGXMLScanner::scanDocument(xercesc_3_1::InputSource
const&)+0x6b>:
_ZN11xercesc_3_112IGXMLScanner12scanDocumentERKNS_11InputSourceE():
1704b7: 48 8b 45 98 mov -0x68(%rbp),%rax
------------------------------------------------------------------------------
812ec131:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
000000000006b0a1 <xercesc_3_1::XMLScanner::scanDocument(unsigned short
const*)+0x651>:
_ZN11xercesc_3_110XMLScanner12scanDocumentEPKt():
6b0a1: e9 66 01 00 00 jmpq 6b20c
<xercesc_3_1::XMLScanner::scanDocument(unsigned short const*)+0x7bc>
------------------------------------------------------------------------------
812ec33e:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
000000000006b2ae <xercesc_3_1::XMLScanner::scanDocument(char const*)+0x50>:
_ZN11xercesc_3_110XMLScanner12scanDocumentEPKc():
6b2ae: 48 8d 7d d0 lea -0x30(%rbp),%rdi
------------------------------------------------------------------------------
81396142:
/opt/lpmsv/codearchive/CsInstaller.LM_CXC1721053.Code.R14N01.cba-vdicos-x86_64.sle12:
file format elf64-x86-64
Disassembly of section .text:
00000000001150b2 <xercesc_3_1::AbstractDOMParser::parse(char const*)+0xd6>:
_ZN11xercesc_3_117AbstractDOMParser5parseEPKc():
1150b2: 48 8b 45 a8 mov -0x58(%rbp),%rax
Any help is appreciated on the reason.
--Venkatesh
--
It ain't over till it's over'
It ain't over till it's over'