Skip to content

Potential memory corruption in shutdown due to multiple call curl_easy_cleanup() #4643

Closed
@adamhan-hitachi

Description

@adamhan-hitachi

Query/Question
In Curl transport layer, is it possible to have multiple instances of CurlConnection?

The reason to ask is that I captured back trace for memory corruption during application shutdown as attached. The stack shows that was corrupted in curl_easy_cleanup(), which is called by CurlConnection's destructor. Hence, it could explain that if there are multiple CurlConnection instances in CurlConnectionPool.

Otherwise, I need to explore other reason.

Why is this not a Bug or a feature Request?
It may be a bug. But I haven't reproduce it in unit test. It would be easies to check from design perspective.

Setup (please complete the following information if applicable):

Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [ x] Query Added
  • [ x] Setup information Added

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure.Corecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.issue-addressedWorkflow: The Azure SDK team believes it to be addressed and ready to close.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions