<div dir="ltr">Hi,<div><br></div><div>Ldd with file /etc/ld.so.nohwcap :</div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">julien@pccorei7-4770:~$ ldd $(which glxgears)
</span><br> Â Â Â Â Â Â Â linux-vdso.so.1 (0x00007ffcc49c5000)
<br> Â Â Â Â Â Â Â libGLEW.so.2.0 => /usr/lib/x86_64-linux-gnu/libGLEW.so.2.0 (0x00007f9327cc6000)
<br> Â Â Â Â Â Â Â libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f9327a57000)
<br> Â Â Â Â Â Â Â libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f93277b3000)
<br> Â Â Â Â Â Â Â libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f93274af000)
<br> Â Â Â Â Â Â Â libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f932716f000)
<br> Â Â Â Â Â Â Â libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f9326f5d000)
<br> Â Â Â Â Â Â Â libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9326bbe000)
<br> Â Â Â Â Â Â Â libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f932683c000)
<br> Â Â Â Â Â Â Â libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9326625000)
<br> Â Â Â Â Â Â Â libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f9326421000)
<br> Â Â Â Â Â Â Â libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f93261f1000)
<br> Â Â Â Â Â Â Â libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f9325f23000)
<br> Â Â Â Â Â Â Â /lib64/ld-linux-x86-64.so.2 (0x00007f9328161000)
<br> Â Â Â Â Â Â Â libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f9325cfb000)
<br> Â Â Â Â Â Â Â libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f9325af7000)
<br> Â Â Â Â Â Â Â libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f93258f1000)
<br> Â Â Â Â Â Â Â libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f93256db000)
<br> Â Â Â Â Â Â Â librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f93254d3000)
<br> Â Â Â Â Â Â Â libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f93252b6000)<br>
<br></span></div><div><font face="arial, helvetica, sans-serif">Ldd without file /etc/ld.so.nohwcap :</font></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">julien@pccorei7-4770:~$ ldd $(which glxgears)
</span><br> Â Â Â Â Â Â Â linux-vdso.so.1 (0x00007ffce55b0000)
<br> Â Â Â Â Â Â Â libGLEW.so.2.0 => /usr/lib/x86_64-linux-gnu/libGLEW.so.2.0 (0x00007f90c7a69000)
<br> Â Â Â Â Â Â Â libGLU.so.1 => /usr/lib/x86_64-linux-gnu/libGLU.so.1 (0x00007f90c77fa000)
<br> Â Â Â Â Â Â Â libGL.so.1 => /usr/lib/x86_64-linux-gnu/libGL.so.1 (0x00007f90c7556000)
<br> Â Â Â Â Â Â Â libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f90c7252000)
<br> Â Â Â Â Â Â Â libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007f90c6f12000)
<br> Â Â Â Â Â Â Â libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007f90c6d00000)
<br> Â Â Â Â Â Â Â libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f90c6961000)
<br> Â Â Â Â Â Â Â libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f90c65df000)
<br> Â Â Â Â Â Â Â libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f90c63c8000)
<br> Â Â Â Â Â Â Â libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f90c61c4000)
<br> Â Â Â Â Â Â Â libGLX.so.0 => /usr/lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f90c5f94000)
<br> Â Â Â Â Â Â Â libGLdispatch.so.0 => /usr/lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f90c5cc6000)
<br> Â Â Â Â Â Â Â /lib64/ld-linux-x86-64.so.2 (0x00007f90c7f04000)
<br> Â Â Â Â Â Â Â libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f90c5a9e000)
<br> Â Â Â Â Â Â Â libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007f90c589a000)
<br> Â Â Â Â Â Â Â libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f90c5694000)
<br> Â Â Â Â Â Â Â libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f90c547e000)
<br> Â Â Â Â Â Â Â librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f90c5276000)
<br> Â Â Â Â Â Â Â libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f90c5059000)<br>
<br></span></div><div><span style="font-family:arial,helvetica,sans-serif">I remark the addresses of libraries are not the same but it is probably due to ASLR.</span></div><div><span style="font-family:arial,helvetica,sans-serif"><br></span></div><div><span style="font-family:arial,helvetica,sans-serif">Another thing I was thinking of : if the issue is related to code paths, maybe we should try on some other CPUs w/ the NVidia blob, because it might be a Haswell hardware bug. What do you think of this ? We should try on some Intel non-Haswell CPU w/ and w/o the file.</span><br></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Rgds,</font></div><div class="gmail_extra"><br><div class="gmail_quote">2017-12-07 10:06 GMT+01:00 Aurelien Jarno <span dir="ltr"><<a href="mailto:aurelien@aurel32.net" target="_blank">aurelien@aurel32.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">control: reopen -1<br>
control: tag -1 - unreproducible<br>
control: retitle -1 nvidia-driver: crashes with /etc/ld.so.nohwcap<br>
<span class="gmail-"><br>
On 2017-12-07 05:43, Julien Aubin wrote:<br>
</span><div><div class="gmail-h5">> 2017-12-06 21:50 GMT+01:00 Aurelien Jarno <<a href="mailto:aurelien@aurel32.net">aurelien@aurel32.net</a>>:<br>
><br>
> > On 2017-12-06 19:39, Julien Aubin wrote:<br>
> > > Weird... this time I re-upgraded libc6 and things work fine... looks like<br>
> > > something wrong went during the install. And I cannot reproduce the issue<br>
> > > anymore... :'( WTF ???<br>
> ><br>
> > Hmm, a bug has been introduced in libc6 version 2.24-11+deb9u2, which in<br>
> > some conditions leave the /etc/ld.so.nohwcap file instead of removing it<br>
> > just after the upgrade (see bug#883394). One of the condition is to have<br>
> > libc6-i686 installed (while it can be safely removed), which seems to be<br>
> > your case.<br>
> ><br>
> > I consider this bug harmless as it should not deactivate anything now<br>
> > that the default libc is already i686 optimized. Also I don't see how it<br>
> > could trigger the issue you described. Anyway better be safe than sorry,<br>
> > could you please try to create this file with "touch /etc/ld.so.nohwcap"<br>
> > as root and see if it makes the issue to reappear? Once the test is done<br>
> > you can then remove it.<br>
> ><br>
> > Thanks,<br>
> > Aurelien<br>
> ><br>
><br>
><br>
> Bingo ! It was exactly this !<br>
><br>
> If I re-create the file for example it crashes glxgears. When I remove it<br>
> glxgears works fine.<br>
><br>
> With GDB, the stack trace for when I run glxgears :<br>
><br>
> 0  0x00007ffff6b311a4 in pthread_mutex_lock (mutex=0x7ffff604e8c0) at<br>
> forward.c:192<br>
> #1  0x00007ffff5de1308 in __glDispatchNewVendorID () from<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libGLdispatch.so.0<br>
> #2  0x00007ffff60793c2 in ?? () from /usr/lib/x86_64-linux-gnu/<wbr>libGLX.so.0<br>
> #3  0x00007ffff607a1ac in ?? () from /usr/lib/x86_64-linux-gnu/<wbr>libGLX.so.0<br>
> #4  0x00007ffff6073170 in glXChooseVisual () from<br>
> /usr/lib/x86_64-linux-gnu/<wbr>libGLX.so.0<br>
> #5  0x000055555555779f in ?? ()<br>
> #6  0x0000555555555ae7 in ?? ()<br>
> #7  0x00007ffff6a5c2e1 in __libc_start_main (main=0x555555555970, argc=1,<br>
> argv=0x7fffffffe638, init=<optimized out>,<br>
>  Â  fini=<optimized out>, rtld_fini=<optimized out>,<br>
> stack_end=0x7fffffffe628) at ../csu/libc-start.c:291<br>
> #8  0x000055555555646a in ?? ()<br>
><br>
<br>
</div></div>The libc6 package version 2.24-11+deb9u2 won't be in the next point<br>
release so this issue won't trigger. That said there is clearly an<br>
issue on the nvidia package, it should behave the same with and<br>
without /etc/ld.so.nohwcap. I am therefore reopening this bug.<br>
<br>
One of the first step to debug this issue would be to run ldd<br>
/usr/bin/glxgears with and without /etc/ld.so.nohwcap and compare the<br>
difference.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Aurelien<br>
</font></span><div class="gmail-HOEnZb"><div class="gmail-h5"><br>
--<br>
Aurelien Jarno  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  GPG: 4096R/1DDD8C9B<br>
<a href="mailto:aurelien@aurel32.net">aurelien@aurel32.net</a>  Â  Â  Â  Â  Â  Â  Â  Â <a href="http://www.aurel32.net" rel="noreferrer" target="_blank">http://www.aurel32.net</a><br>
</div></div></blockquote></div><br></div></div>