On 01/05/2024 12:27, Jonathan Gray wrote:
On Wed, May 01, 2024 at 02:02:53PM +1000, Jonathan Gray wrote:
On Tue, Apr 30, 2024 at 06:18:23PM +0100, colin.i.k...@gmail.com wrote:
Synopsis: sincosl() segmentation fault
Category: library
Environment:
System : OpenBSD 7.5
Details : OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
Description:
calls to sincosl with long double arguments causes a segmentation fault.
How-To-Repeat:
openbsd75$ cat x.c
#include <math.h>
int main(void)
{
long double theta = 0.0, s, c;
sincosl(theta, &s, &c);
}
openbsd75$ clang x.c -lm -o x
openbsd75$ ./x
Segmentation fault (core dumped)
NAN also crashes.
Both give the expected result with this diff.
Thanks for the report.
committed to -current
many thanks for fixing this