awslabs / aws-lambda-web-adapter

Run web applications on AWS Lambda
Apache License 2.0
1.9k stars 115 forks source link

`Illegal instruction` error when running on local x86 VM. #474

Closed DiscreteTom closed 1 month ago

DiscreteTom commented 3 months ago

Some local VM may miss some CPU instructions like AVX. Running LWA on these VMs directly or via SAM local will cause [ERROR] (rapid) Init failed InvokeID= error=signal: illegal instruction.

Maybe a debug build (non optimized, no extension instructions needed) should be provided for local development.

bnusunny commented 3 months ago

Yes, LWA x86 binary is compiled with AVX2 support. Feel free to send a PR.

bnusunny commented 1 month ago

Closing as this is not a bug impacting customers on the Lambda service.