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 upon "using GSL" on Julia master #31488

Closed
giordano opened this issue Mar 26, 2019 · 1 comment · Fixed by #31651
Closed

segfault upon "using GSL" on Julia master #31488

giordano opened this issue Mar 26, 2019 · 1 comment · Fixed by #31651
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior compiler:precompilation Precompilation of modules regression Regression in behavior compared to a previous version

Comments

@giordano
Copy link
Contributor

Julia master segfaults when using GSL:

coey@che:~/julia$ j
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0-DEV.544 (2019-03-25)
 _/ |\__'_|_|_|\__'_|  |  Commit ea0c6e9e76 (0 days old master)
|__/                   |

julia> using GSL

signal (11): Segmentation fault
in expression starting at REPL[1]:1
unknown function (ip: 0x7fc07c6770df)
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_struct at /home/coey/julia/src/dump.c:1870
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_value_phic at /home/coey/julia/src/dump.c:1625 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2043
jl_deserialize_value_array at /home/coey/julia/src/dump.c:1542
jl_deserialize_value at /home/coey/julia/src/dump.c:2034
jl_deserialize_struct at /home/coey/julia/src/dump.c:1870
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_value_array at /home/coey/julia/src/dump.c:1542
jl_deserialize_value at /home/coey/julia/src/dump.c:2034
jl_deserialize_struct at /home/coey/julia/src/dump.c:1870
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_value_array at /home/coey/julia/src/dump.c:1542
jl_deserialize_value at /home/coey/julia/src/dump.c:2034
jl_deserialize_struct at /home/coey/julia/src/dump.c:1870
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_struct at /home/coey/julia/src/dump.c:1870
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_value_array at /home/coey/julia/src/dump.c:1542
jl_deserialize_value at /home/coey/julia/src/dump.c:2034
jl_deserialize_struct at /home/coey/julia/src/dump.c:1870
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_struct at /home/coey/julia/src/dump.c:1870
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_value_array at /home/coey/julia/src/dump.c:1542
jl_deserialize_value at /home/coey/julia/src/dump.c:2034
jl_deserialize_struct at /home/coey/julia/src/dump.c:1870
jl_deserialize_value_any at /home/coey/julia/src/dump.c:1969 [inlined]
jl_deserialize_value at /home/coey/julia/src/dump.c:2166
jl_deserialize_value at /home/coey/julia/src/dump.c:1784
jl_deserialize_value_array at /home/coey/julia/src/dump.c:1542
jl_deserialize_value at /home/coey/julia/src/dump.c:2034
_jl_restore_incremental at /home/coey/julia/src/dump.c:3162
jl_restore_incremental at /home/coey/julia/src/dump.c:3221
_include_from_serialized at ./loading.jl:617
_require_search_from_serialized at ./loading.jl:713
_require at ./loading.jl:938
require at ./loading.jl:859
require at ./loading.jl:854
jl_apply_generic at /home/coey/julia/src/gf.c:2226
jl_apply at /home/coey/julia/src/julia.h:1594 [inlined]
call_require at /home/coey/julia/src/toplevel.c:398 [inlined]
eval_import_path at /home/coey/julia/src/toplevel.c:435
jl_toplevel_eval_flex at /home/coey/julia/src/toplevel.c:639
jl_toplevel_eval_flex at /home/coey/julia/src/toplevel.c:746
jl_toplevel_eval_in at /home/coey/julia/src/toplevel.c:826
eval at ./boot.jl:327
jl_apply_generic at /home/coey/julia/src/gf.c:2226
eval_user_input at /home/coey/julia/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:86
macro expansion at /home/coey/julia/usr/share/julia/stdlib/v1.2/REPL/src/REPL.jl:118 [inlined]
#26 at ./task.jl:269
jl_apply_generic at /home/coey/julia/src/gf.c:2226
jl_apply at /home/coey/julia/src/julia.h:1594 [inlined]
start_task at /home/coey/julia/src/task.c:583
unknown function (ip: 0xffffffffffffffff)
Allocations: 1186985 (Pool: 1186717; Big: 268); GC: 1
Segmentation fault (core dumped)

The error has been bisected to c8510e3, part of #31015


First reported at JuliaMath/GSL.jl#99

@KristofferC KristofferC added this to the 1.2 milestone Mar 26, 2019
@JeffBezanson JeffBezanson added bug Indicates an unexpected problem or unintended behavior regression Regression in behavior compared to a previous version compiler:precompilation Precompilation of modules labels Mar 27, 2019
@giordano
Copy link
Contributor Author

For the record, on my computer I get an OutOfMemoryError:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _  |  |
  | | |_| | | | (_| |  |  Version 1.2.0-DEV.605 (2019-03-30)
 _/ |\__'_|_|_|\__'_|  |  Commit a46e37bcc5 (0 days old master)
|__/                   |

julia> versioninfo()
Julia Version 1.2.0-DEV.605
Commit a46e37bcc5 (2019-03-30 19:22 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, haswell)

julia> using GSL
ERROR: OutOfMemoryError()
Stacktrace:
 [1] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:617
 [2] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:713
 [3] _require(::Base.PkgId) at ./loading.jl:938
 [4] require(::Base.PkgId) at ./loading.jl:859
 [5] require(::Module, ::Symbol) at ./loading.jl:854

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior compiler:precompilation Precompilation of modules regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants