https://bugs.kde.org/show_bug.cgi?id=493433

            Bug ID: 493433
           Summary: Add a new fds only mode to --track-fds
    Classification: Developer tools
           Product: valgrind
           Version: 3.22 GIT
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jsew...@acm.org
          Reporter: m...@klomp.org
                CC: ahajk...@redhat.com
  Target Milestone: ---

Normally a newly recreated file descriptor gets the lowest available number. 
This might cause old file descriptor numbers to be reused and hides bad file
descriptor accesses (because the old number is new again).

It would be nice to have a mode where valgrind makes sure new file descriptors
always get a new, not yet used before number. This might be implemented by
making record_fd_open* return a new file descriptor (by dupping the given file
descriptor only a higher never used before number and closing the one returned
from the kernel) and returning that to the application.

We might have to make an exception for file descriptors 0, 1, 2 which programs
might explicitly want to reassign.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to