Skip to content

segmentation fault (core dumped) #57

@jfarr

Description

@jfarr

Hi, I followed the instructions under Running Locust on AWS Lambda but all I get is this error when I run invokr.py:

[2022-01-05 07:33:57,245] LM-C02C775WMD6R/ERROR/invokust.aws_lambda.lambda_load_test: error Unhandled: b'{"errorMessage":"RequestId: bb804730-df31-47d0-bc5f-ac734d0aa70e Error: Runtime exited with error: signal: segmentation fault (core dumped)","errorType":"Runtime.ExitError"}'

Any pointers what I might be doing wrong? I'm building the Lambda package on MacOS Big Sur using these commands:

docker run -it --volume=$PWD:/temp python:3.6 bash -c "pip install /temp --target=/temp/python-packages"
zip -q -r lambda_locust.zip lambda_locust.py locustfile_example.py python-packages
aws lambda create-function --function-name lambda_locust --timeout 300 --runtime python3.6 --role arn:aws:iam::XXXXXX --handler lambda_locust.handler --zip-file fileb://lambda_locust.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions