Public bug reported:

Quoth the proc(1) manpage:

              The format is:

        address           perms offset  dev   inode      pathname
        08048000-08056000 r-xp 00000000 03:0c 64593      /usr/sbin/gpm

In src/proc.c, preload parses the line as follows:

      count = sscanf (buffer, "%lx-%lx %*15s %lx %*u:%*u %*u
%"FILELENSTR"s",

The dev field is parsed as decimal integers, but they are actually
hexadecimals. As my root partition's dev happens to be fe:01, preload
doesn't find any executables, and thus doesn't really do anything.

The attached patch should fix the problem.

** Affects: preload (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
parses /proc/N/maps incorrectly, renders whole program nonfunctional
https://launchpad.net/bugs/62827

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to