[llvm-bugs] [Bug 28118] New: BrainF: double free at exit
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Mon Jun 13 22:10:07 PDT 2016
    
    
  
https://llvm.org/bugs/show_bug.cgi?id=28118
            Bug ID: 28118
           Summary: BrainF: double free at exit
           Product: new-bugs
           Version: 3.8
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: vvort at yandex.ru
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified
The problem is located in file "examples\BrainF\BrainFDriver.cpp".
Variable std::unique_ptr<Module> Mod gets deleted twice:
1. In main(): with llvm_shutdown() call.
2. After main(): when destructor for unique_ptr is called.
This can be fixed with adding exit(0) call right before return 0 line, but I
hope you will find a better solution.
This program was built in debug mode using Visual Studio 2013 compiler.
-- 
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/20160614/cfbfeb3a/attachment.html>
    
    
More information about the llvm-bugs
mailing list