Ticket #1602 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

.INTERPINFO_CURRENT_OBJECT causes segfault:

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

Description (last modified by coke) (diff)

.include 'interpinfo.pasm'

.sub main :main
  $P1234 = interpinfo .INTERPINFO_CURRENT_OBJECT
  $S0 = typeof $P1234
  say "alive"
.end

the typeof call segfaults.

Change History

Changed 5 years ago by coke

  • description modified (diff)

presumable NULL vs. PMCNULL.

Changed 5 years ago by coke

  • description modified (diff)

Changed 5 years ago by NotFound

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

The function interpinfo_p was declared CAN_RETURN_NULL but its result is assigned unchecked to P registers. Changed to CANNOT_RETURN_NULL and filtered its result in r46199.

Note: See TracTickets for help on using tickets.