-
Notifications
You must be signed in to change notification settings - Fork 4
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
t/s.t fails and crashes with Perl 5.32.0 randomly #37
Comments
I can reduce it to:
It's triggered by s///e substituting on a variable that was substituted before. It does not have to be the implicit $_. It can be any other variable. Removing the /e flag disappears the bug. |
Valgrind reports on each run:
|
Here a the line numbers:
|
The failure happens since this perl commit Perl/perl5@f0ac8a3:
|
Introduced with v5.31.9 gdb bt
I dont see yet any fault in f0ac8a377ab01ad6936776b0c73d0c1eab98f782, more likely in the next commit. |
This is fixed by #40 The problem is the code was pointer copying the strbeg during exec, which then causes problems. Using savepvn() solves the problem at some cost. Really you should be copying the COW logic. |
After upgrading Perl from 5.30.3 to 5.32.0 I observe random failures in t/s.t test:
or crashes:
or:
This smells like a failure in a memory management.
The text was updated successfully, but these errors were encountered: