New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regex causes segfault in perl-5.10.1 on OpenBSD #10226
Comments
From jeff@zeroclue.comCreated by jeff@zeroclue.comThe following regex causes perl-5.10.1 to segfault on OpenBSD: my $msg = "\x{201C}Go figure\x{201D}"; jeff@minimunch:~ $ perl -e 'my $msg = "\x{201C}Go figure\x{201D}"; $msg =~ s{((?:ev|b))}{$1}i;' jeff@minimunch:~ $ uname -a This was uncovered by a failing test case in SVN::Notify 2.80. From a debugging session: DB<1> It appears to be due to Unicode and the non-capturing grouping. It can also be triggered with actual UTF-8 characters in the source: use utf8; my $msg = "“Go figure”"; Perl Info
|
From jeff@zeroclue.comSorry for the potentially confusing content of the perlbug report, I had to push the perlbug |
From @schwernJeff Lavallee (via RT) wrote:
As a data point, I cannot reproduce this on OS X 10.6 with 5.11.5, 5.10.1, -- |
The RT System itself - Status changed from 'new' to 'open' |
From david@kineticode.comOn Mar 12, 2010, at 9:03 AM, Michael G Schwern wrote:
Yes, it seems specific to OpenBSD, as SVN::Notify passes all tests on other platforms. Best, David |
From @iabynOn Fri, Mar 12, 2010 at 09:45:48AM -0800, David E. Wheeler wrote:
On Linux, I can get valgrind to complain with 5.10.1 and 5.11.0, but not This is perl, v5.10.1 (*) built for i686-linux-thread-multi ==8213== Invalid read of size 2 -- |
From jeff@zeroclue.comIt looks like it got fixed between 5.11.1 and 5.11.5: jeff@minimunch:~ $ cat segv.pl my $msg = "\x{201C}Go figure\x{201D}"; jeff@minimunch:~ $ /usr/local/perl-5.11.5/bin/perl segv.pl |
From jeff@zeroclue.comSummary of my perl5 (revision 5 version 11 subversion 1) configuration: Characteristics of this binary (from libperl): |
From jeff@zeroclue.comSummary of my perl5 (revision 5 version 11 subversion 5) configuration: Characteristics of this binary (from libperl): |
@iabyn - Status changed from 'open' to 'resolved' |
From @dolmenBug #72996 is probably related (or the same?): it is also a case of a |
From @dolmenSent to the wrong "davem" Le Dim. Mar. 14 17:07:11 2010, dolmen a écrit :
|
Migrated from rt.perl.org#73516 (status was 'resolved')
Searchable as RT73516$
The text was updated successfully, but these errors were encountered: