# New Ticket Created by  Jonathan Stowe 
# Please include the string:  [perl #125376]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125376 >


Just experimenting:

perl6 -e 'my $f = Sub.new(); say $f'
/home/jonathan/.rakudobrew/bin/perl6: line 2: 17687 Segmentation fault      
(core dumped) PATH=/home/jonathan/.rakudobrew/bin/../moar-nom/install/bin:$PATH 
perl6 "$@"

gdb output:

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b4f2b7 in MVM_coerce_istrue_s ()
   from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so
(gdb) bt
#0  0x00007ffff7b4f2b7 in MVM_coerce_istrue_s ()
   from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so
#1  0x00007ffff7b4f4c2 in MVM_coerce_istrue ()
   from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so
#2  0x00007ffff7b403e1 in MVM_interp_run ()
   from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so
#3  0x00007ffff7bd87ab in MVM_vm_run_file ()
   from /home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so
#4  0x000000000040101f in main ()


valgrind output:
==18186== 
==18186== Invalid read of size 1
==18186==    at 0x4D6D2B7: MVM_coerce_istrue_s (in 
/home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so)
==18186==    by 0x4D6D4C1: MVM_coerce_istrue (in 
/home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so)
==18186==    by 0x4D5E3E0: MVM_interp_run (in 
/home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so)
==18186==    by 0x4DF67AA: MVM_vm_run_file (in 
/home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so)
==18186==    by 0x40101E: main (in 
/home/jonathan/.rakudobrew/moar-nom/install/bin/moar)
==18186==  Address 0xffffffff0000000d is not stack'd, malloc'd or (recently) 
free'd
==18186== 
==18186== 
==18186== Process terminating with default action of signal 11 (SIGSEGV)
==18186==  Access not within mapped region at address 0xFFFFFFFF0000000D
==18186==    at 0x4D6D2B7: MVM_coerce_istrue_s (in 
/home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so)
==18186==    by 0x4D6D4C1: MVM_coerce_istrue (in 
/home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so)
==18186==    by 0x4D5E3E0: MVM_interp_run (in 
/home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so)
==18186==    by 0x4DF67AA: MVM_vm_run_file (in 
/home/jonathan/.rakudobrew/moar-nom/install/lib/libmoar.so)
==18186==    by 0x40101E: main (in 
/home/jonathan/.rakudobrew/moar-nom/install/bin/moar)
==18186==  If you believe this happened as a result of a stack
==18186==  overflow in your program's main thread (unlikely but
==18186==  possible), you can try to increase the size of the
==18186==  main thread stack using the --main-stacksize= flag.
==18186==  The main thread stack size used in this run was 8388608.
==18186== 
==18186== HEAP SUMMARY:
==18186==     in use at exit: 41,569,167 bytes in 144,593 blocks
==18186==   total heap usage: 163,773 allocs, 19,180 frees, 52,779,557 bytes 
allocated
==18186== 
==18186== LEAK SUMMARY:
==18186==    definitely lost: 41,049 bytes in 702 blocks
==18186==    indirectly lost: 21,779 bytes in 748 blocks
==18186==      possibly lost: 171,752 bytes in 3,070 blocks
==18186==    still reachable: 41,334,587 bytes in 140,073 blocks
==18186==         suppressed: 0 bytes in 0 blocks





Reply via email to