Problems with _dl_close assertion from Quartus on Ubuntu

I’m experiencing problems running Quartus 17.0 on Ubuntu 16.04. It fails with

Error:Inconsistency detected by dl-close.c: 811: _dl_close: Assertion `map->l_init_called' failed!

And it hits especially when using tcl to assign the sdram pin and timing constraints. I found this

And removing the sometimes help, sometimes it doesn’t. If it fails when being removed, it often fails with even stranger errors, so putting it back again might resolve the issue.

I’ve had this problem since Quartus 15.0. This is a real showstopper for me, as this is the only thing keeping me back from running the entire toolchain for the SoC setup under Linux.

What distro do you guys use on Linux and does the same error appear?