"Use of freed value in iteration" error during adjust to zero
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Undecided
|
Unassigned | ||
3.0 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
EG 2.12
During adjust to zero, we've seen occasional errors like this:
"Call to [open-ils.
Use of freed value in iteration at /usr/local/
I don't have a test plan to consistently reproduce the error yet. However, the error message points to a foreach loop in the bill_payment_
http://
"You are not supposed to modify arrays while they are being iterated over. For speed and efficiency reasons, Perl internally does not do full reference-counting of iterated items, hence deleting such an item in the middle of an iteration causes Perl to see a freed value."
Changed in evergreen: | |
milestone: | none → 2.12.2 |
tags: | added: pullrequest |
Changed in evergreen: | |
milestone: | 2.12.2 → 2.12.3 |
Changed in evergreen: | |
milestone: | 2.12.3 → 2.12.4 |
Changed in evergreen: | |
milestone: | 2.12.4 → 2.12.5 |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Branch working/ user/jeffdavis/ lp1691563- freed-value- in-iteration has the kind of fix that I believe is needed here:
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=commitdif f;h=577b0171