-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenBLAS makes GIMP crash #132
Comments
Hi , What's the compiler version? Could you test the bug with USE_OPENMP=1 ? The rpcc is very simple. So far, I don't have any idea about this issue. Thanks Xianyi |
I use gcc 4.7.1. If I compile with USE_OPENMP=1, I still get a crash, but this time it is in the OMP library (libgomp.so) when OpenBLAS is loaded. I can provide a full backtrace if needed. Concerning the rpcc() function: it contains only a "rdtsc" x86 instruction. I noticed that this latter instruction can be disabled under Linux, in which case calling it generates a segfault (see http://www.kernel.org/doc/man-pages/online/pages/man2/prctl.2.html and look for PR_SET_TSC). That might be the cause of the problem. I tried to test that hypothesis but got no success (I am not very familiar with low level stuff). Any idea of how to test that? |
Hi, According to TSC wiki page http://en.wikipedia.org/wiki/Time_Stamp_Counter, Is it possible to replace rdtsc with clock_gettime()? Xianyi |
I have created a minimal example which crashes on my system. The code is at: http://www.dynare.org/sebastien/issue132.tar.gz The setup is similar to that of GIMP: the "main" program calls a dynamic module (foo.so) which itself calls OpenBLAS. The program crashes in dlclose() on my system. This happens with the standard Debian package (which is compiled with DYNAMIC_ARCH=1 TARGET=GENERIC), but the crash disappears if I add USE_OPENMP=1 (I did not test with multithreading disabled). I am not sure that this crash is the same than the one with GIMP, but it looks similar. Now I am going to test your suggestion about clock_gettime. |
Hi @sebastien-villemot , I fixed the bug about your test code. Now, it can exit successfully. Could you test it with GIMP crash? Thanks Xianyi |
I applied a55821a to OpenBLAS 0.1.1 (the version I'm interested in fixing for Debian) and it fixes the GIMP crash! Thanks for your prompt reaction. I'm going to upload the patch to Debian. |
…tests Merge in PL/openblas from dev/k.zaytseva/LM-268 to dev-riscv
This is Debian bug #673061 (http://bugs.debian.org/673061)
When OpenBLAS is installed on a Debian system, GIMP (the GNU Image Manipulation
Program) crashes at launch time.
The crash occurs when GIMP tries to load a module from GEGL (Generic Graphics
Library), matting-levin.so, which itself links against BLAS.
A full backtrace is below. The crash occurs in rpcc() from common_x86_x64.h.
The crash has been replicated with OpenBLAS 0.1.1 and 0.2.2.
Note that the crash disappears if OpenBLAS is compiled without multithreading
support (i.e. with NUM_THREADS=1).
Please let me know if you need more information or more actions on my part in
order to debug this.
Thanks,
The text was updated successfully, but these errors were encountered: