RE: [xml] strace reports SIGFPE during parsing

I am tracing down a similar problem in win32.  Evidently the various windows
platforms (not suprisingly) handle this differently.  I'll post a match when
I get it isolated.

-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: Thursday, July 12, 2001 10:10 AM
To: Petr Kozelka
Cc: xml gnome org
Subject: Re: [xml] strace reports SIGFPE during parsing

On Thu, Jul 12, 2001 at 05:54:09PM +0200, Petr Kozelka wrote:
when run with strace, it shows that SIGFPE occurs many times and 
is ignored (see log at the end of this message).
This is not a problem inside a normal C program, but Kylix seems 
to handle this signal in a way that terminates the application.

   Initialization of Nan +Infinity and -Infinity in xpath.c:

xmlXPathDivideBy(double f, double fzero) {
    double ret;
#ifdef SIGFPE
#ifdef SIG_IGN
    void (*sighandler)(int);
    sighandler = signal(SIGFPE, SIG_IGN);
    ret = f / fzero;
#ifdef SIGFPE
#ifdef SIG_IGN
    signal(SIGFPE, sighandler);

   The signal handler should be saved and restaured. This may
be platform specific.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine
Sep 17-18 2001 Brussels Red Hat TechWorld

xml mailing list
xml gnome org

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