opentelemetry-go-instrumentation icon indicating copy to clipboard operation
opentelemetry-go-instrumentation copied to clipboard

Can't find find keyval map in analyze findKeyvalMmap

Open yfractal opened this issue 2 years ago • 0 comments

Expected Behavior

Read memory maps.

Actual Behavior

Can't find memory mapping as as all mapping has been filtered out.

Steps to Reproduce the Problem

The maps of the go lang program as below

00400000-00623000 r-xp 00000000 fd:00 1048990                            /home/vagrant/go-http-demo/main
00623000-00822000 r--p 00223000 fd:00 1048990                            /home/vagrant/go-http-demo/main
00822000-00860000 rw-p 00422000 fd:00 1048990                            /home/vagrant/go-http-demo/main
00860000-00899000 rw-p 00000000 00:00 0
02061000-02082000 rw-p 00000000 00:00 0                                  [heap]
c000000000-c000400000 rw-p 00000000 00:00 0
...
7f32e948f000-7f32e94b7000 r--p 00000000 fd:00 525141                     /usr/lib/x86_64-linux-gnu/libc.so.6
...
7f32e96aa000-7f32e96b7000 rw-p 00000000 00:00 0
7f32e96be000-7f32e96c0000 rw-p 00000000 00:00 0
7f32e96c0000-7f32e96c2000 r--p 00000000 fd:00 524900                     /usr/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
...
7ffe501e6000-7ffe50207000 rw-p 00000000 00:00 0                          [stack]
7ffe50311000-7ffe50315000 r--p 00000000 00:00 0                          [vvar]
7ffe50315000-7ffe50317000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0                  [vsyscall]

so no map will be fond as m.Perms != nil && m.Perms.Read && m.Perms.Write && m.Perms.Execute required in findKeyvalMmap.

Additional Info

  • vagrant box:

https://app.vagrantup.com/bento/boxes/ubuntu-22.04

  • operation-system/kernel version:

    Output of awk -F '=' '/PRETTY_NAME/ { print $2 }' /etc/os-release: Output of uname -r:

    Ubuntu 22.04.1 LTS
    5.15.0-30-generic
    

yfractal avatar Oct 18 '22 13:10 yfractal