# New Ticket Created by  "Stephen Simmons" 
# Please include the string:  [perl #58948]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=58948 >


Using the more elaborate version of the testcase behind #58294, which has a
two and a three argument version of max, what use to compile and execute
incorrectly before the bug fix now compiles and segfaults.  I suspect this
has nothing to do with the changes that fixed #58294, and everything to do
with recent MMD changes.  But that's speculation
I've stripped it down to the max(a,b) and max(a,b,c) definitions and one
three-arg call, though a two-arg call produces a similar result.  The result
is:

sully:perl6 stephensimmons$ perl6 experiment/max3.p6
Null PMC access in invoke()
current instr.: '_block11' pc 44 (EVAL_14:19)
called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806
(src/PCT/HLLCompiler.pir:481)
called from Sub 'parrot;PCT::HLLCompiler;evalfiles' pc 1078
(src/PCT/HLLCompiler.pir:610)
called from Sub 'parrot;PCT::HLLCompiler;command_line' pc 1257
(src/PCT/HLLCompiler.pir:699)
called from Sub 'parrot;Perl6::Compiler;main' pc 16414 (perl6.pir:172)
perl6(22765) malloc: *** error for object 0x343ea10: double free
*** set a breakpoint in malloc_error_break to debug
Segmentation fault

sysinfo:
sully:perl6 stephensimmons$ perl6 -v
This is Rakudo Perl 6, revision 31194 built on parrot 0.7.0-devel
for darwin-thread-multi-2level.

Copyright 2006-2008, The Perl Foundation.

sully:perl6 stephensimmons$ uname -a
Darwin sully.local 9.4.0 Darwin Kernel Version 9.4.0: Mon Jun  9 19:30:53
PDT 2008; root:xnu-1228.5.20~1/RELEASE_I386 i386

Note that this does not segfault in r30669, though it does not handle
defined correctly.

Attachment: max3.p6
Description: Binary data

Reply via email to