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: unassignedb...@nondot.org
          Reporter: llvm-...@redking.me.uk
                CC: clement.cour...@gmail.com, gchate...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to