Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 19:12   ` Alexander L. Belikoff
@ 1999-07-11 17:46     ` Jeff Sturm
  0 siblings, 0 replies; 22+ messages in thread
From: Jeff Sturm @ 1999-07-11 17:46 UTC (permalink / raw)
  To: axp-list


On 12 Jul 1999, Alexander L. Belikoff wrote:
> Richard Henderson <rth@twiddle.net> writes:
> > This has been fixed for gcc 2.95.
> 
> To be more precise, "this has been fixed for the current development
> snapshots, that will become gcc 2.95 one day..." :-) The difference is
> crucial. We are talking about a bug in the "latest stable release."

No.  Gcc 2.95 is not a development snapshot; it will be a major release
(once it is ready).  See http://egcs.cygnus.com/gcc-2.95/gcc-2.95.html.

(I don't speak for Cygnus... I have been using gcc-2.95 since it was
frozen and find it just as stable as egcs-1.1.2 for my codes... YMMV.)

--
Jeff Sturm
jsturm1@home.com



^ permalink raw reply	[flat|nested] 22+ messages in thread

* an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
@ 1999-07-12 14:26 Alexander L. Belikoff
  1999-07-12 17:11 ` Wes Bauske
  1999-07-12 19:14 ` Richard Henderson
  0 siblings, 2 replies; 22+ messages in thread
From: Alexander L. Belikoff @ 1999-07-12 14:26 UTC (permalink / raw)
  To: egcs-bugs, egcs, axp-list

[-- Attachment #1: Type: text/plain, Size: 5222 bytes --]


Hello everybody,

While porting our code to Alpha dp264 (ev6), I've found the following
bug, that bit us quite painfully. It maybe the case that somebody
reported it before, but then it is unclear why nobody bothered to
issue an emergency bugfix release (1.1.3?). This one really looks like 
a major showstopper...

I. The environment:

Alpha dp264 (dual-CPU), running RedHat Linux 5.2 with kernel 2.2.10
(w/ d-ansn-2).

Bothe "native" compiler (egcs 1.0.3) and egcs 1.1.2 installed (the
latter built manually and installed in /usr/local/egcs). The latter
shows:

$ gcc -v
Reading specs from /usr/local/egcs/lib/gcc-lib/alphaev6-unknown-linux-gnu/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)


II. Short description of the bug:

When optimized, memcpy() function IN SOME CASES doesn't properly copy
the data.


III. The program (it is as minimal as it could be - the main bulk of
the source is the hexdump function):

============================================================================
#include <assert.h>
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>


void
hexdump(
	FILE* fp,		/* in - output stream */
	char* name,		/* in - dump name (or NULL) */
	char* buf,		/* in - buffer to dump */
	const size_t len	/* in - buffer length */
	)
{
    int i, j;

    assert(fp != NULL);
    assert(buf != NULL);
    assert(len > 0);

#define LMAX  16		/* number of bytes per line */

    fprintf(fp, "\n=== %s dump at %p (%d bytes) ====================\n",
	    (name ? name : ""), buf, (int) len);

    for (i = 0; i < len; i += LMAX) {
	unsigned short* ibuf = (unsigned short*) &buf[i];
	fprintf(fp, "%04d-%04d     ", i,
		(int) ((i + LMAX - 1 < len) ? i + LMAX - 1 : len));

	for (j = 0; j < LMAX / 2; j++) {
	    if (i + j * 2 >= len) {
		fprintf(fp, "%*s", (LMAX / 2 - j) * 5, "");
		break;
	    }
	    
	    fprintf(fp, "%04X ", ibuf[j]);
	}

	fprintf(fp, "     ");

	for (j = 0; j < LMAX; j++) {
	    char c;
	    
	    if (i + j >= len)
		break;

	    c = isprint(buf[i + j]) ? buf[i + j] : '.';
	    fprintf(fp, "%c", c);
	}

	fprintf(fp, "\n");
    }
    
    fprintf(fp, "========================================================="
	    "==================\n\n");
}


void
put_f8(
       double v,		/* in - value */
       char* buf		/* in - destination address */
       )
{
    v = 99.875;
    hexdump(stdout, "pack_f8: v", (char*) &v, 8);
    memcpy(buf, &v, 8);
    hexdump(stdout, "pack_f8: buf", (char*) buf, 8);
}


int 
main()
{
  double foovar = 0.05;
  double dbuf[3];

  memset(dbuf, '\0', sizeof(dbuf));
  put_f8(foovar, (char*) &dbuf);
  exit(1);
}


/*
  Local Variables:
  compile-command: "gcc -O2 -g  packbug.c -o packbug"
  End:
*/

=============================================================================

(the corresponding .i file is attached below)


IV. A bug demo session.

The program tries to write a double prec. value into a buffer, using
memcpy(). The value hexdump is printed before memcpy(), and the buffer 
hexdump is printed after it - they don't match in the environment
above, IF the compiler is egcs 1.1.2, AND -O2 is used. There may be
other combinations, however, showing the same bug.

a. a "buggy" session:

$ gcc -v
Reading specs from /usr/local/egcs/lib/gcc-lib/alphaev6-unknown-linux-gnu/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
$ gcc -Wall -O2 -g  packbug.c -o packbug
$ ./packbug 

=== pack_f8: v dump at 0x11ffff6e0 (8 bytes) ====================
0000-0008     0000 0000 F800 4058                          ......X@
===========================================================================


=== pack_f8: buf dump at 0x11ffff700 (8 bytes) ====================
0000-0008     0000 0000 0000 0000                          ........
===========================================================================


