This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/402] New: clog10 crushes with segmentation fault
- From: "fabian at fs-maphy dot uni-hannover dot de" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 24 Sep 2004 07:22:51 -0000
- Subject: [Bug libc/402] New: clog10 crushes with segmentation fault
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
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.