quil-lang / quilc

The optimizing Quil compiler.
Apache License 2.0
448 stars 73 forks source link

Memory corruption when running RZ approximation compiler #923

Open kartik-s opened 3 weeks ago

kartik-s commented 3 weeks ago

Note that this occurs without adding back this (monomorphize).

System Info

Steps to reproduce

  1. make quilc-discrete
  2. make test-discrete
  3. echo 'PRAGMA TOLERANCE "1E-4"; RZ(0.01) 0' | ./quilc -Pm --isa 4Q-cliffordt
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x0 (pc=0x10316bb88)
The integrity of this image is possibly compromised.
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x2f (pc=0x103003900)
The integrity of this image is possibly compromised.
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x2f (pc=0x103003900)
The integrity of this image is possibly compromised.
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x2f (pc=0x103003900)
The integrity of this image is possibly compromised.
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x2f (pc=0x103003900)
The integrity of this image is possibly compromised.
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x2f (pc=0x103003900)
The integrity of this image is possibly compromised.
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x2f (pc=0x103003900)
The integrity of this image is possibly compromised.
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x2f (pc=0x103003900)
The integrity of this image is possibly compromised.
CORRUPTION WARNING in SBCL pid 59150 pthread 0x1dae05ec0:
Memory fault at 0x2f (pc=0x103003900)
The integrity of this image is possibly compromised.
fatal error encountered in SBCL pid 59150 pthread 0x1dae05ec0:
maximum interrupt nesting depth (8) exceeded

Bad frame pointer 0x2f [valid range=0x1035e0000..0x1037e0000]