b. no optimization

$ gcc -v
Reading specs from /usr/local/egcs/lib/gcc-lib/alphaev6-unknown-linux-gnu/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
$ gcc -Wall -g  packbug.c -o packbug
$ ./packbug 

=== pack_f8: v dump at 0x11ffff6e0 (8 bytes) ====================
0000-0008     0000 0000 F800 4058                          ......X@
===========================================================================


=== pack_f8: buf dump at 0x11ffff708 (8 bytes) ====================
0000-0008     0000 0000 F800 4058                          ......X@
===========================================================================


c. egcs 1.0.3

$ /usr/bin/gcc -v
Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
$ /usr/bin/gcc -Wall -O2 -g  packbug.c -o packbug
$ ./packbug 

=== pack_f8: v dump at 0x11ffff6e0 (8 bytes) ====================
0000-0008     0000 0000 F800 4058                          ......X@
===========================================================================


=== pack_f8: buf dump at 0x11ffff700 (8 bytes) ====================
0000-0008     0000 0000 F800 4058                          ......X@
===========================================================================

Regards,

PS. Here is a cpp'ed file:


[-- Attachment #2: packbug.i.gz --]
[-- Type: application/octet-stream, Size: 11871 b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8Z(R`QX1!OH!^H,.^>D%QX1,
M)-5Z!J*L"0C@]*$%!9ZVJ:Z@!BL7:>A?[7+(S_P?_A?7[2VK$JWZA_>TY.=5
M5']>;5<%=.%9%`AV57Y5?41=*N%$&=H8$$;H$KYW\4XHEC"/><=*OH>&;+TG
M?[-M7K;HD=O>@`E,KT`#[2OE?B#?/OIVUU9Q:MB!M;Y@A2WN/)_97].T;;;;
MZ/.`2V(!^"/F;#_+T#@KP"]WUE9%QR3>9CAO\W<!$:EL%A65-!D&YZ#4Y\\?
M[3Q[RJLB(^V:<@?ZVM^4%U/0%U*W>9@&OC^0.;4NQ@$<8]XF.T(G?-%GC3FC
MFKXT`T!06#"\':$`VI2K=+=]C5='5'Z4)',P+["^1QNL6B)]2!M\B[_I@Z^*
MK`T9WK=_;'S+1U/)B"6UF+!"M1Q.J26CH`3TP=.U32$,7S'[/RY;[&Q'OP``
`
end

[-- Attachment #3: Type: text/plain, Size: 108 bytes --]



-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il

^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 17:11 ` Wes Bauske
@ 1999-07-12 16:38   ` Alexander L. Belikoff
  1999-07-12 21:54     ` Joachim Wesner
  1999-07-12 18:47   ` Uncle George
  1 sibling, 1 reply; 22+ messages in thread
From: Alexander L. Belikoff @ 1999-07-12 16:38 UTC (permalink / raw)
  To: axp-list

"Wes Bauske" <wsb@paralleldata.com> writes:

> Try modifying your code to pass the address of a double rather 
> than the double itself and see if you still can create the
> problem. I've seen problems passing floats/doubles to functions
> rather than their addresses. I just pass the address instead.

As you may have noticed, I didn't talk about workaround - there are
many of them. The one, I'm using now is that I have a temporary
volatile double v2 in put_f8() and I copy v into v2 and use the
latter. Other possible workarounds include, compiling put_f8() with
optimization turned off (it is not time-critical), or using manual
'for' loop, rather than memcpy().


-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 14:26 an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) Alexander L. Belikoff
@ 1999-07-12 17:11 ` Wes Bauske
  1999-07-12 16:38   ` Alexander L. Belikoff
  1999-07-12 18:47   ` Uncle George
  1999-07-12 19:14 ` Richard Henderson
  1 sibling, 2 replies; 22+ messages in thread
From: Wes Bauske @ 1999-07-12 17:11 UTC (permalink / raw)
  To: axp-list


Try modifying your code to pass the address of a double rather 
than the double itself and see if you still can create the
problem. I've seen problems passing floats/doubles to functions
rather than their addresses. I just pass the address instead.


Wes


"Alexander L. Belikoff" wrote:
> 
> Hello everybody,
> 
> While porting our code to Alpha dp264 (ev6), I've found the following
> bug, that bit us quite painfully. It maybe the case that somebody
> reported it before, but then it is unclear why nobody bothered to
> issue an emergency bugfix release (1.1.3?). This one really looks like
> a major showstopper...
> 
> I. The environment:
> 
> Alpha dp264 (dual-CPU), running RedHat Linux 5.2 with kernel 2.2.10
> (w/ d-ansn-2).
> 
> Bothe "native" compiler (egcs 1.0.3) and egcs 1.1.2 installed (the
> latter built manually and installed in /usr/local/egcs). The latter
> shows:
> 
> $ gcc -v
> Reading specs from /usr/local/egcs/lib/gcc-lib/alphaev6-unknown-linux-gnu/egcs-2.91.66/specs
> gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
> 
> II. Short description of the bug:
> 
> When optimized, memcpy() function IN SOME CASES doesn't properly copy
> the data.
> 
> III. The program (it is as minimal as it could be - the main bulk of
> the source is the hexdump function):
> 
> ============================================================================
> #include <assert.h>
> #include <ctype.h>
> #include <stdlib.h>
> #include <stdio.h>
> #include <unistd.h>
> #include <string.h>
> 
> void
> hexdump(
>         FILE* fp,               /* in - output stream */
>         char* name,             /* in - dump name (or NULL) */
>         char* buf,              /* in - buffer to dump */
>         const size_t len        /* in - buffer length */
>         )
> {
>     int i, j;
> 
>     assert(fp != NULL);
>     assert(buf != NULL);
>     assert(len > 0);
> 
> #define LMAX  16                /* number of bytes per line */
> 
>     fprintf(fp, "\n=== %s dump at %p (%d bytes) ====================\n",
>             (name ? name : ""), buf, (int) len);
> 
>     for (i = 0; i < len; i += LMAX) {
>         unsigned short* ibuf = (unsigned short*) &buf[i];
>         fprintf(fp, "%04d-%04d     ", i,
>                 (int) ((i + LMAX - 1 < len) ? i + LMAX - 1 : len));
> 
>         for (j = 0; j < LMAX / 2; j++) {
>             if (i + j * 2 >= len) {
>                 fprintf(fp, "%*s", (LMAX / 2 - j) * 5, "");
>                 break;
>             }
> 
>             fprintf(fp, "%04X ", ibuf[j]);
>         }
> 
>         fprintf(fp, "     ");
> 
>         for (j = 0; j < LMAX; j++) {
>             char c;
> 
>             if (i + j >= len)
>                 break;
> 
>             c = isprint(buf[i + j]) ? buf[i + j] : '.';
>             fprintf(fp, "%c", c);
>         }
> 
>         fprintf(fp, "\n");
>     }
> 
>     fprintf(fp, "========================================================="
>             "==================\n\n");
> }
> 
> void
> put_f8(
>        double v,                /* in - value */
>        char* buf                /* in - destination address */
>        )
> {
>     v = 99.875;
>     hexdump(stdout, "pack_f8: v", (char*) &v, 8);
>     memcpy(buf, &v, 8);
>     hexdump(stdout, "pack_f8: buf", (char*) buf, 8);
> }
> 
> int
> main()
> {
>   double foovar = 0.05;
>   double dbuf[3];
> 
>   memset(dbuf, '\0', sizeof(dbuf));
>   put_f8(foovar, (char*) &dbuf);
>   exit(1);
> }
> 
> /*
>   Local Variables:
>   compile-command: "gcc -O2 -g  packbug.c -o packbug"
>   End:
> */
> 
> =============================================================================
> 
> (the corresponding .i file is attached below)
> 
> IV. A bug demo session.
> 
> The program tries to write a double prec. value into a buffer, using
> memcpy(). The value hexdump is printed before memcpy(), and the buffer
> hexdump is printed after it - they don't match in the environment
> above, IF the compiler is egcs 1.1.2, AND -O2 is used. There may be
> other combinations, however, showing the same bug.
> 
> a. a "buggy" session:
> 
> $ gcc -v
> Reading specs from /usr/local/egcs/lib/gcc-lib/alphaev6-unknown-linux-gnu/egcs-2.91.66/specs
> gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
> $ gcc -Wall -O2 -g  packbug.c -o packbug
> $ ./packbug
> 
> === pack_f8: v dump at 0x11ffff6e0 (8 bytes) ====================
> 0000-0008     0000 0000 F800 4058                          ......X@
> ===========================================================================
> 
> === pack_f8: buf dump at 0x11ffff700 (8 bytes) ====================
> 0000-0008     0000 0000 0000 0000                          ........
> ===========================================================================
> 
> b. no optimization
> 
> $ gcc -v
> Reading specs from /usr/local/egcs/lib/gcc-lib/alphaev6-unknown-linux-gnu/egcs-2.91.66/specs
> gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
> $ gcc -Wall -g  packbug.c -o packbug
> $ ./packbug
> 
> === pack_f8: v dump at 0x11ffff6e0 (8 bytes) ====================
> 0000-0008     0000 0000 F800 4058                          ......X@
> ===========================================================================
> 
> === pack_f8: buf dump at 0x11ffff708 (8 bytes) ====================
> 0000-0008     0000 0000 F800 4058                          ......X@
> ===========================================================================
> 
> c. egcs 1.0.3
> 
> $ /usr/bin/gcc -v
> Reading specs from /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.90.29/specs
> gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
> $ /usr/bin/gcc -Wall -O2 -g  packbug.c -o packbug
> $ ./packbug
> 
> === pack_f8: v dump at 0x11ffff6e0 (8 bytes) ====================
> 0000-0008     0000 0000 F800 4058                          ......X@
> ===========================================================================
> 
> === pack_f8: buf dump at 0x11ffff700 (8 bytes) ====================
> 0000-0008     0000 0000 F800 4058                          ......X@
> ===========================================================================
> 
> Regards,
> 
> PS. Here is a cpp'ed file:
> 
>   ----------------------------------------------------------------------------------------------------
>                    Name: packbug.i.gz
>    packbug.i.gz    Type: GNU gzip (application/gz)
>                Encoding: x-uuencode
> 
>   ----------------------------------------------------------------------------------------------------
> 
> --
> Alexander L. Belikoff
> Bloomberg L.P. / BFM Financial Research Ltd.
> abel@vallinor4.com, abel@bfr.co.il


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 17:11 ` Wes Bauske
  1999-07-12 16:38   ` Alexander L. Belikoff
@ 1999-07-12 18:47   ` Uncle George
  1999-07-12 19:42     ` Wes Bauske
  1 sibling, 1 reply; 22+ messages in thread
From: Uncle George @ 1999-07-12 18:47 UTC (permalink / raw)
  To: axp-list

I thought he was!
If he was passing the value, then he would have a problem, as the float is passed in the second floating
point argument register ( rather than the second integer argument  register ).

Wes Bauske wrote:

> Try modifying your code to pass the address of a double rather
> than the double itself and see if you still can create the
>
> > put_f8(
> >        double v,                /* in - value */
> >        char* buf                /* in - destination address */
> >        )
> > {
> >     v = 99.875;
> >     hexdump(stdout, "pack_f8: v", (char*) &v, 8);
> >     memcpy(buf, &v, 8);
> >     hexdump(stdout, "pack_f8: buf", (char*) buf, 8);
> >


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 19:14 ` Richard Henderson
@ 1999-07-12 19:12   ` Alexander L. Belikoff
  1999-07-11 17:46     ` Jeff Sturm
  0 siblings, 1 reply; 22+ messages in thread
From: Alexander L. Belikoff @ 1999-07-12 19:12 UTC (permalink / raw)
  To: axp-list

Richard Henderson <rth@twiddle.net> writes:

> On Mon, Jul 12, 1999 at 05:26:45PM +0300, Alexander L. Belikoff wrote:
> > When optimized, memcpy() function IN SOME CASES doesn't properly copy
> > the data.
> 
> This has been fixed for gcc 2.95.

To be more precise, "this has been fixed for the current development
snapshots, that will become gcc 2.95 one day..." :-) The difference is
crucial. We are talking about a bug in the "latest stable release."

-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 14:26 an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) Alexander L. Belikoff
  1999-07-12 17:11 ` Wes Bauske
@ 1999-07-12 19:14 ` Richard Henderson
  1999-07-12 19:12   ` Alexander L. Belikoff
  1 sibling, 1 reply; 22+ messages in thread
From: Richard Henderson @ 1999-07-12 19:14 UTC (permalink / raw)
  To: axp-list; +Cc: egcs-bugs, egcs

On Mon, Jul 12, 1999 at 05:26:45PM +0300, Alexander L. Belikoff wrote:
> When optimized, memcpy() function IN SOME CASES doesn't properly copy
> the data.

This has been fixed for gcc 2.95.


r~


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 19:42     ` Wes Bauske
@ 1999-07-12 19:15       ` Alexander L. Belikoff
  1999-07-12 22:09         ` Wes Bauske
  0 siblings, 1 reply; 22+ messages in thread
From: Alexander L. Belikoff @ 1999-07-12 19:15 UTC (permalink / raw)
  To: axp-list

"Wes Bauske" <wsb@paralleldata.com> writes:

> Uncle George wrote:
> > 
> > I thought he was!
> > If he was passing the value, then he would have a problem, as the float is passed in the second floating
> > point argument register ( rather than the second integer argument  register ).
> > 
> 
> I wasn't clear. It's the 'v' in the put_f8() args that I meant.
> The actual call to memcpy() is OK. I've seen this occur on other
> platforms with high optimization levels, not particularly on Alphas.
> That's why I prefer to modify my code since it isn't an Alpha
> specific problem. For some reason, pass by value is more dangerous
> for floats/doubles than ints/longs when you optimize. Pass by reference
> hasn't failed for me yet.

What do you mean by 'more dangerous'? Is it only WRT to egcs 1.1.2's
optimizer or something more generic?

-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 18:47   ` Uncle George
@ 1999-07-12 19:42     ` Wes Bauske
  1999-07-12 19:15       ` Alexander L. Belikoff
  0 siblings, 1 reply; 22+ messages in thread
From: Wes Bauske @ 1999-07-12 19:42 UTC (permalink / raw)
  To: axp-list

Uncle George wrote:
> 
> I thought he was!
> If he was passing the value, then he would have a problem, as the float is passed in the second floating
> point argument register ( rather than the second integer argument  register ).
> 

I wasn't clear. It's the 'v' in the put_f8() args that I meant.
The actual call to memcpy() is OK. I've seen this occur on other
platforms with high optimization levels, not particularly on Alphas.
That's why I prefer to modify my code since it isn't an Alpha
specific problem. For some reason, pass by value is more dangerous
for floats/doubles than ints/longs when you optimize. Pass by reference
hasn't failed for me yet.


Wes

> Wes Bauske wrote:
> 
> > Try modifying your code to pass the address of a double rather
> > than the double itself and see if you still can create the
> >
> > > put_f8(
> > >        double v,                /* in - value */
> > >        char* buf                /* in - destination address */
> > >        )
> > > {
> > >     v = 99.875;
> > >     hexdump(stdout, "pack_f8: v", (char*) &v, 8);
> > >     memcpy(buf, &v, 8);
> > >     hexdump(stdout, "pack_f8: buf", (char*) buf, 8);
> > >
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 21:54     ` Joachim Wesner
@ 1999-07-12 21:27       ` Alexander L. Belikoff
  1999-07-13 10:08         ` Phil Carmody
  1999-07-13  9:11       ` an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) Richard Henderson
  1 sibling, 1 reply; 22+ messages in thread
From: Alexander L. Belikoff @ 1999-07-12 21:27 UTC (permalink / raw)
  To: axp-list

Joachim Wesner <Joachim.Wesner@frankfurt.netsurf.de> writes:

> Alexander L. Belikoff wrote:
> > 
> > "Wes Bauske" <wsb@paralleldata.com> writes:
> > 
> > > Try modifying your code to pass the address of a double rather
> > > than the double itself and see if you still can create the
> > > problem. I've seen problems passing floats/doubles to functions
> > > rather than their addresses. I just pass the address instead.
> > 
> > As you may have noticed, I didn't talk about workaround - there are
> > many of them. The one, I'm using now is that I have a temporary
> > volatile double v2 in put_f8() and I copy v into v2 and use the
> > latter. Other possible workarounds include, compiling put_f8() with
> > optimization turned off (it is not time-critical), or using manual
> > 'for' loop, rather than memcpy().
> > 
> 
> YEP, but actually I'd say this is a feature, not a bug !  If I remember
> correctly written
> somewhere in C standard, a temporary double arg, that will be passed in
> a *register*, as you **will** like it to happen at maximum optimization,
> simply has **NO** address to pass to memcpy. At best, the compiler can
> warn you and automatically generate one of the above workarounds you
> mention (with the SAME drawbacks), I don't think/expect there to exist a
> compiler smart enough to replace your case with one single optimized
> inline register to memory store or whatever. Or ???

Thank you for a very clear explanation. May I hope for a reference in
the standard or the Steel book? This really starts to scare me now -
what other surprises does the standard have?

-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 22:09         ` Wes Bauske
@ 1999-07-12 21:39           ` Alexander L. Belikoff
  1999-07-13  2:19             ` Wes Bauske
  0 siblings, 1 reply; 22+ messages in thread
From: Alexander L. Belikoff @ 1999-07-12 21:39 UTC (permalink / raw)
  To: axp-list

"Wes Bauske" <wsb@paralleldata.com> writes:

> I have other UNIX boxes where I get similar failures to your's.
> Passing a float/double as an arg doesn't always produce the result
> you would expect with high optimizations. So, I avoid it in
> general in my own code. To me, it's just an idiosyncracy of coding
> and optimizing C. I've seen it off and on over the past 2 years
> or so. Possibly the optimizations in the newer compilers are
> trying to be smarter than previously.
> 
> One of the previous replies at least now explains why it's a
> problem, namely, the variable comes into the routine in a
> FP reg and if you want to muck with it's address, there isn't
> one without eliminating the optimization of using FP regs for
> calling args.

Uh... I'm actually on my way to check the Steel book on that, but
isn't it the case that the optimizer should just drop certain
optimizations in case the programmer stands on the way - like in the
situation above, shouldn't it just make a temp. variable and use it
instead of a register? Besides, in case I have an optimized version of 
put_f8 in a separate file (with v passed in a register) and I try to
call it from an unoptimized module - how would the compiler figure out 
the calling convention during the compilation stage?

-- 
Alexander L. Belikoff
Bloomberg L.P. / BFM Financial Research Ltd.
abel@vallinor4.com, abel@bfr.co.il


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 16:38   ` Alexander L. Belikoff
@ 1999-07-12 21:54     ` Joachim Wesner
  1999-07-12 21:27       ` Alexander L. Belikoff
  1999-07-13  9:11       ` an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) Richard Henderson
  0 siblings, 2 replies; 22+ messages in thread
From: Joachim Wesner @ 1999-07-12 21:54 UTC (permalink / raw)
  To: axp-list

Alexander L. Belikoff wrote:
> 
> "Wes Bauske" <wsb@paralleldata.com> writes:
> 
> > Try modifying your code to pass the address of a double rather
> > than the double itself and see if you still can create the
> > problem. I've seen problems passing floats/doubles to functions
> > rather than their addresses. I just pass the address instead.
> 
> As you may have noticed, I didn't talk about workaround - there are
> many of them. The one, I'm using now is that I have a temporary
> volatile double v2 in put_f8() and I copy v into v2 and use the
> latter. Other possible workarounds include, compiling put_f8() with
> optimization turned off (it is not time-critical), or using manual
> 'for' loop, rather than memcpy().
> 

YEP, but actually I'd say this is a feature, not a bug !  If I remember
correctly written
somewhere in C standard, a temporary double arg, that will be passed in
a *register*, as you **will** like it to happen at maximum optimization,
simply has **NO** address to pass to memcpy. At best, the compiler can
warn you and automatically generate one of the above workarounds you
mention (with the SAME drawbacks), I don't think/expect there to exist a
compiler smart enough to replace your case with one single optimized
inline register to memory store or whatever. Or ???

Clearly, the above "problem" will not be so apparent on other not so
RISCy architectures that anyhow pass doubles in memory/stack, because
they are register starved (Intel ?), so I wouldn't blame it as an Alpha
fault.


Joachim


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 19:15       ` Alexander L. Belikoff
@ 1999-07-12 22:09         ` Wes Bauske
  1999-07-12 21:39           ` Alexander L. Belikoff
  0 siblings, 1 reply; 22+ messages in thread
From: Wes Bauske @ 1999-07-12 22:09 UTC (permalink / raw)
  To: axp-list

"Alexander L. Belikoff" wrote:
> 
> "Wes Bauske" <wsb@paralleldata.com> writes:
> 
> > Uncle George wrote:
> > >
> > > I thought he was!
> > > If he was passing the value, then he would have a problem, as the float is passed in the second floating
> > > point argument register ( rather than the second integer argument  register ).
> > >
> >
> > I wasn't clear. It's the 'v' in the put_f8() args that I meant.
> > The actual call to memcpy() is OK. I've seen this occur on other
> > platforms with high optimization levels, not particularly on Alphas.
> > That's why I prefer to modify my code since it isn't an Alpha
> > specific problem. For some reason, pass by value is more dangerous
> > for floats/doubles than ints/longs when you optimize. Pass by reference
> > hasn't failed for me yet.
> 
> What do you mean by 'more dangerous'? Is it only WRT to egcs 1.1.2's
> optimizer or something more generic?
> 
> --

I have other UNIX boxes where I get similar failures to your's.
Passing a float/double as an arg doesn't always produce the result
you would expect with high optimizations. So, I avoid it in
general in my own code. To me, it's just an idiosyncracy of coding
and optimizing C. I've seen it off and on over the past 2 years
or so. Possibly the optimizations in the newer compilers are
trying to be smarter than previously.

One of the previous replies at least now explains why it's a
problem, namely, the variable comes into the routine in a
FP reg and if you want to muck with it's address, there isn't
one without eliminating the optimization of using FP regs for
calling args.


Wes


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 21:39           ` Alexander L. Belikoff
@ 1999-07-13  2:19             ` Wes Bauske
  0 siblings, 0 replies; 22+ messages in thread
From: Wes Bauske @ 1999-07-13  2:19 UTC (permalink / raw)
  To: axp-list

"Alexander L. Belikoff" wrote:
> 
> Uh... I'm actually on my way to check the Steel book on that, but
> isn't it the case that the optimizer should just drop certain
> optimizations in case the programmer stands on the way - like in the
> situation above, shouldn't it just make a temp. variable and use it
> instead of a register? Besides, in case I have an optimized version of
> put_f8 in a separate file (with v passed in a register) and I try to
> call it from an unoptimized module - how would the compiler figure out
> the calling convention during the compilation stage?
> 

Don't know where that optimization is performed. One possible place
is for the linker to adjust both modules to "fit", assuming there
is argument info in a *.o file. Lot's of my code is in different
source files so maybe that is part of the problem too. Don't know.
I can guarantee I optimize all code at the same level and still
see the problem.

You're welcome to code any way you like. I do my best not to
use code styles that will break my code when I port to other
architectures. This code style can break so I don't use it. 
Much easier to make the change than to complain to the compiler
writers and ask them to fix it. Good to let them know the
problem exists though since it does cause headaches/time to
track down.


Wes


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 21:54     ` Joachim Wesner
  1999-07-12 21:27       ` Alexander L. Belikoff
@ 1999-07-13  9:11       ` Richard Henderson
  1 sibling, 0 replies; 22+ messages in thread
From: Richard Henderson @ 1999-07-13  9:11 UTC (permalink / raw)
  To: axp-list

On Mon, Jul 12, 1999 at 11:54:49PM +0200, Joachim Wesner wrote:
> YEP, but actually I'd say this is a feature, not a bug !  If I remember
> correctly written somewhere in C standard, a temporary double arg, that
> will be passed in a *register*, as you **will** like it to happen a
> maximum optimization, simply has **NO** address to pass to memcpy.

Hush, you're scaring the natives.

No optimizing compiler should generate incorrect code for
his put_8.  It's a perfectly well formed standard-conforming
function.  Just too bad there was a bug in egcs 1.1 after I
tried to do some optimizations on memcpy.

> ... I don't think/expect there to exist a compiler smart enough to
> replace your case with one single optimized inline register to memory
> store or whatever. Or ???

Certainly there is.  That's what I'd been after in the first place.
And with the buglet corrected, we get a single aligned load, 
followed by an unaligned store (due to the generalized char* buf
argument) --

        ldq_u $3,7($17)
        ldq_u $1,0($17)
        ldq $2,0($4)
        mskqh $3,$17,$3
        mskql $1,$17,$1
        insqh $2,$17,$4
        insql $2,$17,$2
        bis $3,$4,$3
        bis $1,$2,$1
        stq_u $3,7($17)
        stq_u $1,0($17)
 


r~


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-12 21:27       ` Alexander L. Belikoff
@ 1999-07-13 10:08         ` Phil Carmody
  1999-07-13 11:13           ` Joachim Wesner
  0 siblings, 1 reply; 22+ messages in thread
From: Phil Carmody @ 1999-07-13 10:08 UTC (permalink / raw)
  To: axp-list

>>>>> "}" == Alexander L Belikoff <abel@bfr.co.il> writes:

}> Joachim Wesner <Joachim.Wesner@frankfurt.netsurf.de> writes:
>> Alexander L. Belikoff wrote:

>> > "Wes Bauske" <wsb@paralleldata.com> writes:

>> > > Try modifying your code to pass the address of a double rather
>> > > than the double itself and see if you still can create the
>> > > problem. I've seen problems passing floats/doubles to functions
>> > > rather than their addresses. I just pass the address instead.

>> > As you may have noticed, I didn't talk about workaround - there are
>> > many of them. The one, I'm using now is that I have a temporary
>> > volatile double v2 in put_f8() and I copy v into v2 and use the
>> > latter. Other possible workarounds include, compiling put_f8() with
>> > optimization turned off (it is not time-critical), or using manual
>> > 'for' loop, rather than memcpy().

>> YEP, but actually I'd say this is a feature, not a bug !  If I remember
>> correctly written
>> somewhere in C standard, a temporary double arg, that will be passed in
>> a *register*, as you **will** like it to happen at maximum optimization,
>> simply has **NO** address to pass to memcpy. At best, the compiler can
>> warn you and automatically generate one of the above workarounds you
>> mention (with the SAME drawbacks), I don't think/expect there to exist a
>> compiler smart enough to replace your case with one single optimized
>> inline register to memory store or whatever. Or ???

Eeeek!

}> Thank you for a very clear explanation. May I hope for a reference in
}> the standard or the Steel book? This really starts to scare me now -
}> what other surprises does the standard have?

Rewind, and erase.

The 'YEP' paragraph has no connection to the ISO C language at all.

There is no way an C coder can specify that a register be used for
either a variable or a parameter. One may hint, or suggest, but not specify.
It it the compiler's responsibility to ensure that anything one takes the
address of has an address, and thus is not solely stored in a register. 
It was a bug, which is why it appears to have been fixed. Compilers,
however, are permitted to keyhole optimise and convert known length calls
to functions like memcpy into more efficient code. MSVC++ does this without
even breaking into a sweat.  

Phil



^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-13 10:08         ` Phil Carmody
@ 1999-07-13 11:13           ` Joachim Wesner
  1999-07-13 11:52             ` Dave Mason
  1999-07-13 14:26             ` Phil Carmody
  0 siblings, 2 replies; 22+ messages in thread
From: Joachim Wesner @ 1999-07-13 11:13 UTC (permalink / raw)
  To: axp-list

Phil Carmody wrote:

> 
> The 'YEP' paragraph has no connection to the ISO C language at all.
> 
> There is no way an C coder can specify that a register be used for
> either a variable or a parameter. One may hint, or suggest, but not specify.
> It it the compiler's responsibility to ensure that anything one takes the
> address of has an address, and thus is not solely stored in a register.
> It was a bug, which is why it appears to have been fixed. Compilers,
> however, are permitted to keyhole optimise and convert known length calls
> to functions like memcpy into more efficient code. MSVC++ does this without
> even breaking into a sweat.
> 

Hu ??? OK, this is not really defined for arguments (and should work
anyhow, probably with an warning, as I wrote before), but my copy of K&R
says something like (Sorry, only have it in German, need to translate it
back):


The operator & can only be applied to variables and vector elements
...<snip>... Also, taking
the adress of a variable of memory class register is illegal !


Maybe this has been changed in ISO C ?? Then, sorry for my ignorance.


Sincerely

Joachim


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-13 11:13           ` Joachim Wesner
@ 1999-07-13 11:52             ` Dave Mason
  1999-07-13 14:26             ` Phil Carmody
  1 sibling, 0 replies; 22+ messages in thread
From: Dave Mason @ 1999-07-13 11:52 UTC (permalink / raw)
  To: axp-list

>>>>> On Tue, 13 Jul 1999 13:13:39 +0200, Joachim Wesner <Joachim.Wesner@frankfurt.netsurf.de> said:

> The operator & can only be applied to variables and vector elements
> ...<snip>... Also, taking the adress of a variable of memory class
> register is illegal !


> Maybe this has been changed in ISO C ?? Then, sorry for my
> ignorance.

int foo(double x, int y) {
	... &x ... &y

is all legal.

int foo(register double x,register int y) {
	... &x ... &y

isn't!

So don't worry.  C is a screwed up language in lots of ways, but this
isn't one of them!  Unfortunately optimization of these special cases,
while sometimes important for performance, can create subtle bugs in
the compiler.  That was what happened here.  In the ``good old days''
on PDP11s, VAXen, and i386s, parameters were all in memory, so this
was easy to get right (but they were bog slow!).  Passing parameters
in registers is a good thing, but compiler writers just need to be
more clever and careful.

../Dave


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux)
  1999-07-13 11:13           ` Joachim Wesner
  1999-07-13 11:52             ` Dave Mason
@ 1999-07-13 14:26             ` Phil Carmody
  1999-07-13 14:58               ` seti at home Darren Breeze
  1 sibling, 1 reply; 22+ messages in thread
From: Phil Carmody @ 1999-07-13 14:26 UTC (permalink / raw)
  To: axp-list

>>>>> "J" == EXT Joachim Wesner <Joachim.Wesner@frankfurt.netsurf.de> writes:

J> Phil Carmody wrote:
>> 
>> The 'YEP' paragraph has no connection to the ISO C language at all.
>> 
>> There is no way an C coder can specify that a register be used for
>> either a variable or a parameter. One may hint, or suggest, but not specify.
>> It it the compiler's responsibility to ensure that anything one takes the
>> address of has an address, and thus is not solely stored in a register.
>> It was a bug, which is why it appears to have been fixed. Compilers,
>> however, are permitted to keyhole optimise and convert known length calls
>> to functions like memcpy into more efficient code. MSVC++ does this without
>> even breaking into a sweat. 

J> Hu ??? OK, this is not really defined for arguments (and should work
J> anyhow, probably with an warning, as I wrote before), but my copy of K&R
J> says something like (Sorry, only have it in German, need to translate it
J> back):


J> The operator & can only be applied to variables and vector elements
J> ...<snip>... Also, taking
J> the adress of a variable of memory class register is illegal !

J> Maybe this has been changed in ISO C ?? Then, sorry for my ignorance.

Nope, you are right. But the direction you are looking at the implication
is different from mine.
When the language definition says you cannot take the address of a
register, it means that it is a semantic error on your part to try to take
the address of an automatic variable declared as a register. It won't
compile. However, it is a compiler error to not correctly provide the
address of an auto variable, even if you've turned every optimisation under
the sun on. (i.e. Compiler options about use of variables are very different
from use of the keyword 'register')

Phil


^ permalink raw reply	[flat|nested] 22+ messages in thread

* seti at home
  1999-07-13 14:26             ` Phil Carmody
@ 1999-07-13 14:58               ` Darren Breeze
  1999-07-13 23:33                 ` TurboTex
  0 siblings, 1 reply; 22+ messages in thread
From: Darren Breeze @ 1999-07-13 14:58 UTC (permalink / raw)
  To: axp-list

hi

Is anyone running seti@home ?

http://setiathome.ssl.berkeley.edu/

I'm running it on a PC164 @ 500mhz and returning 15 hours per block.
A friend of mine is running it on a G3 Mac at 333Mhz and returning 
18hours / block.

Does anyone know about the development of the Seti clients for 
Linux-alpha, it seems to be one version behind the bulk of the Unix 
clients. Are they using the faster math libs?

Darren Breeze
Hong Kong




^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: seti at home
  1999-07-13 14:58               ` seti at home Darren Breeze
@ 1999-07-13 23:33                 ` TurboTex
  1999-07-14  1:19                   ` Larry Snyder
  0 siblings, 1 reply; 22+ messages in thread
From: TurboTex @ 1999-07-13 23:33 UTC (permalink / raw)
  Cc: axp-list

I am running it on my multia and it takes about 70 hours....
	1.1 alpha 5..

It drags all my other results on other machines down..

Check it out!

http://setiathome.ssl.berkeley.edu/cgi-bin/cgi?cmd=team_lookup&name=plug

Darren Breeze wrote:
> 
> hi
> 
> Is anyone running seti@home ?
> 
> http://setiathome.ssl.berkeley.edu/
> 
> I'm running it on a PC164 @ 500mhz and returning 15 hours per block.
> A friend of mine is running it on a G3 Mac at 333Mhz and returning
> 18hours / block.
> 
> Does anyone know about the development of the Seti clients for
> Linux-alpha, it seems to be one version behind the bulk of the Unix
> clients. Are they using the faster math libs?
> 
> Darren Breeze
> Hong Kong
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

-- 
                     ----

       M.H. Collins             < LINUX: The Official OS >
         ******                 < for the New Millennium >        
 Powered by TurboLinux 3.6       http://www.linuxlink.com
     Driven by XFCE3             http://www.austinlug.org


^ permalink raw reply	[flat|nested] 22+ messages in thread

* Re: seti at home
  1999-07-13 23:33                 ` TurboTex
@ 1999-07-14  1:19                   ` Larry Snyder
  0 siblings, 0 replies; 22+ messages in thread
From: Larry Snyder @ 1999-07-14  1:19 UTC (permalink / raw)
  To: axp-list

As of today, I fired up three different clients.  It'll be interesting
to see how they shake out:
1.  Sparc5/170  sol2.5.1 seti 1.2
2.  486/133 linux-2.2.5 seti 1.3 static
3.  AS200-4/233 linux-2.2.5 seti 1.1 for ev5 (ev45 machine)

None of these boxes are anything to write home about, compared to a
533, etc., but they serve my purposes fine and have a _lot_ of idle
time so why not?  I'm curious how the figures will fall out after the
first work unit gets finished on all three.  So far, it looks like the
axp is killing the sun, and I don't expect anything special at all
from the intel.  I have a co-worker that's getting 10 hrs per w/u.
I _will_ find out what he's running :-)
-ls-   

TurboTex <mhtexcollins@ccms.net> wrote:
> I am running it on my multia and it takes about 70 hours....
> 	1.1 alpha 5..
> 
> It drags all my other results on other machines down..
> 
> Check it out!
> 
> http://setiathome.ssl.berkeley.edu/cgi-bin/cgi?cmd=team_lookup&name=plug
> 
> Darren Breeze wrote:
> > 
> > hi
> > 
> > Is anyone running seti@home ?
> > 
> > http://setiathome.ssl.berkeley.edu/
> > 
> > I'm running it on a PC164 @ 500mhz and returning 15 hours per block.
> > A friend of mine is running it on a G3 Mac at 333Mhz and returning
> > 18hours / block.
> > 
> > Does anyone know about the development of the Seti clients for
> > Linux-alpha, it seems to be one version behind the bulk of the Unix
> > clients. Are they using the faster math libs?
> > 
> > Darren Breeze
> > Hong Kong
> > 
> > --
> > To unsubscribe: send e-mail to axp-list-request@redhat.com with
> > 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 
> -- 
>                      ----
> 
>        M.H. Collins             < LINUX: The Official OS >
>          ******                 < for the New Millennium >        
>  Powered by TurboLinux 3.6       http://www.linuxlink.com
>      Driven by XFCE3             http://www.austinlug.org
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~1999-07-14  1:26 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-07-12 14:26 an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) Alexander L. Belikoff
1999-07-12 17:11 ` Wes Bauske
1999-07-12 16:38   ` Alexander L. Belikoff
1999-07-12 21:54     ` Joachim Wesner
1999-07-12 21:27       ` Alexander L. Belikoff
1999-07-13 10:08         ` Phil Carmody
1999-07-13 11:13           ` Joachim Wesner
1999-07-13 11:52             ` Dave Mason
1999-07-13 14:26             ` Phil Carmody
1999-07-13 14:58               ` seti at home Darren Breeze
1999-07-13 23:33                 ` TurboTex
1999-07-14  1:19                   ` Larry Snyder
1999-07-13  9:11       ` an evil memcpy() optimizer bug! (egcs-1.1.2, alphaev6, linux) Richard Henderson
1999-07-12 18:47   ` Uncle George
1999-07-12 19:42     ` Wes Bauske
1999-07-12 19:15       ` Alexander L. Belikoff
1999-07-12 22:09         ` Wes Bauske
1999-07-12 21:39           ` Alexander L. Belikoff
1999-07-13  2:19             ` Wes Bauske
1999-07-12 19:14 ` Richard Henderson
1999-07-12 19:12   ` Alexander L. Belikoff
1999-07-11 17:46     ` Jeff Sturm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox