This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
-Dmad minitest failure bisect
authorZefram <zefram@fysh.org>
Thu, 26 Nov 2009 16:41:22 +0000 (16:41 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Thu, 26 Nov 2009 16:54:11 +0000 (17:54 +0100)
commit162177c1aed1991639f7f0da64e918c034e1148a
treeda7b79b9c915cf1a94856d711a477656c0ab4518
parent9735c8aa020a58992ffadba440014d200222da56
-Dmad minitest failure bisect

I wrote:
>In my tests with -Dmad, I'm still getting a test failure ("panic: input
>overflow") from t/op/incfilter.t.  The underlying problem is the filter
>layer mishandling things when a filter function gives it a multiline
>string, so it generates an invalid SV state (strlen(SvPVX(PL_linestr))
>> SvCUR(PL_linestr)).  This faulty state also occurs without -Dmad,
>and so doesn't appear to be Mad-related, it just doesn't in practice
>cause the test panic without -Dmad.  I'm investigating this bug now.

It's fixed by the attached patch.  Since the bug is an inconsistency
in the SV data structure, it can't be sensibly tested from Perl code,
so I'm at a loss for writing a test script.  Hopefully that panic with
-Dmad is sufficient.

-zefram

Signed-off-by: H.Merijn Brand <h.m.brand@xs4all.nl>
pp_ctl.c