JuliaPy / PyPlot.jl

Plotting for Julia based on matplotlib.pyplot
https://github.com/JuliaPy/PyPlot.jl
MIT License
478 stars 88 forks source link

Segmentation fault when depending on PyCall v1.18.1 #375

Closed jannefiluren closed 6 years ago

jannefiluren commented 6 years ago

I get this segmentation fault on Linux (Ubuntu) when using the combination of PyPlot v2.6.0 and PyCall v1.18.1. If I downgrade PyCall to v1.18.0 everything seems to work fine.

My code:

using PyPlot
plot([1,2,3])

Start of the error:

signal (11): Segmentation fault
in expression starting at no file:0
function_call.lto_priv.350 at /home/jmg/.julia/packages/Conda/m7vem/deps/usr/lib/libpython3.6m.so (unknown line)
PyObject_Call at /home/jmg/.julia/packages/Conda/m7vem/deps/usr/lib/libpython3.6m.so (unknown line)
macro expansion at /home/jmg/.julia/packages/PyCall/uX707/src/exception.jl:81 [inlined]
__pycall! at /home/jmg/.julia/packages/PyCall/uX707/src/pyfncall.jl:117
_pycall! at /home/jmg/.julia/packages/PyCall/uX707/src/pyfncall.jl:30
#pycall#88 at /home/jmg/.julia/packages/PyCall/uX707/src/pyfncall.jl:16 [inlined]
pycall at /home/jmg/.julia/packages/PyCall/uX707/src/pyfncall.jl:160 [inlined]
#figure#7 at /home/jmg/.julia/packages/PyPlot/jXCXB/src/PyPlot.jl:142
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182
figure at /home/jmg/.julia/packages/PyPlot/jXCXB/src/PyPlot.jl:141
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1829
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1538 [inlined]
jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:563
jl_f__apply_latest at /buildworker/worker/package_linux64/build/src/builtins.c:601
#invokelatest#1 at ./essentials.jl:691 [inlined]
invokelatest at ./essentials.jl:690
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1538 [inlined]
jl_f__apply at /buildworker/worker/package_linux64/build/src/builtins.c:563
_pyjlwrap_call at /home/jmg/.julia/packages/PyCall/uX707/src/callback.jl:28
unknown function (ip: 0x7fcb18179384)
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2182
pyjlwrap_call at /home/jmg/.julia/packages/PyCall/uX707/src/callback.jl:49
unknown function (ip: 0x7fcb18142884)
_PyObject_FastCallDict at /home/jmg/.julia/packages/Conda/m7vem/deps/usr/lib/libpython3.6m.so (unknown line)
call_function at /home/jmg/.julia/packages/Conda/m7vem/deps/usr/lib/libpython3.6

and more...
stevengj commented 6 years ago

Should be fixed by https://github.com/JuliaPy/PyCall.jl/commit/8d300021792b8146483e0df42afd11ccd665fd99