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
Heap corruption for glob() on windows #13721
Comments
From ambrus@math.bme.huCreated by ambrus@math.bme.huPerl aborts if I glob a particular pattern on a particular directory. This is using Activeperl 5.18.1 x86_64 on windows. The command line is simply the following: perl -we "@_t = glob qq(uglydir\\c_* uglydir\\l_*)" When ran, this makes perl abort. According to visual studio as a debugger, the crash gives the following error message for heap corruption: Unhandled exception at 0x00000000779E4102 (ntdll.dll) in perl.exe: 0xC0000374: Egy halom s??t (parameters: 0x0000000077A5B4B0). The crash probably happens when destroying some objects, because the variant perl -we "warn glob qq(uglydir\\c_* uglydir\\l_*); warn q(ok);" crashes after printing the list of directories but before printing ok. The contents of the directory uglydir seems to matter. To reproduce, first run the following perl script to create the directory: @l = qw( Perl Info
|
From @bulk88no output == C:\Documents and Settings\Administrator\Desktop\plsegv>perl -we "warn glob qq(ug C:\Documents and Settings\Administrator\Desktop\plsegv> ActivePerl 32 5.10, no crash no output. -- |
The RT System itself - Status changed from 'new' to 'open' |
From ambrus@math.bme.huI could reproduce this bug on Linux with perl 5.16.3 x86_64 vanilla. For this, first modify the script that creates the subdirectories to perl -we "@_t = glob qq(uglydir/c_* uglydir/l_*)" Below is the full output from the abort, then information about my perl build. $ perl -we "@_t = glob qq(uglydir/c_* uglydir/l_*)"; echo $ perl -V Platform: Characteristics of this binary (from libperl): -- |
From ambrus@math.bme.huHere's some clarification. The previous dump crashes during a pp_gv This is using perl 5.16.3 Linux x86_64 again. $ perl -MO=Concise -we 'my @t = glob qq(uglydir/c_* uglydir/l_*);' |
From ambrus@math.bme.huCould you change the title of the ticket to "Heap corruption for glob()", the operating system and version to Linux 5.16.3 please? |
From ambrus@math.bme.huIt appears that this is a duplicate of the bug #114984 which is fixed in commit a6636b4 , however, that commit isn't applied to the perl 5.16 branch (as of commit 7aa08a0). Thus, I hereby nominate the patch a6636b4 to get applied to the perl 5.16 branch. |
From ambrus@math.bme.huOn Tue Apr 08 14:02:54 2014, b_jonas wrote:
|
Please close this ticket. The ticket only remained left open accidentally because I requested to merge the bugfix to the then oldstable 5.16 branch. |
Migrated from rt.perl.org#121602 (status was 'open')
Searchable as RT121602$
The text was updated successfully, but these errors were encountered: