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

Segmentation fault in GC #27952

Closed
PetrKryslUCSD opened this issue Jul 6, 2018 · 19 comments
Closed

Segmentation fault in GC #27952

PetrKryslUCSD opened this issue Jul 6, 2018 · 19 comments
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@PetrKryslUCSD
Copy link

PetrKryslUCSD commented Jul 6, 2018

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6b5e158a -- gc_try_setmark at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1424 [inlined]
gc_mark_loop at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1868
in expression starting at no file:0
gc_try_setmark at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1421 [inlined]
gc_mark_loop at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1868
_jl_gc_collect at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:2468
jl_gc_collect at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:2633
jl_gc_pool_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:953
jl_gc_alloc_ at /home/Administrator/buildbot/worker/package_win64/build/src\julia_internal.h:274 [inlined]
_new_array_ at /home/Administrator/buildbot/worker/package_win64/build/src\array.c:106 [inlined]
_new_array at /home/Administrator/buildbot/worker/package_win64/build/src\array.c:151 [inlined]
jl_alloc_array_1d at /home/Administrator/buildbot/worker/package_win64/build/src\array.c:411
Type at .\boot.jl:394 [inlined]
sparse at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\SparseArrays\src\sparsematrix.jl:542
unknown function (ip: 000000001A6209CE)
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:42
sparse at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\SparseArrays\src\sparsematrix.jl:737 [inlined]
makematrix! at C:\Users\PetrKrysl\.julia\dev\FinEtools\src\AssemblyModule.jl:215
stiffness at C:\Users\PetrKrysl\.julia\dev\FinEtools\src\FEMMDeforLinearMSModule.jl:278
stiffness at C:\Users\PetrKrysl\.julia\dev\FinEtools\src\FEMMDeforLinearBaseModule.jl:130 [inlined]
LE10NAFEMS_MST10_stresses_nodal at c:\Users\PetrKrysl\.julia\dev\FinEtools\examples\deformation_linear\statics\3-d\LE10NAFEMS_examples.jl:2684
allrun at c:\Users\PetrKrysl\.julia\dev\FinEtools\examples\deformation_linear\statics\3-d\LE10NAFEMS_examples.jl:2853
unknown function (ip: 0000000006800253)
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1813
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324
eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:428
eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [inlined]
eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:675
jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:792
unknown function (ip: FFFFFFFFFFFFFFFE)
unknown function (ip: 0000000013EC19FF)
unknown function (ip: 0000000000000001)
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:814
jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:633
eval at .\boot.jl:319 [inlined]
eval at .\meta.jl:6 [inlined]
runexamples at C:\Users\PetrKrysl\.julia\dev\FinEtools\examples\runexamples.jl:18
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324
eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:428
eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [inlined]
eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:675
jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:792
unknown function (ip: FFFFFFFFFFFFFFFE)
unknown function (ip: 0000000014F6C05F)
unknown function (ip: FFFFFFFFFFFFFFFF)
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:814
jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:633
eval at .\boot.jl:319
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
eval_user_input at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\REPL\src\REPL.jl:85
macro expansion at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\REPL\src\REPL.jl:116 [inlined]
#28 at .\task.jl:257
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1813
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1532 [inlined]
start_task at /home/Administrator/buildbot/worker/package_win64/build/src\task.c:268
Allocations: 19149249538 (Pool: 19146721966; Big: 2527572); GC: 64755
@JeffBezanson
Copy link
Member

Are you able to provide steps that reproduce this?

@PetrKryslUCSD
Copy link
Author

Unfortunately, no. It occurred after a long line of computation triggered after some REPL work. Sorry.

@PetrKryslUCSD
Copy link
Author

I managed to produce a repeatable series of steps to generate this error. My environment:

$ export JULIA_NUM_THREADS=4; ~/AppData/Local/Julia-0.7.0-beta/bin/julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.7.0-beta.108 (2018-07-01 22:57 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit 3ac99765de (4 days old master)
|__/                   |  x86_64-w64-mingw32
julia> versioninfo()
Julia Version 0.7.0-beta.108
Commit 3ac99765de (2018-07-01 22:57 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-6650U CPU @ 2.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4

I ran:

(v0.7) pkg> add https://github.com/PetrKryslUCSD/FinEtools.jl.git

And then:

shell> cd ../.julia/packages\\FinEtools\\ZvnG\\examples\\deformation_linear\\statics\\3-d\\
C:\Users\PetrKrysl\.julia\packages\FinEtools\ZvnG\examples\deformation_linear\statics\3-d

julia> include("LE10NAFEMS_examples.jl"); LE10NAFEMS_examples.LE10NAFEMS_MST10_stresses_nodal()

The output is (to get to this point takes several minutes):

julia> include("LE10NAFEMS_examples.jl"); LE10NAFEMS_examples.LE10NAFEMS_MST10_stresses_nodal()
LE10NAFEMS, 3D version. Element: MST10
displacement =[-0.0277575 0.0 -0.0980201] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274042 0.0 -0.0994613] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274393 0.0 -0.101249] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274871 0.0 -0.103116] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]

RMS error
Normalized Approximate Error = [0.169739, 0.150143, 0.150013]
Linear log-log fit: p = [0.0891166, -1.79379]
Wrote LE10NAFEMS_MST10_stresses_nodal_extraptrend_Stress.CSV
displacement =[-0.0277575 0.0 -0.0980201] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x6b5e199f -- gc_try_setmark at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1424 [inlined]
gc_mark_scan_obj8 at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1550 [inlined]
gc_mark_loop at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1814
in expression starting at no file:0
gc_try_setmark at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1421 [inlined]
gc_mark_scan_obj8 at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1550 [inlined]
gc_mark_loop at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:1814
_jl_gc_collect at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:2468
jl_gc_collect at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:2633
jl_gc_pool_alloc at /home/Administrator/buildbot/worker/package_win64/build/src\gc.c:953
Type at .\compiler/ssair\ir.jl:222 [inlined]
userefs at .\compiler/ssair\ir.jl:335 [inlined]
ssamap at .\compiler/ssair\ir.jl:378
renumber_ssa! at .\compiler/ssair\slot2ssa.jl:74 [inlined]
renumber_ssa! at .\compiler/ssair\slot2ssa.jl:73
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
construct_ssa! at .\compiler/ssair\slot2ssa.jl:855
just_construct_ssa at .\compiler/ssair\driver.jl:109
run_passes at .\compiler/ssair\driver.jl:114
optimize at .\compiler\optimize.jl:145
typeinf at .\compiler\typeinfer.jl:35
typeinf_ext at .\compiler\typeinfer.jl:567
typeinf_ext at .\compiler\typeinfer.jl:604
jfptr_typeinf_ext_10.clone_1 at C:\Users\PetrKrysl\AppData\Local\Julia-0.7.0-beta\lib\julia\sys.dll (unknown line)
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1532 [inlined]
jl_apply_with_saved_exception_state at /home/Administrator/buildbot/worker/package_win64/build/src\rtutils.c:257
jl_type_infer at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:274
jl_compile_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1768 [inlined]
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1812
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151 [inlined]
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1532 [inlined]
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:56
#_iip_meanonly at .\none:0 [inlined]
#inspectintegpoints#4 at C:\Users\PetrKrysl\.julia\packages\FinEtools\ZvnG\src\FEMMDeforLinearMSModule.jl:642
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:42
#fieldfromintegpoints#18 at .\none:0
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:42
LE10NAFEMS_MST10_stresses_nodal at .\none:0
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1813
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324
eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:428
eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [inlined]eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:675
jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:792
unknown function (ip: FFFFFFFFFFFFFFFE)
unknown function (ip: 000000001415299F)
unknown function (ip: 0000000000000000)
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:814
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:762
jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:633
eval at .\boot.jl:319
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
eval_user_input at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\REPL\src\REPL.jl:85
macro expansion at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\REPL\src\REPL.jl:116 [inlined]
#28 at .\task.jl:257
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1813
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2151
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1532 [inlined]
start_task at /home/Administrator/buildbot/worker/package_win64/build/src\task.c:268
Allocations: 1172908930 (Pool: 1172606683; Big: 302247); GC: 4166

@PetrKryslUCSD
Copy link
Author

The crash does not appear to be related to the number of threads. The same error is reported when I force the number of threads to be 1.

@KristofferC
Copy link
Member

KristofferC commented Jul 6, 2018

FWIW, it ran successfully on my Mac with julia-beta:

julia> include("LE10NAFEMS_examples.jl"); LE10NAFEMS_examples.LE10NAFEMS_MST10_stresses_nodal()
LE10NAFEMS, 3D version. Element: MST10
displacement =[-0.0277575 0.0 -0.0980201] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274042 0.0 -0.0994613] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274393 0.0 -0.101249] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274871 0.0 -0.103116] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]

RMS error
Normalized Approximate Error = [0.169739, 0.150143, 0.150013]
Linear log-log fit: p = [0.0891166, -1.79379]
Wrote LE10NAFEMS_MST10_stresses_nodal_extraptrend_Stress.CSV
displacement =[-0.0277575 0.0 -0.0980201] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274042 0.0 -0.0994613] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274393 0.0 -0.101249] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
displacement =[-0.0274871 0.0 -0.103116] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]

RMS error
Normalized Approximate Error = [0.242268, 0.13594, 0.121928]
Linear log-log fit: p = [0.495287, -1.49588]
Wrote LE10NAFEMS_MST10_stresses_nodal_extrapmean_Stress.CSV

@PetrKryslUCSD
Copy link
Author

I suspect this issue is really an instance of this bug.
The code in this example invokes eval and parse via the PhysicalUnitModule function phun.

@JeffBezanson JeffBezanson added the bug Indicates an unexpected problem or unintended behavior label Jul 23, 2018
@Keno
Copy link
Member

Keno commented Jul 28, 2018

Can you check if the fix for #27955 fixed this one also?

@PetrKryslUCSD
Copy link
Author

PetrKryslUCSD commented Jul 31, 2018

EDIT: This might be the same issue.
EDIT 2: Still happening w/ rc1.
@Keno : This is the result of running with the latest master on Windows:

julia> include("LE10NAFEMS_examples.jl"); LE10NAFEMS_examples.LE10NAFEMS_MST10_stresses_nodal()
LE10NAFEMS, 3D version. Element: MST10
displacement =[-0.0277575 0.0 -0.0980201] [MM] as compared to reference [-0.030939, 0, -0.10488] [MM]
Illegal inttoptr
          %45 = ptrtoint double addrspace(13)* %44 to i64
Illegal inttoptr
          %60 = inttoptr i64 %59 to i8 addrspace(13)*

