#115 changing binaries can cause oprofiled to abort

closed-fixed
nobody
None
8
2004-07-15
2004-04-08
John Levon
No

Some debugging showed we had two different cookies that
pointed to /bin/bash
and that we set up two separate struct sfiles (both
pointing to the same
sample file):

cookie c035e2a0
/var/lib/oprofile/samples/current/{root}//bin/bash/{dep}/{root}//bin/bash/TIMER.0.0.all.all.all

cookie d7bddf20
/var/lib/oprofile/samples/current/{root}//bin/bash/{dep}/{root}//bin/bash/TIMER.0.0.all.all.all

The installed version of bash has an inode number of
1501678:

# ls -li /bin/bash
1501678 -rwxr-xr-x 1 root root 733508 Feb
23 00:42 /bin/bash

And it turns out not everyone who has /bin/bash open
has that inode:

# cat /proc/8795/maps | grep bash
10000000-100a6000 r-xp 00000000 03:0c 1501678 /bin/bash

# cat /proc/1202/maps | grep bash
10000000-100a6000 r-xp 00000000 03:0c 2187594 /bin/bash

This is a general problem.

Discussion

  • John Levon
    John Levon
    2004-05-29

    • status: open --> open-fixed
     
  • John Levon
    John Levon
    2004-07-15

    • status: open-fixed --> closed-fixed