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

ERL-1124: inet_SUITE:t_gethostnative fails for s390x on travis #4383

Open
OTP-Maintainer opened this issue Dec 26, 2019 · 9 comments
Open

ERL-1124: inet_SUITE:t_gethostnative fails for s390x on travis #4383

OTP-Maintainer opened this issue Dec 26, 2019 · 9 comments
Labels
help wanted Issue not worked on by OTP; help wanted from the community priority:medium question team:VM Assigned to OTP team VM

Comments

@OTP-Maintainer
Copy link

Original reporter: JIRAUSER13101
Affected version: Not Specified
Component: Not Specified
Migrated from: https://bugs.erlang.org/browse/ERL-1124


While trying to run tests in  travis job/build for s390x for master branch, one test case failure is observed for inet_SUITE:t_gethostnative with the following error:
inet_SUITE:t_gethostnative failed on line 696
Reason: case_clause
Whereas when ran manually on s390x VM, the test case passes. 

Can someone please help me in knowing the functionality of `t_gethostnative` at "https://github.com/erlang/otp/blob/master/lib/kernel/test/inet_SUITE.erl#L692" ? It will be really appreciated. 

Thanks in advance.
@OTP-Maintainer
Copy link
Author

mikael pettersson said:

Please provide the full stack trace of that failed test case.

@OTP-Maintainer
Copy link
Author

JIRAUSER13101 said:

Travis build logs:
1) https://travis-ci.org/garazdawi/otp/jobs/622590495 - (line no 2048)
2) https://travis-ci.org/erlang/otp/jobs/627756329 - (line no 2051)

Please let me know if anything else is needed from my side.

@OTP-Maintainer
Copy link
Author

mikael pettersson said:

Thanks, the second one with the "try_again" bit hints that the error originates from erts/etc/common/inet_gethost.c translating a TRY_AGAIN or EAI_AGAIN error from the system components.  Possibly lib/kernel/src/inet_gethost_native.erl should retry in this case.

@OTP-Maintainer
Copy link
Author

mikael pettersson said:

FWIW, I just got the same error in a trivial typo fixing branch on s390x in travis.  Looks like that CI pipeline is broken.

@OTP-Maintainer
Copy link
Author

JIRAUSER13101 said:

Hi Mikael, yes it fails only on Travis CI and not when running the same test steps manually on s390x container/VM.

Can you please let us know possible reasons for the "try_again" error thrown for the failed test only on Travis CI ? or help us in understanding the functionality of t_gethostnative at "https://github.com/erlang/otp/blob/master/lib/kernel/test/inet_SUITE.erl#L692"
 Also, wondering if ipv6/ipv4 may cause  the issue.

Thanks.

@OTP-Maintainer
Copy link
Author

JIRAUSER13101 said:

Any updates on this issue? 

@OTP-Maintainer
Copy link
Author

mikael pettersson said:

This should have been fixed yesterday as [https://github.com/erlang/otp/pull/2458] was reverted.

@OTP-Maintainer
Copy link
Author

JIRAUSER13101 said:

Hi Mikael, we want to fix it for s390x and add support for it in travis. 
Needed pointers in understanding the cause of failure.

@OTP-Maintainer
Copy link
Author

mikael pettersson said:

The problem would seem to be outside of the Erlang VM, somewhere in the s390x travis pipeline.  It could be almost anything, from a configuration issue in that pipeline, glibc on s390x or the s390x linux kernel having some issue, or whatever host (VM? docker? Hercules? qemu?) this eventually runs on.  You'd need to run your own custom job in that pipeline to reproduce the issue and determine its origin.  I can't help you with that.

@OTP-Maintainer OTP-Maintainer added question help wanted Issue not worked on by OTP; help wanted from the community team:VM Assigned to OTP team VM priority:medium labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issue not worked on by OTP; help wanted from the community priority:medium question team:VM Assigned to OTP team VM
Projects
None yet
Development

No branches or pull requests

1 participant