-
Notifications
You must be signed in to change notification settings - Fork 393
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
Bug: Segmentation fault in Lambda when importing event_parser
#4140
Comments
Thanks for opening your first issue here! We'll come back to you as soon as we can. |
I may have traced this to pydantic causing the problem instead of powertools. Will report back! |
Thank you for opening this and for your nice words! It's awesome that you could narrow it down. Can you tell me a little further how did you build the image locally? (point 1). I just wanted to test it locally too. |
Its a little complicated since I am using |
I am actually still not sure what is causing the problem but I don't think its powertools. I removed that import and still get a seg fault but I can't figure out how to trace it. In case this does end up still being relevant here, here are some more complete logs:
|
Ok I can't reproduce this problem with a simple dockerfile like this:
where |
|
Expected Behaviour
I expect that running
from aws_lambda_powertools.utilities.parser import event_parser
wouldn't cause a segmentation faultCurrent Behaviour
First, thank you to all the contributors and maintainers of an awesome package! Appreciate all of you!
Currently for an extremely minimal lambda definition I am getting a
Invoke failed error=Runtime exited with error: signal: segmentation fault InvokeID=76ea8eec-920e-428d-ba40-b53e05d9b869
when the only code in the lambda importsevent_parser
with a lambda handler function that returns"Hello"
.Code snippet
Possible Solution
No response
Steps to Reproduce
public.ecr.aws/lambda/python
digest: sha256:4d7703751e75e999b80787888496c131e782491320a2e25ec84d6bda5e1f2438
docker run --rm --platform linux/amd64 -p 9000:8080 name:tag
curl "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
Powertools for AWS Lambda (Python) version
2.36.0
AWS Lambda function runtime
3.10
Packaging format used
PyPi
Debugging logs
No response
The text was updated successfully, but these errors were encountered: