On 26 Mar 2025, at 16:44, Vadim Grinshpun via curl-library 
<curl-library@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.html

Reply via email to