This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/402] New: clog10 crushes with segmentation fault


Hi,

There are some math-routines that do not seem to work.
Here's clog10, which crashes with a segmentation fault.

I checked it with 2xSuSE and 1xGentoo
glibcs: libc-2.2.5, libc-2.3.2, libc-2.3.3
gccs: 3.2, 3.3, 3.4
kernels: 2.4.19, 2.6.7, 2.6.8.1

#include <complex.h>
#include <math.h>
#include <stdio.h>

int main(int argc, char **argv) {
    double complex x, y;
    x = 1 + 1*I;
    printf("%f+%f*i\n", creal(x), cimag(x));
    y = clog10(x);
    printf("%f+%f*i\n", creal(y), cimag(y));
    return 0;
}

$ gcc -lm test1.c -o test1

-- 
           Summary: clog10 crushes with segmentation fault
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P3
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: fabian at fs-maphy dot uni-hannover dot de
                CC: glibc-bugs at sources dot redhat dot com
  GCC host triplet: different
GCC target triplet: i686


http://sources.redhat.com/bugzilla/show_bug.cgi?id=402

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]