Shopify / bootsnap

Boot large Ruby/Rails apps faster
MIT License
2.68k stars 183 forks source link

1.18.x: `compile_cache/iseq.rb:64:in 'fetch': Invalid argument - (Errno::EINVAL)` #471

Closed casperisfine closed 10 months ago

casperisfine commented 10 months ago

I started seeing this error after the upgrade, somehow it wasn't caught during my integration testing while developing 1.18.

Looking into it.

casperisfine commented 10 months ago

Example corrupted header:

"\x05\x00\x00\x00\x881R9\xC1\x06z\xC0/IL(\x9E\x03\x00\x00\x00\x00\x00\x00\xDA\x16\xB9e\x00\x00\x00\x00\x00\x00\x00\x00\xE8\x7F\x00\x00\xB8\xBF0\xE4\xD4\e\xB4\xB2\x01_C\x01\x00\x00\x00\x00\xF8\x17z\x8B\xE8\x7F\x00\x00"

And the whole entry was 2376 bytes.