leaningtech / cheerp-meta

Cheerp - a C/C++ compiler for Web applications - compiles to WebAssembly and JavaScript
https://labs.leaningtech.com/cheerp
Other
1.02k stars 50 forks source link

Segmentation fault in cheerp::ConstantExprLoweringPass #129

Closed zyz9740 closed 1 year ago

zyz9740 commented 1 year ago

crash_infinite_loop_2.zip

Another case that can cause segmentation fault, which seems different to the later.

carlopi commented 1 year ago

Thanks for raising also this case!

I reproduce, this is connected with ConstantExprLowering::visitConstantExpr, later I will take a closer look.

carlopi commented 1 year ago

Fixed in the current Cheerp's nightly (https://launchpad.net/~leaningtech-dev/+archive/ubuntu/cheerp-nightly-ppa/+packages). Closing this, thanks.