Re: [xml] Problem running testapi for libxml2



On Wed, Jan 12, 2005 at 06:16:50PM -0500, ABeylin axsone com wrote:
GDB shows the stack better:
(gdb) where
#0  0xfeeb3218 in strlen () from /usr/lib/libc.so.1
#1  0xfef06520 in _doprnt () from /usr/lib/libc.so.1
#2  0xfef08694 in vsnprintf () from /usr/lib/libc.so.1
#3  0xff22e0ac in __xmlRaiseError (schannel=0x20aac <structured_errors>,
    channel=0xff22e8f8 <xmlParserWarning>, data=0xfef402a4, ctx=0xa19f0,
    nod=0x0, domain=8, code=1549, level=XML_ERR_WARNING, file=0x0,
line=0,
    str1=0x0, str2=0x0, str3=0x0, int1=0, col=0,
    msg=0xff2f8338 "failed to load external entity \"%s\"\n") at
error.c:492
#4  0xff257954 in __xmlLoaderErr (ctx=0xa19f0,
    msg=0xff2f8338 "failed to load external entity \"%s\"\n",
filename=0x0)
    at xmlIO.c:427
#5  0xff2312a8 in xmlNewInputFromFile (ctxt=0xa19f0, filename=0x0)
    at parserInternals.c:1493
#6  0x0003a64c in test_xmlNewInputFromFile () at testapi.c:16026
#7  0x0003b770 in test_parserInternals () at testapi.c:16638
#8  0x00022190 in testlibxml2 () at testapi.c:1153
#9  0x00020dec in main (argc=1, argv=0xffbee98c) at testapi.c:138
(gdb)

  Seems XML_GET_VAR_STR in error.c doesn't work okay on Solaris
is it fixed if you substitute the 150 at the beginning of the macro
with 1000 ? 
  I bet Solaris dislike the sequence

  va_start(ap, msg); 
  chars = vsnprintf(str, size, msg, ap);
  va_end(ap);
  va_start(ap, msg); 
  chars = vsnprintf(str2, size2, msg, ap);
  va_end(ap);

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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