Ticket #1034 (closed bug: fixed)

Opened 12 years ago

Last modified 11 years ago

attempt to access code outside of current code segment

Reported by: coke Owned by:
Priority: normal Milestone:
Component: none Version: trunk
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:


See the  Original report.

This PIR errors on exit:

$ cat tclsh.pir
.sub _main :main
.param pmc argv
load_bytecode 'tcllib.pir'

push_eh file_error
$P1 = find_name '&lsort'
$ cat tcllib.pir
.sub '&lsort'
.local pmc compare
compare = find_name 'intlike'

$P0 = new 'ResizablePMCArray'
$P0[0] = 1
$P0[1] = 1


.sub 'intlike'
die 'expected foo'
$ ./parrot tclsh.pir
attempt to access code outside of current code segment

Note that adding an 'exit 0' before the .end in the first file avoids the error.

Change History

Changed 12 years ago by NotFound


  unroll $P2

between "file_error:" and "pop_eh" avoids the problem.

unroll has been added as experimental in 2.4.0

Changed 11 years ago by NotFound

  • status changed from new to closed
  • resolution set to fixed

unroll was renamed to finalize, is not yet experimental and is the official way to handle this issus.


Note: See TracTickets for help on using tickets.