Ticket #756 (closed bug: fixed)

Opened 13 years ago

Last modified 11 years ago

invalid PMC causes bus error with const.

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


This PIR causes a bus error (note that the specified PMC type doesn't exist.)

.sub foo :main

 .const 'StringArray' foo  = "bar"
 $S0 = foo[2] 
 say $S0


.sub bar :immediate
  $P1 = new 'StringArray'
  $P1 = 4
  $P1[0] = 'a'
  $P1[1] = 'b'
  $P1[2] = 'c'
  $P1[3] = 'd'


Change History

Changed 13 years ago by NotFound

Segfault fixed in r39724. Don't know how to improve the diagnostic, though.

Changed 13 years ago by jkeenan

  • component changed from none to core

Changed 11 years ago by cotto

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

I no longer see any bus error on Ubuntu 11.04 x64, so I'm marking this ticket as closed. If it still fails in horrible and spectacular ways (as opposed to an error message), please also specify your platform any any details needed to reproduce the failure.

Note: See TracTickets for help on using tickets.