Ticket #1915 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Cloning ParrotLibrary results in Null PMC access

Reported by: DavidCzech Owned by:
Priority: normal Milestone:
Component: none Version: master
Severity: medium Keywords: pmc
Cc: Language:
Patch status: Platform:

Description

Cloning a ParrotLibrary PMC results in Null PMC access:

test_parrotlibrary.pir

new $P0, ['ParrotLibrary']
$P1 = clone $P0
david@animal:~/Data/GCI/parrot$ ./parrot test_parrotlibrary.pir 
Null PMC access in clone()
current instr.: 'main' pc 3 (test_parrotlibrary.pir:1)

Found while making tests for the ParroyLibrary test:  https://github.com/kapace/parrot/tree/test_coverage

Attachments

test_parrotlibrary.pir Download (58 bytes) - added by DavidCzech 3 years ago.
test of failing parrotlibrary clone

Change History

Changed 3 years ago by DavidCzech

test of failing parrotlibrary clone

Changed 3 years ago by plobsing

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

Fixed in 9d077eca238a6ed874270053384034187b580f08.

However, there is a larger issue here. ParrotLibrary objects are not intended to be directly instantiated, and all internal uses have a metadata hash attached. ParrotLibrary objects created in this naive way will not emulate actual usages and will likely not interact well with the rest of the system (as demonstrated by this bug).

Note: See TracTickets for help on using tickets.