Skip Menu |

This queue is for tickets about the Regexp-Grammars CPAN distribution.

Report information
The Basics
Id: 107126
Status: open
Priority: 0/
Queue: Regexp-Grammars

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

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



Subject: Using Regexp::Grammars bails out "forced to realloc PL_linestr for line use Regexp::Grammars; ... "
Hi I wanted to update Regexp::Grammars to new version 1.042. B::Hooks::Parser dependency is satisfied: ii libb-hooks-parser-perl 0.16-1 amd64 module providing an interface to Perl's parser variables on a system with Perl 5.20.2. The following though bails out: $ perl -w -MRegexp::Grammars -e 1 forced to realloc PL_linestr for line use Regexp::Grammars; , bailing out before we crash harder at /usr/lib/x86_64-linux-gnu/perl5/5.20/B/Hooks/Parser.pm line 25. BEGIN failed--compilation aborted. Any ideas? Regards, Salvatore
Subject: Re: [rt.cpan.org #107126] Using Regexp::Grammars bails out "forced to realloc PL_linestr for line use Regexp::Grammars; ... "
Date: Thu, 17 Sep 2015 07:18:55 +1000
To: bug-Regexp-Grammars [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
Hi Salvatore, Thanks for reporting... Show quoted text
> $ perl -w -MRegexp::Grammars -e 1 > forced to realloc PL_linestr for line use Regexp::Grammars; > , bailing out before we crash harder at
/usr/lib/x86_64-linux-gnu/perl5/5.20/B/Hooks/Parser.pm line 25. Show quoted text
> BEGIN failed--compilation aborted. > > Any ideas?
Judging by the error message, this seems to be an issue in B::Hooks::Parser, not Regexp::Grammars. Maybe you could query it with the maintainer of that module, Karen Etheridge? Are you getting errors in any real program that uses Regexp::Grammars (i.e. any program that has actual source code, rather than just command-line options)? Damian
Subject: Re: [rt.cpan.org #107126] Using Regexp::Grammars bails out "forced to realloc PL_linestr for line use Regexp::Grammars; ... "
Date: Fri, 18 Sep 2015 18:51:00 +0200
To: "damian [...] conway.org via RT" <bug-Regexp-Grammars [...] rt.cpan.org>
From: Salvatore Bonaccorso <carnil [...] cpan.org>
Hi Damian! Sorry for the late reply. On Wed, Sep 16, 2015 at 05:19:49PM -0400, damian@conway.org via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=107126 > > > Hi Salvatore, > > Thanks for reporting... >
> > $ perl -w -MRegexp::Grammars -e 1 > > forced to realloc PL_linestr for line use Regexp::Grammars; > > , bailing out before we crash harder at
> /usr/lib/x86_64-linux-gnu/perl5/5.20/B/Hooks/Parser.pm line 25.
> > BEGIN failed--compilation aborted. > > > > Any ideas?
> > Judging by the error message, this seems to be an issue in > B::Hooks::Parser, not Regexp::Grammars. Maybe you could > query it with the maintainer of that module, Karen Etheridge?
Yes, sure I now realize it that I might asked in the wrong place. Show quoted text
> Are you getting errors in any real program that uses Regexp::Grammars > (i.e. any program that has actual source code, rather than just > command-line options)?
For now I just see it when running 'perl -w -MRegexp::Grammars -e 1'. This would have been seen in http://ci.debian.net/packages/libr/libregexp-grammars-perl/ (Debian Continous Integration), but I had tested it before uploading, so it is not failing there yet. Regards, Salvatore
RT-Send-CC: damian [...] conway.org, CARNIL [...] cpan.org
On Wed Sep 16 17:19:48 2015, damian@conway.org wrote: Show quoted text
> Are you getting errors in any real program that uses Regexp::Grammars > (i.e. any program that has actual source code, rather than just > command-line options)?
Hi Damian, Tests for SQL::Abstract::FromQuery now fail since Regexp::Grammars version 1.042, on Perl versions >= 5.18.4. See http://www.cpantesters.org/distro/S/SQL-Abstract-FromQuery.html. I don't really know if the problem is in Regexp::Grammars or in B::Hooks::Parser, it seems rather hard to narrow down to a smaller test case. Could you please have a look ? Thanks in advance, Laurent Dami
Subject: Re: [rt.cpan.org #107126] Using Regexp::Grammars bails out "forced to realloc PL_linestr for line use Regexp::Grammars; ... "
Date: Tue, 24 Nov 2015 09:50:42 +1100
To: bug-Regexp-Grammars [...] rt.cpan.org
From: Damian Conway <damian [...] conway.org>
On 7 November 2015 at 04:59, Laurent Dami via RT < bug-Regexp-Grammars@rt.cpan.org> wrote: Show quoted text
> Tests for SQL::Abstract::FromQuery now fail since Regexp::Grammars > version 1.042, on Perl versions >= 5.18.4. See > http://www.cpantesters.org/distro/S/SQL-Abstract-FromQuery.html. > > I don't really know if the problem is in Regexp::Grammars or in > B::Hooks::Parser, it seems rather hard to narrow down to a smaller > test case.
It's my belief that this is an issue with B::Hooks::Parser. See: https://rt.cpan.org/Ticket/Display.html?id=101058 I'm currently looking for another approach to allow Regexp::Grammars to work post 5.22 without the need for scary and buggy support modules, but it's extremely difficult due to changes in the way regexes are parsed. The only reliable solution may be to change the module's API and eliminate the pseudo-variables $CAPTURE, $CONTEXT, $DEBUG, $INDEX, $MATCH, %ARG, and %MATCH. Or, rather, to replace them with pseudo-globals ($RG::CAPTURE, $RG::CONTEXT, etc.) :-( I'm working on that for the next release, but only in my copious spare time. Damian