From: dylan.smith@... Date: 2021-04-20T21:59:24+00:00 Subject: [ruby-core:103534] [Ruby master Bug#14607] Fix use of the rb_profile_frames start parameter Issue #14607 has been updated by dylants (Dylan Thacker-Smith). > I need to remember why such special (additional) calculation is done I'm not sure what you mean by additional calculation. It is decrementing `start` when non-zero as expected to loop over that number of frames, it just was missing the corresponding update to `cfp`. Could this get another look? ---------------------------------------- Bug #14607: Fix use of the rb_profile_frames start parameter https://bugs.ruby-lang.org/issues/14607#change-91635 * Author: dylants (Dylan Thacker-Smith) * Status: Open * Priority: Normal * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- rb_profile_frames was always behaving as if the value given for the start parameter was 0. The reason for this was that it would check `if (start > 0) {` then `continue` without updating the control frame pointer or anything other than decrementing `start`. This bug applies to all branches under normal maintenance, from ruby 2.3 to trunk. -- https://bugs.ruby-lang.org/ Unsubscribe: