Segfault with Julia MKL build (library conflict)
- 主要言語
- Julia
- スター
- 1.5k
- フォーク
- 186
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
With a recent upgrade of anaconda I'm getting seg faults with PyCall (and PyPlot). Reading the other recent issues it appears some are having the same problem but my output is a bit different and the workarounds for those don't seem to be helping any. Hope I'm not adding noise to something that is already known.
If I run the code from [6423](https://github.com/ContinuumIO/anaconda-issues/issues/6423) I just get a straight seg fault.
```julia
julia> using PyCall
julia> pyimport("numpy.linalg")["inv"]([2 1; 1 2])
Segmentation fault: 11
```
calling directly from python works fine.
```python
Python 3.6.2 |Anaconda, Inc.| (default, Sep 21 2017, 18:29:43)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> np.linalg.inv(np.matrix('2 1; 1 2'))
matrix([[ 0.66666667, -0.33333333],
[-0.33333333, 0.66666667]])
```
I've tried to work around it with what appears to work for some people. However I'm still getting seg faults. In particular, I tried the following without success.
```
julia> Libdl.dlopen("/Users/ethananderes/Software/anaconda3/lib/libiomp5.dylib")
julia> Libdl.dlopen("/Users/ethananderes/Software/anaconda3/lib/libmkl_intel_thread.dylib")
```
```
install_name_tool -change @rpath/libiomp5.dylib @loader_path/libiomp5.dylib /Users/ethananderes/Software/anaconda3/lib/libmkl_intel_thread.dylib
install_name_tool -change @rpath/libiomp5.dylib @loader_path/libiomp5.dylib /Users/ethananderes/Software/anaconda3/lib/libiomp5.dylib
```
Any ideas what is going on here?
Some possibly relevant info:
```
julia> using PyCall
julia> PyCall.libpython
"/Users/ethananderes/Software/anaconda3/lib/libpython3.6m"
julia> versioninfo()
Julia Version 0.6.1-pre.92
Commit 389b23cf6e* (2017-10-07 01:18 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin17.0.0)
CPU: Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
WORD_SIZE: 64
BLAS: libmkl_rt
LAPACK: libmkl_rt
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
Start by reproducing the crash in the Julia REPL with `using PyCall` and `pyimport("numpy.linalg")`, then inspect `PyCall.libpython` and the reported BLAS/LAPACK configuration. No source file or test is named; done would require identifying the library conflict and establishing a confirmed project-appropriate fix or workaround.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- julia, numpy, python
- 領域
- tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100