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

@which does not work with fully qualified "symbol" #14637

Closed
mauro3 opened this issue Jan 11, 2016 · 4 comments · Fixed by #35522
Closed

@which does not work with fully qualified "symbol" #14637

mauro3 opened this issue Jan 11, 2016 · 4 comments · Fixed by #35522

Comments

@mauro3
Copy link
Contributor

mauro3 commented Jan 11, 2016

julia> @which Base.sin
ERROR: ArgumentError: argument is not a generic function
 in methods at reflection.jl:140
 in which at ./reflection.jl:292

expected outcome

julia> @which Base.sin
Base
@mauro3
Copy link
Contributor Author

mauro3 commented Jul 22, 2016

Oh, this segfaults now:

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.0-pre+5610 (2016-07-22 07:51 UTC)
 _/ |\__'_|_|_|\__'_|  |  m3/function_module/58ca87b* (fork: 1 commits, 0 days)
|__/                   |  x86_64-pc-linux-gnu

julia> @which Base.sin

signal (11): Segmentation fault
while loading no file, in expression starting on line 0
jl_f_tuple at /home/mauro/julia/julialang_upstream/src/builtins.c:648
eval_user_input at ./REPL.jl:74
jl_call_method_internal at /home/mauro/julia/julialang_upstream/src/julia_internal.h:177 [inlined]
jl_apply_generic at /home/mauro/julia/julialang_upstream/src/gf.c:2034
macro expansion at ./REPL.jl:92 [inlined]
#3 at ./event.jl:46
jl_call_method_internal at /home/mauro/julia/julialang_upstream/src/julia_internal.h:177 [inlined]
jl_apply_generic at /home/mauro/julia/julialang_upstream/src/gf.c:2034
jl_apply at /home/mauro/julia/julialang_upstream/src/julia.h:1394 [inlined]
start_task at /home/mauro/julia/julialang_upstream/src/task.c:253
unknown function (ip: 0xffffffffffffffff)
Allocations: 1683741 (Pool: 1682795; Big: 946); GC: 0
zsh: segmentation fault (core dumped)  julia5

@tkelman
Copy link
Contributor

tkelman commented Jul 22, 2016

related to #15606 ?

@mauro3
Copy link
Contributor Author

mauro3 commented Jul 22, 2016

Yes, it looks like it. So presumably, once that is fixed the old error should resurface...

@mauro3
Copy link
Contributor Author

mauro3 commented Jan 17, 2018

Now this shows (0.7):

julia> @which Base.sin                                                                                                                                                   
getproperty(x::Module, f::Symbol) in Base at sysimg.jl:14                                                                                                                

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

Successfully merging a pull request may close this issue.

2 participants