Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: crash in Curl_getaddrinfo_ex using libcurl 8.11.1
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Dimitry Andric via curl-library <curl-library_at_lists.haxx.se>
Date: Wed, 26 Mar 2025 18:48:07 +0100
On 26 Mar 2025, at 16:44, Vadim Grinshpun via curl-library <curl-library_at_lists.haxx.se> wrote:
>
> On 3/21/25 8:38 PM, Vadim Grinshpun wrote:
>> Hi,
>> A program that has been happily using libcurl for years
>> started crashing when we upgraded libcurl from 8.10.1 to 8.11.1.
>>
>> I was hoping the good folks here might be able
>> to point me in the right direction; the crash is within a libcurl
>> getaddrinfo call.
>> A sample gdb stack trace is at the end of the email.
>>
>> - the OS is Ubuntu 22.04.5 LTS.
>> - there were no code changes in the program, just dependency updates
>> - the program is multi-threaded
>>
>> Based on the fact that 'getaddrinfo' is mentioned in the stack trace, I
>> wonder if this is somehow related
>> to a PR that was merged into 8.11.0: https://github.com/curl/curl/pull/15475
>>
>> Thanks for any help! And let me know if any other information would be
>> useful.
>>
>> -Vadim
>>
> To follow up: updating to 8.12.1 seems to have resolved the issue.
> (we think this was an instance of the fixed issue https://github.com/curl/curl/issues/15725)
Yes, that looks quite likely: closing file descriptors twice is risky in multithreaded contexts. :)
-Dimitry
Date: Wed, 26 Mar 2025 18:48:07 +0100
On 26 Mar 2025, at 16:44, Vadim Grinshpun via curl-library <curl-library_at_lists.haxx.se> wrote:
>
> On 3/21/25 8:38 PM, Vadim Grinshpun wrote:
>> Hi,
>> A program that has been happily using libcurl for years
>> started crashing when we upgraded libcurl from 8.10.1 to 8.11.1.
>>
>> I was hoping the good folks here might be able
>> to point me in the right direction; the crash is within a libcurl
>> getaddrinfo call.
>> A sample gdb stack trace is at the end of the email.
>>
>> - the OS is Ubuntu 22.04.5 LTS.
>> - there were no code changes in the program, just dependency updates
>> - the program is multi-threaded
>>
>> Based on the fact that 'getaddrinfo' is mentioned in the stack trace, I
>> wonder if this is somehow related
>> to a PR that was merged into 8.11.0: https://github.com/curl/curl/pull/15475
>>
>> Thanks for any help! And let me know if any other information would be
>> useful.
>>
>> -Vadim
>>
> To follow up: updating to 8.12.1 seems to have resolved the issue.
> (we think this was an instance of the fixed issue https://github.com/curl/curl/issues/15725)
Yes, that looks quite likely: closing file descriptors twice is risky in multithreaded contexts. :)
-Dimitry
-- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-03-26