Unity3d cannot open code editor: Segmentation fault (core dumped)

I’ve been using Unity3D from nixos-unstable.unityhub and after updating channels to 19.09 I cannot open the editor anymore so I created an external script to try to invoke it manually:

~/external_vscode $@ >> ~/fake_editor.log 2>&1
code # Segmentation fault (core dumped)
free # also segfault as well as many other binaries that run fine manually

How could I debug this further?

After updating to 20.03 the problem no longer appears, so I cannot reproduce.