public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/402] New: clog10 crushes with segmentation fault
@ 2004-09-24 7:22 fabian at fs-maphy dot uni-hannover dot de
2004-09-24 7:39 ` [Bug libc/402] " jakub at redhat dot com
2004-09-24 7:40 ` jakub at redhat dot com
0 siblings, 2 replies; 3+ messages in thread
From: fabian at fs-maphy dot uni-hannover dot de @ 2004-09-24 7:22 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/402] clog10 crushes with segmentation fault
2004-09-24 7:22 [Bug libc/402] New: clog10 crushes with segmentation fault fabian at fs-maphy dot uni-hannover dot de
@ 2004-09-24 7:39 ` jakub at redhat dot com
2004-09-24 7:40 ` jakub at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: jakub at redhat dot com @ 2004-09-24 7:39 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jakub at redhat dot com 2004-09-24 07:39 -------
Please RTFM info libc about Feature Set Macros.
clog10 is not an ISO C99 nor POSIX function, but a GNU extension.
As such it is only enabled with -D_GNU_SOURCE.
If you used at least some warnings (e.g. -Wall), gcc would tell you the
prototype is missing.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug libc/402] clog10 crushes with segmentation fault
2004-09-24 7:22 [Bug libc/402] New: clog10 crushes with segmentation fault fabian at fs-maphy dot uni-hannover dot de
2004-09-24 7:39 ` [Bug libc/402] " jakub at redhat dot com
@ 2004-09-24 7:40 ` jakub at redhat dot com
1 sibling, 0 replies; 3+ messages in thread
From: jakub at redhat dot com @ 2004-09-24 7:40 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From jakub at redhat dot com 2004-09-24 07:40 -------
*** Bug 403 has been marked as a duplicate of this bug. ***
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-09-24 7:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-24 7:22 [Bug libc/402] New: clog10 crushes with segmentation fault fabian at fs-maphy dot uni-hannover dot de
2004-09-24 7:39 ` [Bug libc/402] " jakub at redhat dot com
2004-09-24 7:40 ` jakub at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).