You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by da...@dk.ibm.com on 2001/01/11 08:36:50 UTC

Crash instantiating SAXParser


Hi,

I get a segmentation fault (coredump) on AIX when instantiating SAXParser
parser as part of an object.
This is what dbx says:
Segmentation fault in ensureExtraCapacity__11RefVectorOfXT10XMLDeleter_FCUi
 at 0
xd382bccc
0xd382bccc (ensureExtraCapacity__11RefVectorOfXT10XMLDeleter_FCUi+0xb0)
93bf000c
         st   r29,0xc(r31)


I'm on AIX 4.3.3 and xlC 3.6.6.
I have tried recompiling xercesc, same result!

I'm a novice in AIX and Xerces-C programming so it might be some stupid
mistake of mine.
BTW, the samples run fine (those that I have tried).

Ay suggestions?

Dan
-----------------------------
Dan K. Kyhl
I/T Specialist
IBM Global Services, Sortemosevej 21, DK-3450 Allerød, Denmark
Internet: danky@dk.ibm.com
Phone: +45 45239208, Cell phone: +45 40271008, Fax: +45 45236810



Re: Crash instantiating SAXParser

Posted by Kent Dahl <ke...@stud.ntnu.no>.
danky@dk.ibm.com wrote:
> I get a segmentation fault (coredump) on AIX when instantiating SAXParser
> parser as part of an object.

I had similar problems, but found in my case that
XMLPlatformUtils::Initialize() wasn't being called before the
construction of the object containing the SAXParser. 

That was in Linux on Intel, so if its a AIX specific problem I haven't
got a clue.

Another potential problem when instantiating SAXParser inside an object,
is destruction: Making sure the SAXParser dies before the Handler
registered with it, and not the handler first. I'm sticking to heap or
stack allocation, but then I'm probably just paranoid.

-- 
<[ Kent Dahl ]>================<[ http://www.stud.ntnu.no/~kentda/ ]>
  )____(stud.techn.;ind.øk.data)||(softwareDeveloper.at(Trustix))_( 
 /"Opinions expressed are mine and not those of my Employer,      "\
( "the University, my girlfriend, stray cats, banana fruitflies,  " )
 \"nor the frontal lobe of my left cerebral hemisphere.           "/