Re: [BUGS] Test suite fails on alpha architecture
- To: Tom Lane <tgl@sss.pgh.pa.us>
- Cc: Falk Hueffner <falk@debian.org>, José Luis Rivero (yoswink) <yoswink@gentoo.org>, debian-alpha@lists.debian.org, alpha@gentoo.org, pgsql-bugs@postgresql.org, Martin Pitt <martin@piware.de>
- Subject: Re: [BUGS] Test suite fails on alpha architecture
- From: Steve Langasek <vorlon@debian.org>
- Date: Sun, 25 Nov 2007 12:50:30 -0800
- Message-id: <[🔎] 20071125205030.GD1295@dario.dodds.net>
- Mail-followup-to: Tom Lane <tgl@sss.pgh.pa.us>, Falk Hueffner <falk@debian.org>, José Luis Rivero (yoswink) <yoswink@gentoo.org>, debian-alpha@lists.debian.org, alpha@gentoo.org, pgsql-bugs@postgresql.org, Martin Pitt <martin@piware.de>
- In-reply-to: <[🔎] 28528.1194464663@sss.pgh.pa.us>
- References: <20071103151146.GE5140@piware.de> <13159.1194114445@sss.pgh.pa.us> <[🔎] 20071103223234.GH5140@piware.de> <[🔎] 47309750.5050901@gentoo.org> <[🔎] 23878.1194371554@sss.pgh.pa.us> <[🔎] 20071106200746.GF11752@dario.dodds.net> <[🔎] 27565.1194461393@sss.pgh.pa.us> <[🔎] 87mytp982s.fsf@debian.org> <[🔎] 28528.1194464663@sss.pgh.pa.us>
On Wed, Nov 07, 2007 at 02:44:23PM -0500, Tom Lane wrote:
> I don't have access to a machine on which the failure occurs, but
> perhaps Martin can try it. I'd think it'd be pretty easy, say
> #include <stdio.h>
> #include <stdlib.h>
> void
> ereport(const char *msg)
> {
> fprintf(stderr, "%s\n", msg);
> exit(0);
> }
>
> int
> main(int argc, char **argv)
> {
> int arg1 = atoi(argv[1]);
> int arg2 = atoi(argv[2]);
> int result;
>
> if (arg2 == 0)
> ereport("division by zero");
>
> result = arg1 / arg2;
>
> printf("%d\n", result);
>
> return 0;
> }
> cc -g -O2 -fPIC -fno-strict-aliasing -mieee -D_GNU_SOURCE bug.c
> ./a.out 1 0
> I would not be surprised at all if it's compile-switch dependent; these
> look to be the switches Martin tested with.
So strangely, when I first ran this test case I recall being able to
reproduce the SIGFPE; but now going back to it I'm getting the correct
"division by zero" output.
But postgresql still fails to build with the same errors as before.
FWIW, the first test suite failure involving floor() has been resolved now
in the glibc package in unstable.
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
vorlon@debian.org http://www.debian.org/
Reply to: