<div dir="ltr">Hi all,<br><div><br></div><div>While checking the PyQGIS build, I realized that there was an error when running any PyQGIS code on Ubuntu Focal:</div><div><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px">ImportError: /lib/x86_</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px">64-linux-</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px">gnu/libstdc+</span><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px">+.so.6: cannot allocate memory in static TLS block</span><br></div><div><a href="https://github.com/qgis/pyqgis/runs/1006224259?check_suite_focus=true#step:3:228">https://github.com/qgis/pyqgis/runs/1006224259?check_suite_focus=true#step:3:228</a><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><br></span></div><div><span style="color:rgb(51,51,51);font-family:monospace;font-size:12px"><br></span></div><div>I found this reference: <a href="https://bugs.launchpad.net/ubuntu/+source/opencv/+bug/1890170?comments=all">https://bugs.launchpad.net/ubuntu/+source/opencv/+bug/1890170?comments=all</a></div><div><br></div><div>Without really understanding the meaning of this, I gave a try at:</div><div><pre style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace"><span style="color:rgb(0,115,191)">export </span><span style="color:rgb(0,0,0)">LD_PRELOAD</span>=/lib/x86_64-linux-gnu/libstdc++.so.6<br></pre></div><div>Which seems to solve the problem.</div><div><br></div><div>From a comment on Launchpad, this could be related to mysql-server being compiled with faster TLS model (<span style="background-color:rgb(230,255,237);color:rgb(3,47,98);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,monospace;font-size:12px;white-space:pre">-ftls-model=initial-exec)</span></div><div><a href="https://github.com/mysql/mysql-server/commit/735bd2a53834266c7256830c8d34672ea55fe17b">https://github.com/mysql/mysql-server/commit/735bd2a53834266c7256830c8d34672ea55fe17b</a><br></div><div><br></div><div>This could well explain why it was not raised very loudly before (Ubuntu Focal + mssql server combination)</div><div><br></div><div>I am writing here to leave a reference to this.</div><div>But if anybody has any suggestions, additions or corrections to my statements...please let me/us know.</div><div><br></div><div>Cheers,</div><div>Denis</div></div>