Skip to content

io self-host test is crashing with "invalid pointer" #715

@kanaka

Description

@kanaka
Testing test^mal^step0; step file: impls/mal/step0_repl.mal, test file: tests/step0_repl.mal
Running: env STEP=step0_repl MAL_IMPL=io RAW=1 ../../runtest.py  --deferrable --optional --start-timeout 60 --test-timeout 120 --debug-file ../../test-mal-io.debug ../tests/step0_repl.mal -- ../mal/run

Exception: OSError(5, 'Input/output error')
Output before exception:

  Exception: Object does not respond to 'directories'
  ---------
  Object directories                   Z_Importer.io 5
  Importer paths                       Z_Importer.io 11
  Importer removeSearchPath            AddonLoader.io 85
  Addon load                           AddonLoader.io 145
  AddonLoader loadAddonNamed           Z_Importer.io 107
  FolderImporter import                Z_Importer.io 135
  List detect                          Z_Importer.io 135
  true and                             Z_Importer.io 135
  MalReadline ReadLine                 MalReadline.io 6
  Importer import                      Z_Importer.io 148
  MalReadline loadHistory              MalReadline.io 11
  MalReadline readLine                 MalCore.io 103
  Object call                          stepA_mal.io 102
  Sequence switch                      stepA_mal.io 99
  Call relayStopStatus                 A2_Object.io 5[69](https://github.com/kanaka/mal/actions/runs/14951234523/job/42000938782?pr=713#step:9:70)
  Object EVAL                          [unlabeled] 0
  MalList mapInPlace                   [unlabeled] 0
  MalList map                          stepA_mal.io 26
  Call relayStopStatus                 A4_Exception.io 24
  Call delegateToMethod                A0_List.io 1[76](https://github.com/kanaka/mal/actions/runs/14951234523/job/42000938782?pr=713#step:9:77)
  MalList with                         stepA_mal.io 26
  Sequence switch                      stepA_mal.io 24
  Call relayStopStatus                 A2_Object.io 569
  Object eval_ast                      stepA_mal.io 107
  Sequence switch                      stepA_mal.io 99
  Call relayStopStatus                 A2_Object.io 569
  Object EVAL                          [unlabeled] 0
  MalList mapInPlace                   [unlabeled] 0
  MalList map                          stepA_mal.io 26
  Call relayStopStatus                 A4_Exception.io 24
  Call delegateToMethod                A0_List.io 176
  MalList with                         stepA_mal.io 26
  Sequence switch                      stepA_mal.io 24
  Call relayStopStatus                 A2_Object.io 569
  Object eval_ast                      stepA_mal.io 55
  Sequence switch                      stepA_mal.io 51
  Call relayStopStatus                 A2_Object.io 569
  Object EVAL                          stepA_mal.io 125
  Object call                          stepA_mal.io 102
  Sequence switch                      stepA_mal.io [99](https://github.com/kanaka/mal/actions/runs/14951234523/job/42000938782?pr=713#step:9:100)
  Call relayStopStatus                 A2_Object.io 569
  Object EVAL                          stepA_mal.io 120
  Object RE                            stepA_mal.io 122
  Object PRINT                         stepA_mal.io 122
  Object REP                           stepA_mal.io 135
  CLI doFile                           Z_CLI.io 140
  CLI run                              IoState_runCLI() 1

munmap_chunk(): invalid pointer
/mal/impls/io/../io/run: line 3:    12 Aborted                 (core dumped) io $(dirname $0)/${STEP:-stepA_mal}.io "$@"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions