[Linux-ia64] bug in fmod on trillian [fmod(-10,1) causes core dump]

From: Trent Mick <trentm_at_activestate.com>
Date: 2000-05-02 04:43:59
I hope that someone appropriate (i.e. someone at Cygnus or someone on
ia64-tools) sees this message.

Some arguments to fmod() cause a segmentation fault on trillian. Examples are
fmod(-10,1), fmod(-10,0.5).

Here is a test case:

-----------> ls
Makefile  fmodbug.c
-----------> cat fmodbug.c
#include <stdio.h>
#include <math.h>

int main(void)
        int i;
        double d;

        d = fmod(-10.0, 1.0);
        printf("fmod(-10,1) = %f\n", d);

        return 0;
-----------> cat Makefile
all : fmodbug

fmodbug : fmodbug.c
        gcc -lm fmodbug.c -o fmodbug

test :

clean :
        -rm -f fmodbug
        -rm -f core
        -rm -f *~
-----------> make
gcc -lm fmodbug.c -o fmodbug
-----------> make test
make: *** [test] Segmentation fault (core dumped)

I would appreciate a reply if this reaches the proper eyes. Or, if someone
can tell me to whom this should properly reported...


Trent Mick
Received on Mon May 01 11:45:49 2000

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:19:58 EST