signal (22): SIGABRT
in expression starting at no file:0
crt_sig_handler at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\signals-win.c:92
raise at C:\WINDOWS\System32\msvcrt.dll (unknown line)
abort at C:\WINDOWS\System32\msvcrt.dll (unknown line)
runOnFunction at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\llvm-gc-invariant-verifier.cpp:178
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at C:\Users\PetrKrysl\AppData\Local\Julia-0.7.0-beta2\bin\LLVM.dll (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at C:\Users\PetrKrysl\AppData\Local\Julia-0.7.0-beta2\bin\LLVM.dll (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at C:\Users\PetrKrysl\AppData\Local\Julia-0.7.0-beta2\bin\LLVM.dll (unknown line)
operator() at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\jitlayers.cpp:486
addModule at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/usr/include/llvm/ExecutionEngine/Orc\IRCompileLayer.h:57 [inlined]
addModule at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\jitlayers.cpp:613
jl_add_to_ee at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\jitlayers.cpp:860 [inlined]
jl_finalize_function at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\jitlayers.cpp:868
getAddressForFunction at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1300
jl_generate_fptr at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1411
jl_compile_method_internal at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1804 [inlined]
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1811
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2165 [inlined]
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1538 [inlined]
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:56
#inspectintegpoints#4 at .\none:0
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1812
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2165 [inlined]
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1538 [inlined]
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:56
#fieldfromintegpoints#18 at .\none:0
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1812
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2165 [inlined]
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1538 [inlined]
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:56
#fieldfromintegpoints#20 at .\none:0
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1812
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2165 [inlined]
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1538 [inlined]
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:56
LE10NAFEMS_MST10_stresses_nodal at .\none:0
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1812
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2165
do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:324
eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:428
eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:363 [inlined]
eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:682
jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:799
unknown function (ip: FFFFFFFFFFFFFFFE)
unknown function (ip: 000000000F2EF6BF)
unknown function (ip: 0000000000000000)
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:831
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:778
jl_toplevel_eval_in at /home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:633
eval at .\boot.jl:319
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2165
eval_user_input at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\REPL\src\REPL.jl:87
macro expansion at C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v0.7\REPL\src\REPL.jl:119 [inlined]
#28 at .\task.jl:262
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1812
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2165
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1538 [inlined]
start_task at /home/Administrator/buildbot/worker/package_win64/build/src\task.c:268
Allocations: 47248058 (Pool: 47238769; Big: 9289); GC: 105

@JeffBezanson
Copy link
Member

Also try rebuilding llvm (make -C deps distclean-llvm, make) if you haven't recently; that issue might be fixed by a recent llvm patch.

@Keno
Copy link
Member

Keno commented Jul 31, 2018

Probably ideally wait until #28362 is merged first.

@JeffBezanson
Copy link
Member

Now worth checking this again.

@PetrKryslUCSD
Copy link
Author

I tried with Commit a83dfee (Windows 10).

Illegal inttoptr
          %42 = ptrtoint double addrspace(13)* %41 to i64
Illegal inttoptr
          %57 = inttoptr i64 %56 to i8 addrspace(13)*

@Keno
Copy link
Member

Keno commented Aug 2, 2018

We had just merged another one of these when @JeffBezanson, so please try with a more recent version.

@StefanKarpinski
Copy link
Member

E.g. the new 0.7.0-rc2 that was just tagged (no binaries yet, so you'll have to build it).

@PetrKryslUCSD
Copy link
Author

Can I get a binary with this change implemented? I'm on the road and I cannot build it myself.

@cdluminate
Copy link
Contributor

I encountered a similar failure during build.

Statistics  ─────  0.337505 seconds
Stdlibs total  ── 67.593087 seconds
Sysimage built. Summary:
Total ───────  91.865412 seconds 
Base: ───────  24.270893 seconds 26.4201%
Stdlibs: ────  67.593087 seconds 73.5784%
make[3]: Leaving directory '/home/lumin/packages/julia.pkg/julia'
make[3]: Entering directory '/home/lumin/packages/julia.pkg/julia'
 cd /home/lumin/packages/julia.pkg/julia/base && if ! /home/lumin/packages/julia.pkg/julia/usr/bin/julia -O3 -C "x86-64" --output-o /home/lumin/packages/julia.pkg/julia/usr/lib/x86_64-linux-gnu/julia/sys-o.a.tmp  --startup-file=no --warn-overwrite=yes --sysimage /home/lumin/packages/julia.pkg/julia/usr/lib/x86_64-linux-gnu/julia/sys.ji /home/lumin/packages/julia.pkg/julia/contrib/generate_precompile.jl /home/lumin/packages/julia.pkg/julia/usr/lib/x86_64-linux-gnu/julia/sys.ji; then echo '*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***'; false; fi 
Generating precompile statements... 751 generated in  29.793997 seconds
Illegal inttoptr
	  %scevgep9 = ptrtoint i32 addrspace(13)* %scevgep to i64
Illegal inttoptr
	  %scevgep1011 = ptrtoint i32 addrspace(13)* %scevgep10 to i64

signal (6): Aborted
in expression starting at no file:0
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
runOnFunction at ./src/./src/llvm-gc-invariant-verifier.cpp:178
_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE at /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1 (unknown line)
_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE at /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1 (unknown line)
_ZN4llvm6legacy15PassManagerImpl3runERNS_6ModuleE at /usr/lib/x86_64-linux-gnu/libLLVM-6.0.so.1 (unknown line)
operator() at ./src/./src/jitlayers.cpp:1182 [inlined]
jl_dump_native at ./src/./src/jitlayers.cpp:1191
jl_write_compiler_output at ./src/./src/precompile.c:84
jl_atexit_hook at ./src/./src/init.c:233
main at ./ui/./ui/repl.c:234
__libc_start_main at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
_start at /home/lumin/packages/julia.pkg/julia/usr/bin/julia (unknown line)
Allocations: 56992005 (Pool: 56981963; Big: 10042); GC: 124
Aborted
*** This error is usually fixed by running `make clean`. If the error persists, try `make cleanall`. ***
make[3]: *** [Makefile:216: /home/lumin/packages/julia.pkg/julia/usr/lib/x86_64-linux-gnu/julia/sys-o.a] Error 1
make[3]: Leaving directory '/home/lumin/packages/julia.pkg/julia'
make[2]: *** [Makefile:78: julia-sysimg-release] Error 2
make[2]: Leaving directory '/home/lumin/packages/julia.pkg/julia'
dh_auto_build: make -j4 "INSTALL=install --strip-program=true" prefix=/usr sysconfdir=/etc DESTDIR=debian/tmp/ LLVM_CONFIG=/usr/bin/llvm-config-6.0 LLVM_VER=6.0 MULTIARCH=x86_64-linux-gnu MULTIARCH_INSTALL=1 NO_GIT=1 "TAGGED_RELEASE_BANNER=Debian ⛬  julia/0.7.0~rc2-1" USE_BLAS64=0 USE_LLVM_SHLIB=1 USE_SYSTEM_BLAS=1 USE_SYSTEM_CURL=1 USE_SYSTEM_DSFMT=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_GMP=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_LIBGIT2=1 USE_SYSTEM_LIBSSH2=1 USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_LIBUV=0 USE_SYSTEM_LLVM=1 USE_SYSTEM_MBEDTLS=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_OPENSPECFUN=1 USE_SYSTEM_PATCHELF=1 USE_SYSTEM_PCRE=1 USE_SYSTEM_SUITESPARSE=1 USE_SYSTEM_UTF8PROC=1 VERBOSE=1 MARCH=x86-64 USE_SYSTEM_OPENLIBM=1 USE_SYSTEM_LIBM=0 LIBBLAS=-lopenblas LIBBLASNAME=libopenblas LIBLAPACK=-lopenblas LIBLAPACKNAME=libopenblas returned exit code 2
make[1]: *** [debian/rules:114: override_dh_auto_build] Error 2
make[1]: Leaving directory '/home/lumin/packages/julia.pkg/julia'
make: *** [debian/rules:106: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
debuild: fatal error at line 1152:
dpkg-buildpackage -rfakeroot -us -uc -ui -i -j4 failed

julia version 0.7.0~rc2, gcc version gcc (Debian 8.1.0-9) 8.1.0, llvm version 1:6.0.1-2, system is Debian unstable.

@StefanKarpinski
Copy link
Member

This was with the system LLVM, not with Julia’s patched one? That’s not really supported. You get what you get if you don’t use our LLVM.

@PetrKryslUCSD
Copy link
Author

@JeffBezanson , @Keno , @StefanKarpinski : rc2 fixed this bug (only Win 10 tested so far).

@Keno Keno closed this as completed Aug 3, 2018
@cdluminate
Copy link
Contributor

@StefanKarpinski That failure comes from Debian's llvm-6.0 . I guess it misses this patch.

NLaws pushed a commit to NREL/REopt_API that referenced this issue May 7, 2021
trying to fix Garbage Collect segfault, maybe related to JuliaLang/julia#27952
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
Projects
None yet
Development

No branches or pull requests

6 participants