[llvm-bugs] [Bug 50620] New: llvm-exegsis - X86LbrCounter destructor double closes a file descriptor

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 8 09:06:33 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50620

            Bug ID: 50620
           Summary: llvm-exegsis - X86LbrCounter destructor double closes
                    a file descriptor
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-exegesis
          Assignee: unassignedbugs at nondot.org
          Reporter: llvm-dev at redking.me.uk
                CC: clement.courbet at gmail.com, gchatelet at google.com,
                    llvm-bugs at lists.llvm.org

class X86LbrCounter : public pfm::Counter;

X86LbrCounter::~X86LbrCounter() { close(FileDescriptor); }

Counter::~Counter() { close(FileDescriptor); }

The same FileDescriptor is closed both in ~X86LbrCounter() and then in the
~Counter() parent destructor.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210608/6d089056/attachment.html>


More information about the llvm-bugs mailing list