Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] net-dns/c-ares-1.22.0 breaks curl
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 163
Location: Gentoo forums

PostPosted: Wed Nov 15, 2023 6:03 pm    Post subject: [SOLVED] net-dns/c-ares-1.22.0 breaks curl Reply with quote

After updating net-dns/c-ares from 1.21.0 to 1.22.0 today, any curl command hang indefinitely. For example:
Code:
$ curl ifconfig.co

Using --verbose doesn't display anything. I'm only seeing the curl process using a noticeable amount of my CPU.
I tried to re-emerge net-misc/curl and rebooting my system, but it doesn't make any difference.
Code:
$ eix -cI net-misc/curl
[I] net-misc/curl (8.4.0@11/15/2023): A Client that groks URLs

any
Code:
$ git fetch
$ git pull
command is also hanging as I'm using the curl USE flag for dev-vcs/git.
Downgrading to net-dns/c-ares 1.21.0 immediately solves the issue without any further intervention.
Just wondering if someone's also having the same issue, it might be worth opening a bug in this case.


Last edited by eeckwrk99 on Thu Nov 16, 2023 6:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2720

PostPosted: Wed Nov 15, 2023 6:20 pm    Post subject: Reply with quote

I'm using c-ares-1.22.0 and curl-8.4.0[adns] and not having issues with curl myself (that command works, git[curl] is same as usual too).

Are you using any uncommon C(XX)FLAGS? Could potentially be triggering undefined behaviour issues in that particular version. Don't have a whole lot of ideas for possible causes (also don't see anything that sounds related on c-ares nor curl bug tracker so far, albeit 1.22.0 release is pretty recent).
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 163
Location: Gentoo forums

PostPosted: Wed Nov 15, 2023 7:18 pm    Post subject: Reply with quote

Ionen wrote:
Are you using any uncommon C(XX)FLAGS? Could potentially be triggering undefined behaviour issues in that particular version.

No, I'm not:
Code:
# /etc/portage/make.conf
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"

lonen wrote:
Don't have a whole lot of ideas for possible causes (also don't see anything that sounds related on c-ares nor curl bug tracker so far, albeit 1.22.0 release is pretty recent).

I checked both GitHub repositories too prior to creating this thread but couldn't find anything relevant either. I'll stick with 1.21.0 for now.
I'll see if that also occurs on my Arch Linux install, 1.22.0 hasn't made it to the Arch repos yet, even in [extra-testing].
Back to top
View user's profile Send private message
Ionen
Developer
Developer


Joined: 06 Dec 2018
Posts: 2720

PostPosted: Wed Nov 15, 2023 11:56 pm    Post subject: Reply with quote

Well, probably at least someone else running into this: https://bugs.gentoo.org/917400
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21642

PostPosted: Thu Nov 16, 2023 12:02 am    Post subject: Reply with quote

For someone who can reproduce this, identifying in what function c-ares is spinning would be a useful next step. Debug symbols will likely be required for this to be meaningful.
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 163
Location: Gentoo forums

PostPosted: Thu Nov 16, 2023 1:16 pm    Post subject: Reply with quote

Ionen wrote:
Well, probably at least someone else running into this: https://bugs.gentoo.org/917400

Thanks, this is exactly the same issue indeed.
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 163
Location: Gentoo forums

PostPosted: Thu Nov 16, 2023 6:14 pm    Post subject: Reply with quote

Fixed upstream with this commit.
I applied the patch and rebuilt net-dns/c-ares-1.22.0, all good now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum