
#10375: arm: ghci hits an illegal instruction
-------------------------------------+---------------------------------
Reporter: erikd | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.10.3
Component: GHCi | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: arm
Type of failure: GHCi crash | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+---------------------------------
Comment (by erikd):
Things to note:
* Register `R0` is the argument/result/scratch register.
* `stg_ap_v_fast` is generated CMM code generated by `utils/genapply`.
* Since this is on Arm, the CMM code is passed throught the LLVM backend.
Confirming that we are actually generating invalid Arm assembly:
{{{
utils/genapply/dist/build/tmp/genapply > suspect.cmm
inplace/bin/ghc-stage2 -Irts -c suspect.cmm -o suspect.o
}}}
and then `objdump -D suspect.o` and searching for `stg-ap_v_fast` results
in:
{{{
0000853c