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

SIGSEGV when using CRT Http Client on alpine Linux #2868

Closed
rmennes opened this issue Nov 23, 2021 · 7 comments · Fixed by #4256
Closed

SIGSEGV when using CRT Http Client on alpine Linux #2868

rmennes opened this issue Nov 23, 2021 · 7 comments · Fixed by #4256
Labels
crt-client dependencies This issue is a problem in a dependency. feature-request A feature should be added or improved. p3 This is a minor priority issue

Comments

@rmennes
Copy link

rmennes commented Nov 23, 2021

Describe the bug

When using the AWS CRT Http Client on an alpine Linux docker container (such as openjdk:17-alpine3.14) an SIGSEGV error occurs.

Expected behavior

After installing the required libraries on an alpine linux container, the aws-crt-client should be able to execute http requests.

Current behavior

When using the AWS CRT Http Client on an alpine Linux docker container (such as openjdk:17-alpine3.14) an SIGSEGV error occurs.

The output and the corresponding log could be found in out.txt and hs_err_pid1 (1).log

Steps to Reproduce

  1. Create a docker base image using alpine linux (such as openjdk:17-alpine3.14) where all required libraries are installed (gcompat)
  2. Create actual service using the AWS-CRT-Http-client on top of the base image created in step 1.
  3. Run the service.

A minimal example could be found here:
aws-crt-example.zip

Possible Solution

No response

Context

No response

AWS Java SDK version used

2.17.44

JDK version used

openjdk 17-ea 2021-09-14

Operating System and version

openjdk:17-alpine3.14

@zoewangg zoewangg transferred this issue from aws/aws-sdk-java Nov 23, 2021
@zoewangg
Copy link
Contributor

Hi @rmennes, thank you for reporting the issue. We will take a look

@zoewangg zoewangg added dependencies This issue is a problem in a dependency. bug This issue is a bug. labels Nov 23, 2021
@TingDaoK
Copy link

Hi, thanks for reporting the issue. The alpine linux is not currently supported by CRT for now. It's in our plan to support it in the future. For now, can you use HTTP client other than CRT as workaround? And we will throw a proper exception instead of crashing as a short-term solution.

@zoewangg zoewangg added feature-request A feature should be added or improved. and removed bug This issue is a bug. labels Nov 23, 2021
@rmennes
Copy link
Author

rmennes commented Nov 24, 2021

Thanks for the information. For now I will use another HTTP client.
I understand this decision. I'm looking forward to the moment CRT will be supported within the alpine linux. :)

@bretambrose
Copy link
Contributor

I did a little experimentation today. If you're willing to build the CRT yourself on an alpine/musl based system, it appears to work. You'll need cmake and build-base.

Obviously, the long-term solutioon is for us to support musl in the maven-published packages, but in the meantime you do seem to have the option of self-build.

@rmennes
Copy link
Author

rmennes commented Dec 9, 2021

Hi @bretambrose ,
Thanks for your remark. We tried to do that but unfortunately we are still unable to make it work. We are able to compile the library without any problem. Anyhow the moment we try to run our accpliceation we still get a stack overflow exception. (Log output could be found in attachment)

Could you guide us to setup our application?

Thanks in advanced
log.txt
.

@LIANGQI0811
Copy link

Hello everyony,When will this bug be fixed?

@yasminetalby yasminetalby added the p3 This is a minor priority issue label Nov 28, 2022
@github-actions
Copy link

github-actions bot commented Aug 2, 2023

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

aws-sdk-java-automation added a commit that referenced this issue Jan 25, 2024
…3bd2a5df1

Pull request: release <- staging/f62a0686-34ed-44f1-8ec2-f753bd2a5df1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crt-client dependencies This issue is a problem in a dependency. feature-request A feature should be added or improved. p3 This is a minor priority issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants