amd64: Corrupted memory when using Regexp::Grammars
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: perl
Core dump attached.
This is Perl 5.10.0 on amd64.
I'm trying to use Regexp::Grammars 1.002 from CPAN. This module uses hidden corners of Perl 5's Regexp engine.
Regexp::Grammars is a pure Perl module that has only dependencies on the Perl core modules.
The demo files of the Regexp::Grammars distribution work fine.
However the attached program and its datafile show a case where the memory of Perl seems to be corrupted: when using the R::G debugger, with <debug:on>, R::G says it has matched some strings which are not in my input string but instead elsewhere in the perl memory ("$Regexp::G").
Perl finally crashes (segmentation fault).
./make-
Here are the first lines of the log output:
=======
0.94 2010-02-19T2 | |...Trying <Version>
2010-
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value in substr at /home/dolmen/
<~~~~~
Revision history for | |...Trying <Date>
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Use of uninitialized value in subtraction (-) at /home/dolmen/
Use of uninitialized value $Regexp:
Use of uninitialized value in substr at /home/dolmen/
Erreur de segmentation
This is a security problem as it show a memory corruption in the regexp engine: Some program may allow regular expression to come from external source.
ProblemType: Bug
Architecture: amd64
Date: Sat Feb 20 09:46:52 2010
DistroRelease: Ubuntu 9.10
Package: perl 5.10.0-24ubuntu4 [modified: usr/bin/perldoc]
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=fr_FR.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: perl
Uname: Linux 2.6.31-19-generic x86_64
Changed in perl (Ubuntu): | |
status: | New → Confirmed |
Coredump attached.