Going back to the old ptrace method did this for me.
First, from the command line when starting the root user:
echo 0 >/proc/sys/kernel/yama/ptrace_scope
After that, see must parse everything that it cannot decompile. Command line example (not necessarily root):
gforth -e "see + bye"
Output:
Code + 0x000055a9bf6dad66 <gforth_engine+2454>: mov %r14,0x21abf3(%rip) # 0x55a9bf8f5960 <saved_ip> 0x000055a9bf6dad6d <gforth_engine+2461>: lea 0x8(%r13),%rax 0x000055a9bf6dad71 <gforth_engine+2465>: mov 0x0(%r13),%rdx 0x000055a9bf6dad75 <gforth_engine+2469>: add $0x8,%r14 0x000055a9bf6dad79 <gforth_engine+2473>: add %rdx,(%rax) 0x000055a9bf6dad7c <gforth_engine+2476>: mov %rax,%r13 0x000055a9bf6dad7f <gforth_engine+2479>: mov -0x8(%r14),%rcx 0x000055a9bf6dad83 <gforth_engine+2483>: jmpq *%rcx end-code
Credit: Anton Earl
source share