Re: [xml] Tru64 UNIX 5.1/IRIX 6.5 test suite errors



On Wed, Oct 26, 2005 at 10:33:45AM -0400, Daniel Veillard wrote:
On Wed, Oct 26, 2005 at 09:06:20AM -0500, Albert Chin wrote:
I'm getting the following errors from Tru64 UNIX 5.1 and IRIX 6.5 for
libxml 2.6.22:

put runtest into a debugger, run it (you can specify a string
argument, it will run only the tests matching that substring) and
put a breakpoint in __xmlRaiseError . Configuring without shared
libs may help.

I'm worried about the first one, those should have been ironed out a
long time ago...

paphio:~/XML -> gdb ./runtest
...
(gdb) b __xmlRaiseError
Breakpoint 1 at 0x804f6dc: file error.c, line 443.
(gdb) r "XML regression tests"
Starting program: /u/veillard/XML/runtest "XML regression tests"
[Thread debugging using libthread_db enabled]
[New Thread -1208043840 (LWP 21801)]
## XML regression tests
[Switching to Thread -1208043840 (LWP 21801)]

Breakpoint 1, __xmlRaiseError (schannel=0,
    channel=0x804fd91 <xmlParserWarning>, data=0x8906f90, ctx=0x8906f90,
    nod=0x0, domain=8, code=1549, level=XML_ERR_WARNING, file=0x0, line=0,
    str1=0x8911658 "title.xml", str2=0x0, str3=0x0, int1=143683472, col=0,
    msg=0x81011f0 "failed to load external entity \"%s\"\n") at error.c:443
443         xmlParserCtxtPtr ctxt = NULL;

On Tru64 UNIX:
$ ladebug runtest
ladebug> stop __xmlRaiseError
ladebug> run "Error cases regression tests"
ladebug> cont
ladebug> cont
ladebug> cont
ladebug> cont
ladebug> cont
ladebug> cont
ladebug> cont
0  0x120041b78 in __xmlRaiseError(schannel=0x0, channel=0x0, data=0x0, ctx=0x140051c28, nod=0x0, domain=1, 
code=537228436, level=XML_ERR_FATAL, file=0x0, line=1, 
str1=0x140072088="fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo",
str2=0x0, str3=0x0, int1=1074044192, col=0, msg=0x1400088a0="Couldn\'t find end of Start Tag %s line %d\n") 
"error.c":460
#1  0x120057490 in xmlFatalErrMsgStrIntStr(ctxt=0x140051c28, error=Info: no allocation applies for symbol 
error at the current PC
<no value>, msg=Info: no allocation applies for symbol msg at the current PC
<no value>, str1=Info: no allocation applies for symbol str1 at the current PC
<no value>, val=Info: no allocation applies for symbol val at the current PC
<no value>, str2=Info: no allocation applies for symbol str2 at the current PC
<no value>) "parser.c":499
#2  0x12006c4dc in xmlParseElement(ctxt=0x140051c28) "parser.c":8488
#3  0x12006e5a0 in xmlParseDocument(ctxt=0x140051c28) "parser.c":9118
#4  0x1200759f8 in xmlDoRead(ctxt=0x140051c28, URL=0x0, encoding=0x0, options=Info: no allocation applies for 
symbol options at the current PC
<no value>, reuse=0) "parser.c":13090
#5  0x120025c30 in errParseTest(filename=0x140054078="./test/errors/name.xml", 
result=0x140049d20="result/errors/name.xml", err=0x140051900="result/errors/name.xml.err", options=65536) 
"runtest.c":2009
#6  0x12002a4e0 in launchTests(tst=0x140002658) "runtest.c":4309
#7  0x12002a770 in runtest(i=Info: no allocation applies for symbol i at the current PC
<no value>) "runtest.c":4361
#8  0x12002a944 in main(argc=2, argv=0x11fffc018) "runtest.c":4392
#9  0x1200221f8 in __start(...) in runtest
ladebug> cont
Error for ./test/errors/name.xml failed
File ./test/errors/name.xml generated an error
[1] stopped at [void __xmlRaiseError(xmlStructuredErrorFunc, xmlGenericErrorFunc, void*, void*, void*, int, 
int, xmlErrorLevel, const char*, int, const char*, const char*, const char*, int, int, const char*):460 
0x120041b78]
    460     if ((xmlGetWarningsDefaultValue == 0) && (level == XML_ERR_WARNING))

I replaced vsnprintf() with trio_vsnprintf() on these platforms in
error.c and:
  ./runtest "Error cases regression tests"
  ## Error cases regression tests
  Total 8 tests, no errors

Does libxml assume a C99 vsnprintf() in error.c?

-- 
albert chin (china thewrittenword com)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]