#17 bus error on sparc solaris (memcpy problem)

closed-fixed
5
2001-01-02
2000-11-22
Oliver Kraus
No

Compiler: gcc 2.95.2
Host: UltraSPARC (solaris 2.6 and 2.7)

--> bus error
r_data.c, line 516
memcpy causes bus error on ultra sparcs (solaris 2.7 and 2.6)
Where is GCC defined? Well, if the memcpy is replaced
by the for-loop everything is fine for our sparc machines
(indeed there is no seg fault or core dump :-)
#ifndef GCC
memcpy(texture->name, mtexture->name, sizeof(texture->name));
#else
{
int j;
for(j=0;j<sizeof(texture->name);j++)
texture->name[j]=mtexture->name[j];
}
#endif

Oli

Discussion

    • assigned_to: nobody --> proff_fs
     
    • status: open --> open-fixed
     
    • status: open-fixed --> closed-fixed