Skip to content
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

segfault after importing CSV and Images, PyPlot from a separate module #759

Closed
MaxandreJ opened this issue Oct 18, 2018 · 4 comments
Closed

Comments

@MaxandreJ
Copy link

MaxandreJ commented Oct 18, 2018

Hi,

I get the following segfault

signal (11): Segmentation fault: 11
in expression starting at /MyProjectDirectory/Test.jl:4
_platform_strcmp at /usr/lib/system/libsystem_platform.dylib (unknown line)

when I run /MyProjectDirectory/Test.jl which contains the code

push!(LOAD_PATH, "/MyProjectDirectory")
import CSV
using MyModule

that uses /MyProjectDirectory/MyModule.jl which contains the code

module MyModule
using Images
import PyPlot
end

I don't know if this is an issue to do with CSV, Images, PyPlot or Julia itself. This is a minimal working example. I'm using Julia 1.0.1 on MacOS Mojave. The segfault goes away if I don't load any one of these three packages. There is still a segfault if I start Julia with --check-bounds=yes.

I hope this can be resolved soon! Segfaults are frightening...

These are the versions of the packages in question + important dependencies

Images v0.16.0
PyCall v1.18.5+ #Master (https://github.com/JuliaPy/PyCall.jl.git)
PyPlot v2.6.3
CSV v0.4.1

I have also posted this issue on the PyPlot.jl github and the CSV.jl github.

Best,
Max

@timholy
Copy link
Member

timholy commented Oct 18, 2018

Can you replicate this without defining a package? I.e., on the REPL? (I can't, just by using the 3 packages.)

@MaxandreJ
Copy link
Author

Hi @timholy and thank you for your answer!
No, there's no segfault if I just run

import CSV
using Images
import PyPlot

The segfault only happens in the case that I explain in the first post in this thread.

@ronisbr
Copy link

ronisbr commented Mar 8, 2019

I am having this same problem when building Cairo (JuliaGraphics/Cairo.jl#271).

I think this can be some incompatibility between Julia and Mojave.

@johnnychen94
Copy link
Member

FWIW, I no longer see this by trying JuliaPy/PyPlot.jl#402 (comment) in Julia 1.6.0 with macOS BigSur

julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.6.0)
  CPU: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants