-
Notifications
You must be signed in to change notification settings - Fork 571
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
[5.16] Unreferenced scalar in recursion #12952
Comments
From @GrimyI have some (horrifyingly golfed) code to recursively build a binary search Here is the simplest version I could come up with that still triggers the sub rec { rec(1, 1) |
From @jkeenanOn Thu May 09 09:49:24 2013, victor.adam@derpymail.org wrote:
I can confirm that I get this in Perl 5.16.0 but not in 5.14.2. But I Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Thu, May 09, 2013 at 04:49:58PM -0700, James E Keenan via RT wrote:
The code can be simplified to: @a = (1,1,1,1); i.e. elements of @a are being shifted off, copied and then freed, while It's another example of the perl stack not being reference counted. -- |
From @GrimyHello, As I said, I originally discovered the bug while golfing. Assigning to @_ sub rec { rec(1, 1); Note that the block passed to map completely ignores $_. Since each Thank you, Victor Adam 2013/5/10 James E Keenan via RT <perlbug-followup@perl.org>
|
From @jkeenanOn Sat May 11 02:02:53 2013, victor.adam@derpymail.org wrote:
Thanks for the follow-up. As Dave Mitchell noted, this falls into a Thank you very much. |
Migrated from rt.perl.org#117929 (status was 'open')
Searchable as RT117929$
The text was updated successfully, but these errors were encountered: