LinuxPerf.jl icon indicating copy to clipboard operation
LinuxPerf.jl copied to clipboard

ioctl: Bad file descriptor

Open fcdimitr opened this issue 4 years ago • 0 comments

The SystemError

ERROR: SystemError: ioctl: Bad file descriptor
Stacktrace:
 [1] systemerror(p::Symbol, errno::Int32; extrainfo::Nothing)
   @ Base ./error.jl:168
 [2] #systemerror#62
   @ ./error.jl:167 [inlined]
 [3] systemerror
   @ ./error.jl:167 [inlined]
 [4] ioctl
   @ ~/.julia/packages/LinuxPerf/ZE1fQ/src/LinuxPerf.jl:331 [inlined]
 [5] reset!
   @ ~/.julia/packages/LinuxPerf/ZE1fQ/src/LinuxPerf.jl:337 [inlined]
 [6] LinuxPerf.EventGroup(types::Vector{LinuxPerf.EventType}; warn_unsupported::Bool, userspace_only::Bool, pinned::Bool, exclusive::Bool, pid::Int32)
   @ LinuxPerf ~/.julia/packages/LinuxPerf/ZE1fQ/src/LinuxPerf.jl:310
 [7] EventGroup
   @ ~/.julia/packages/LinuxPerf/ZE1fQ/src/LinuxPerf.jl:235 [inlined]
 [8] make_bench(x::Vector{Any})
   @ LinuxPerf ~/.julia/packages/LinuxPerf/ZE1fQ/src/LinuxPerf.jl:415
 [9] top-level scope
   @ ~/.julia/packages/LinuxPerf/ZE1fQ/src/LinuxPerf.jl:21

is thrown when trying to run the example shown in the README.md. I am running Ubuntu 16.04.5 LTS, with an AMD Ryzen CPU. I start Julia using sudo, to make sure it is not a permission issue.

Is there any known fixes for this error?

Many thanks in advance.

fcdimitr avatar May 31 '21 11:05 fcdimitr