Skip to content

ReferenceError test suite failure mode #5

Open
@JoshMeredith

Description

Supported symbol types:

  • raise
  • mainZCZCMainzimain

Unsupported symbol types:

  • compiled c (hello, foo, bar)

Debugging info:

  • This is a JavaScript exception.
  • None of the errored names show up in git grep, so they mustn't be defined for some reason.
  • Just before sine of the errors, there's a warning warning, unhandled primop which comes from the
    default case of Gen2.Prim.genPrim:
    genPrim _ _ op rs as = PrimInline $
    appS "h$log" [e $ "warning, unhandled primop: "++show op++" "++show (length rs, length as)] #
    f #
    copyRes
    where
      f = ApplStat (var (T.pack $ "h$primop_" ++ show op)) as
      copyRes = mconcat $ zipWith (\r reg -> r |= e reg) rs (enumFrom Ret1)
  • Primops are defined in primop-data-decl.hs-incl
  • Missing primops (11 matches): PrefetchAddrOp3 SetThreadAllocationCounter WriteByteArrayOp_Word8AsInt16 BRev8Op ShrinkSmallMutableArrayOp_Char
  • Missing others: h$opendir h$test_lt h$putchar h$memintrinTest h$log1p h$f5149 h$do_popcnt32 h$stg_word32ToFloatzh h$getOrSetLibHSghcGlobalDynFlags h$sqrt h$splitmix_init h$stg_floatToWord32zh h$func h$splitmix_init h$performGC_ h$foo h$mainZCZCMainzimain h$test_prim_op h$fin h$hello h$qsort h$puts h$test h$f h$var h$write h$free_fn_blob h$call8 h$staticfoo h$i h$printf h$n h$many_floats h$head_bytearray h$is_doubleton_homogenous h$add_all_int8 h$add_all_word8 h$add_all_int16 h$add_all_word16 h$getDbl h$getOrSetLibHSghcFastStringTable h$bar h$ghcjsbn_gcdExtSBigNat h$genSym h$finalize_value h$RtsFlags h$traceEventBinary h$deriv h$printx h$rts_unsafeGetMyCapability h$pipe h$initLinker_
    • Some of these are clearly c-naming (putchar, opendir)
    • Others are clearly haskell generated names (mainZCZCMainzimain)
    • Others look like internal haskell stuff (getSym, RtsFlags)
    • Some look like they come from compiled names (hello, foo, bar)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions