Re: [xml] problems with libxml2.3.10 on alpha

"Daniel" == Daniel Veillard <veillard redhat com> writes:

    >> > >           [geertk thor libxml2-2.3.10]$ ./testXPath '//title'
    >> > >           Floating point exception
    >> > > 
    >> > 
    >> >   Strange the SIGFPE is supposed to be caught on xmlXPathDivideBy()
    >> > Where does it crash ?
    >> Ehhhh...  How can I see that?

    Daniel>   gdb ./testXPath
    Daniel>   ....
    Daniel>   (gdb) r '//title'
    Daniel>   ....
    Daniel>   (gdb) where

Thanks!  Here it is:

[geertk thor libxml2-2.3.10]$ LD_LIBRARY_PATH=$PWD/.libs gdb ./.libs/testXPath
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alpha-suse-linux-gnu"...
(gdb) r '//title'
Starting program: /home/geertk/build/libxml2-2.3.10/./.libs/testXPath '//title'

Program received signal SIGFPE, Arithmetic exception.
xmlXPathDivideBy (f=0, fzero=0) at xpath.c:182
182     }
(gdb) where
#0  xmlXPathDivideBy (f=0, fzero=0) at xpath.c:182
#1  0x2000019ff78 in xmlXPathInit () at xpath.c:195
#2  0x20000177b38 in xmlInitParser () at parser.c:9901
#3  0x20000173080 in xmlParseDocument (ctxt=0x1201025c0) at parser.c:7180
#4  0x200001779c4 in xmlSAXParseDoc (sax=0x0, cur=0x20000182d80 "", recovery=0)
    at parser.c:9838
#5  0x20000177a84 in xmlParseDoc (cur=0x20000182e80 "\027") at parser.c:9863
#6  0x1200018ac in main (argc=2, argv=0x11ffff408) at testXPath.c:176

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