Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use IP address instead of hostname to avoid a bug in libc #480

Merged
merged 1 commit into from
Jul 11, 2018

Conversation

pawelchcki
Copy link
Contributor

On certain linux systems there seems to be a bug in libc which causes deadlock of Ruby interpreter.
It only happens when ruby tries to resolve a hostname and its specifically triggered with many short-lived Ruby processes e.g. Resque.

See issue - #466 - where the solution was to use IP address instead of hostname.

Also this comment that contains GDB trace of all threads seems to directly point to libc call to resolve hostname.

…on certain systems when spawning many processes.
@pawelchcki pawelchcki added bug Involves a bug core Involves Datadog core libraries labels Jul 10, 2018
Copy link
Contributor

@delner delner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@delner delner assigned pawelchcki and unassigned delner Jul 11, 2018
@delner delner merged commit 12331c1 into master Jul 11, 2018
@delner delner deleted the bugfix/address_agent_by_ip branch July 11, 2018 17:11
@delner delner added this to the 0.13.1 milestone Jul 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug core Involves Datadog core libraries
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants