Skip to content

Turn prof_active off and then on won't trigger sampling in 5.2.x #1605

Open

Description

@yinan1048576

If application performs the following three actions in sequence: (a) turn prof_active off, (b) make at least one allocation that triggers the malloc slow path via the if (unlikely(bytes_until_sample < 0)) path, and (c) turn prof_active back on, then the application would never get another sample (until a very very long time later), because bytes_until_sample is set to SSIZE_MAX.

Activity

  1. yinan1048576 commented on Aug 22, 2019

    @yinan1048576
    ContributorAuthor

    Fixed by #1604.

  2. interwq commented on Aug 22, 2019

    @interwq
    Contributor

    The regression was from 0f83136. It was included in the release 5.2.0 and 5.2.1.

    Let's keep this open until the next release, in case people search for the topic.

  3. changed the title [-]Turn prof_active off and then on won't trigger sampling[/-] [+]Turn prof_active off and then on won't trigger sampling in 5.2.x[/+] on Aug 22, 2019
  4. added this to the 6.0 milestone on Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions