A reproducible Rosetta2 crash

Ron Garret <[email protected]> Fri, 16 Feb 2024 12:27:16 -0800
Newsgroups gmane.lisp.openmcl.devel
Message-ID <[email protected]>
This is reliably reproducible running x86_64 CCL under Rosetta2:

ron@RMBA1 ~ % ~/devel/ccl/dx86cl64
Clozure Common Lisp Version 1.12.1 (v1.12.1-10-gca107b94) DarwinX8664
? (finalize-inheritance (find-class 'standard-class))
rosetta error: unexpectedly need to EmulateForward on a synchronous exception x86_rip=0x52776560442047 arm_pc=0x4303779228 num_insts=3 inst_index=2 x86 instruction bytes: 0x10036366705108273237 0x85581580638679157
zsh: trace trap  ~/devel/ccl/dx86cl64

This call never crashes on a real x86, but crashes 100% of the time under Rosetta2.  AFAIK this is the first reliably reproducible discrepancy between the behavior of Rosetta2 and a real x86.

rg