#69 /dev/mem showed as binary image

closed-fixed
nobody
None
7
2002-07-25
2002-07-22
No

when profiling with --separate-samples op_time report

119028 40.1100 0.0000 /dev/mem
524 0.1766 0.0000 /lib/libc-2.2.5.so

ls /var/lib/oproifile/samples/*mem*
/var/lib/oprofile/samples/}dev}mem}}}lib}libc-2.2.5.so#0

problem uncovered by puetzk (visible often on
irc.openprojects.net)
with kernel 2.4.19-rc1-ac5 repoducible with on 2.4.18

root@zaniah # cat /proc/`pidof X`/maps
000a0000-000c0000 rwxs 000a0000 03:08 294448 /dev/mem
000f0000-00100000 rwxs 000f0000 03:08 294448 /dev/mem
08048000-0818d000 r-xp 00000000 03:08 426884
/usr/X11R6/bin/XFree86
0818d000-081bd000 rw-p 00144000 03:08 426884
/usr/X11R6/bin/XFree86

so our assumption than the first map is the binary
application is
wrong. The right access for the first map is not valid
for exec "rwxs"
so we can work-around.

John can you get a look at this ?

regards,
Phil

Discussion

  • Philippe Elie

    Philippe Elie - 2002-07-22
    • status: open --> open-fixed
     
  • John Levon

    John Levon - 2002-07-25
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks