-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
BUG: fix segfault at import of the scikit #1268
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
Conversation
In general to use the C API of numpy (cimport numpy in Cython), you should always insert 'np.import_array()' after the import. If not, you can have race conditions during the imports.
OK, it seems that this does not fix the problem. The segfault is not 100% reproducible, but I still get it every once in a while. |
Isn't there a way to do this centrally, say from |
I don't know, but anyhow it seems that it's not the problem. G |
Interesting: I can
This doesn't happen every time, though. |
On Tue, Oct 23, 2012 at 08:48:16AM -0700, Lars Buitinck wrote:
That's probably more debuggable than my current way of triggering the I'll keep digging... |
Does it trigger with an explicit |
(Was thinking maybe something doesn't |
Good idea. However the answer is: "not reliably". |
Hey Jon, Looking at the gdb backtrace, which I have a hard time to trigger, it |
Can't debug because of this, reported by @amueller on the mailing list too:
|
On Tue, Oct 23, 2012 at 05:51:52PM -0700, erg wrote:
Thanks for trying. It's always good to catch such a linking error. We'll |
Did anyone try to add the missing blas routine to see if it fixes the problem? |
I'm pretty sure adding it would resolve this issue (but not the segfault). |
What happend to @vene's PR btw? |
Merged and then reverted... So it's lost, althought the code is still G |
The revert is a single commit so
will get the code back. |
@larsmans I guess the issue is more that someone needs to pick it up, merge the blas dependencies and find the segfault ;) |
Is this still current? |
Hot fix to solve the segfault on the buildbot.
In general to use the C API of numpy (cimport numpy in Cython), you
should always insert 'np.import_array()' after the import. If not, you
can have race conditions during the imports.