bus errors - thanks
George Bogatko
bogatko at lzga.ATT.COM
Wed Feb 14 13:26:30 AEST 1990
Thanks to all for the help with the bus errors. I was somewhat relieved
to see that it was not such a naive question after all. The problem cropped
up during hardware changes (phone switch related), and may be a new
garbage message (hence the missing NULL byte), or a perhaps a real 'BUS' error.
**********
Incidently:
main()
{
char x[8];
long y;
long z;
y = 0xaabbccdd;
memcpy(x, &y, sizeof(long));
memcpy(x+4, &y, sizeof(long));
z = *(long *)(&x[1]); /* kaboom? */
printf("z=%#x\n", z);
return 0;
}
prints:
SysVr2.0 vax-8600: 0xddaabbcc
SysVr3.1 3B4000: EMT Trap -|
SysVr3.1 3B600: EMT Trap |--same guts
SysVr3.2.1 3B600: EMT Trap -|
SysVr3.5 UNIXPC: Bus Error
I don't have access to a 6386 machine at the moment.
Thanks again
GB
More information about the Comp.unix.wizards
mailing list