-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 on method error #24122
Comments
That's pretty much expected. Internals like pointer arithmetic uses *(::Int, ::Int), so redefining that to something else pretty much needs to segfault... |
hmm 🤔 ... the original case is
but I do not think Flux redefine |
So, what was the reason you put that in your first post? |
just found it crashed as well, and guess the cause is the same... |
Lol, unfortunately Julia will segfault for more than one reason. Reopening to reflect the real issue. |
└─[iblis@kaladbolg Oops]% julia -e 'using Flux; struct A end; A() * 1'
ERROR:
signal (11): Segmentation fault
while loading no file, in expression starting on line 0
jl_egal at /home/iblis/git/julia06/src/builtins.c:114
show at ./show.jl:1099
show at ./show.jl:208
unknown function (ip: 0x7f10f7d0ea1f)
jl_call_fptr_internal at /home/iblis/git/julia06/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/iblis/git/julia06/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/iblis/git/julia06/src/gf.c:1926
print at ./strings/io.jl:29
unknown function (ip: 0x7f10e8062e26)
jl_call_fptr_internal at /home/iblis/git/julia06/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/iblis/git/julia06/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/iblis/git/julia06/src/gf.c:1926
#print_to_string#229 at ./strings/io.jl:102
jl_call_fptr_internal at /home/iblis/git/julia06/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/iblis/git/julia06/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/iblis/git/julia06/src/gf.c:1926
string at ./strings/io.jl:120
jl_call_fptr_internal at /home/iblis/git/julia06/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/iblis/git/julia06/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/iblis/git/julia06/src/gf.c:1926
show_method_candidates at ./replutil.jl:511
unknown function (ip: 0x7f10e806187d)
jl_call_fptr_internal at /home/iblis/git/julia06/src/julia_internal.h:339 [inlined]
jl_call_method_internal at /home/iblis/git/julia06/src/julia_internal.h:358 [inlined]
jl_apply_generic at /home/iblis/git/julia06/src/gf.c:1926
showerror at ./replutil.jl:415
#476 at ./replutil.jl:213
... |
Reminds me of #22842. |
With Julia 0.6.1-pre.92 and Flux 0.3.2, I get the expected |
Julia 0.6.1-pre.92 and Flux master (83cc77c) got randomly crashing.
|
well, got same error during |
Hm, I still don't see the crash with the versions you gave, where |
Before patching, it does not crash... I ran it more than 10 times, no crashing.
After patching, it does not run into any crash with |
Won't make it into 0.6.1 but we can always do a 0.6.2. |
Got segault on master (39f668c) and 0.6.1-pre.92
I expect it will throw
MethodError
.[removed spurious issue – mike]
The text was updated successfully, but these errors were encountered: