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

            Bug ID: 514206
           Summary: Assertion '!sr_isError(sr)' failed - mmap fd points to
                    an open descriptor to a PCI device
    Classification: Developer tools
           Product: valgrind
      Version First 3.24.0
       Reported In:
          Platform: RedHat Enterprise Linux
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: memcheck
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Our binary mmap()'s a PCI device
(/sys/devices/pci0000:80/0000:80:01.0/0000:81:00.0/resource0), but Rocky9
returns errno 5 if one tries to pread() that descriptor. This causes the
sr_isError(sr) assertion when we run Valgrindm since it can't peek the
descriptor. I verified fd flags such as O_DIRECT don't matter here.

 I'm not sure if this is due to more strict kernel policies, but our team
currently only observes this behavior on Rocky9. I was hoping to open a bug to
see if there was a future way to tweak the ELF / DWARF checks, as there's no
way for me to make this work without compiling a patch to skip the ELF check
logic.

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

Reply via email to