Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the String-Slice CPAN distribution.

Report information
The Basics
Id: 95093
Status: resolved
Priority: 0/
Queue: String-Slice

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.01
Fixed in: (no value)



Subject: Test suite fails with perl 5.19.x
See overview on http://matrix.cpantesters.org/?dist=String-Slice Looking at one test report, it looks that a segfault (signal 11) is happening here. Maybe it's related to https://rt.cpan.org/Ticket/Display.html?id=80258, but that bug report was talking about perl 5.17.x, and the module seems to work fine with perl 5.18.x. Regards, Slaven
Bisect tells me it's v5.19.2-401-g7fa949d which has been dealt with in https://rt.perl.org/Public/Bug/Display.html?id=119295
On 2014-04-27 06:15:16, SREZIC wrote: Show quoted text
> See overview on http://matrix.cpantesters.org/?dist=String-Slice > > Looking at one test report, it looks that a segfault (signal 11) is > happening here. > > Maybe it's related to > https://rt.cpan.org/Ticket/Display.html?id=80258, but that bug report > was talking about perl 5.17.x, and the module seems to work fine with > perl 5.18.x. >
Test suite still fails with stable perl 5.20.0 and upcoming 5.20.1.
Subject: [PATCH] Fix for post 5.18
RT-Send-CC: doug [...] hcsw.org
The following patch fixes the problem. diff -ru String-Slice-0.01/src/Slice.xs String-Slice-0.01.msg/src/Slice.xs --- String-Slice-0.01/src/Slice.xs 2012-10-16 02:09:27.000000000 -0500 +++ String-Slice-0.01.msg/src/Slice.xs 2014-10-29 10:52:46.582724711 -0600 @@ -22,6 +22,9 @@ U8* base_ptr; CODE: // Force string and slice to be string-type-scalars (SVt_PV) +#if PERL_VERSION > 18 + if(SvIsCOW(slice)) sv_force_normal(slice); +#endif SvUPGRADE(slice, SVt_PV); SvUPGRADE(string, SVt_PV); Regards. El Lun Sep 08 15:41:59 2014, SREZIC escribió: Show quoted text
> On 2014-04-27 06:15:16, SREZIC wrote:
> > See overview on http://matrix.cpantesters.org/?dist=String-Slice > > > > Looking at one test report, it looks that a segfault (signal 11) is > > happening here. > > > > Maybe it's related to > > https://rt.cpan.org/Ticket/Display.html?id=80258, but that bug report > > was talking about perl 5.17.x, and the module seems to work fine with > > perl 5.18.x. > >
> > Test suite still fails with stable perl 5.20.0 and upcoming 5.20.1. >