Hi,

My compilation settings are:

a. Platform : SunOS 5.7  sparc
b Compiler:  CC (SC5.0)
c. Xerces
   config     : -p solaris -ccc -xCC -minmem -nfileonly -tnative

One observation. The debug build of the same library seems to work( with both the
release and debug version of the sample SAXCount example ), with compilation
options as above.

Regards

RaviShet


Tinny Ng wrote:

> Ravindra,
>
> I've run the SAXCount that is shipped in the provided binary
> xerces-c1_4_0-SolCC.tar.gz   and I got the expected result without core dump:
>
>       > SAXCount personal.xml
>
>       Error at file
> /home/tng/tinny/ultra2/xerces-c1_4_0-SolCC/bin/personal.xml, line 8, char 10
>           Message: Unknown element 'persan'
>
> Since you build the parser yourself, may be it's related how you built it?
> What compiler did you use?
>
> Tinny
>
> Ravindra Shet wrote:
>
> > Hi,
> >
> > Anybody having an idea, why the Parser is crashing, instead of gracefully
> > exiting, after reporting the error??
> >
> > Would be grateful, if somebody could let me know of a solution to this at
> > the earliest.
> >
> > Thank you.
> >
> > Regards
> >
> > RaviShet
> >
> > Ravindra Shet wrote:
> >
> > > Hi,
> > >
> > > I was testing the SAXCount example with the 'personal.xml' data file
> > > provided with the distribution. I have build the xerces binary v1.4 (
> > > Release ) on Solaris and the example is also compiled in Release mode.
> > >
> > > On changing  the 'person' elements to 'persan', basically misspelling
> > > it, I got the following message and a core dump.
> > > ../../bin/SAXCount ../data/personal.xml. (For untempered data, the
> > > expected results are printed.)
> > >
> > > Error at file
> > > /home/ravishet/downloads/xerces-c1_4_0-SolCC/samples/data/personal.xml,
> > > line 8, char 10
> > >   Message: Unknown element 'persan'
> > > Segmentation Fault (core dumped)
> > >
> > > dbx shows the following trace dump.
> > > =>[1] 0xff317a2c(0xdc00, 0x0, 0xff168a80, 0xff168358, 0x0, 0xff168ac8),
> > > at 0xff317a2b
> > >   [2] XMLScanner::scanStartTag(0x1, 0x60f08, 0xff35b17c, 0x5bff8,
> > > 0xdc00, 0xdbff), at 0xff320084
> > >   [3] XMLScanner::scanContent(0x43, 0x0, 0x1, 0xff3499b0, 0x5c0bc,
> > > 0x18028), at 0xff31e568
> > >   [4] XMLScanner::scanDocument(0x5bff8, 0x60298, 0x0, 0x5c064, 0x5bff8,
> > > 0x6c), at 0xff31ca2c
> > >   [5] XMLScanner::scanDocument(0x60298, 0x60298, 0x10, 0xffbedaa8,
> > > 0x60298, 0x0), at 0xff31c7cc
> > >   [6] XMLScanner::scanDocument(0x5bff8, 0xffbede6b, 0x0, 0xfffffff8,
> > > 0x0, 0x600d9), at 0xff31c904
> > >   [7] SAXParser::parse(0xffbedc28, 0xffbede6b, 0xff35b17c, 0x0,
> > > 0xffbede6b, 0xffbedc28), at 0xff30ccb8
> > >   [8] main(0x3fb43, 0x8cfdeda, 0x2, 0x4, 0x551e8, 0x2), at 0x20054
> > >
> > > Would be grateful if anybody could tell me, what could be going wrong?
> > >
> > > RaviShet
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to