Skip Menu |
Report information
Id: 118581
Status: resolved
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at]>

Severity: (no value)
  • Bug
  • testcommitted
Platform: (no value)
Patch Status: (no value)
VM: (no value)

Subject: [BUG] Segfault for a signature match with a native type and an 'as' cast in Rakudo
Date: Sat, 22 Jun 2013 01:25:25 +0200
To: rakudobug [...]
From: Carl Mäsak <cmasak [...]>
Download (untitled) / with headers
text/plain 179b
<jnthn> r: say \(1) ~~ :(int $x as Str) <camelia> rakudo 51d024: OUTPUT«(signal SEGV)» <masak> O.O * masak submits rakudobug <jnthn> Found while porting the code for the JVM :)
RT-Send-CC: perl6-compiler [...]
Download (untitled) / with headers
text/plain 261b
This no longer segfaults but gives False (on Moar, Parrot and JVM): $ perl6 -e 'say \(1) ~~ :(int $x as Str)' False Is that smart match supposed to return True? (For the tests it would be nice to check for the correct result and not only whether it lives_ok.)
RT-Send-CC: perl6-compiler [...]
Download (untitled) / with headers
text/plain 129b
Resolving this ticket because Rakudo no longer segfaults. See [perl #122990] for the unexpected behavior it revealed underneath.
Download (untitled) / with headers
text/plain 128b
I added a test to S03-smartmatch/capture-signature.t with the following commit:

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at