Skip to content

Make jemalloc2 to be used only in web/sidekiq, but not spring

Kamil Trzciński (Back 2025-01-01) requested to merge fix-jemalloc2 into master

It appears that LD_PRELOAD of jemalloc2 breaks chrome testing via Capybara. There is an exception printed when trying to allocate memory:

[675357.343922] Chrome_ChildIOT[1145233]: segfault at 1230 ip 00007fcc4772ed3a sp 00007fcc42198be0 error 4 in libjemalloc.so.2[7fcc476a2000+92000]
[675357.343930] Code: 1a 48 81 e6 00 00 00 c0 25 f0 00 00 00 4c 01 e0 48 8b 38 48 39 f7 0f 85 26 07 00 00 48 c1 e9 09 81 e1 f8 ff 1f 00 48 03 48 08 <48> 8b 09 48 83 c3 08 49 8b 46 10 4c 89 fe 48 c1 e1 10 48 c1 f9 10
[675357.474041] chrome[1144673]: segfault at 53c8 ip 00007f27bdd27d3a sp 00007fff0331a2c0 error 4 in libjemalloc.so.2[7f27bdc9b000+92000]
[675357.474063] Code: 1a 48 81 e6 00 00 00 c0 25 f0 00 00 00 4c 01 e0 48 8b 38 48 39 f7 0f 85 26 07 00 00 48 c1 e9 09 81 e1 f8 ff 1f 00 48 03 48 08 <48> 8b 09 48 83 c3 08 49 8b 46 10 4c 89 fe 48 c1 e1 10 48 c1 f9 10

After removing jemalloc2 from ruby process that is then inherited into chromedriver this effectively solves the chrome testing.

This additionally updates base image to latest one used by CI.

Resolves:

Edited by Kamil Trzciński (Back 2025-01-01)

Merge request reports

Loading