<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Polly - isl_ctx freed, but some objects still reference it"
   href="http://llvm.org/bugs/show_bug.cgi?id=18422">18422</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Polly - isl_ctx freed, but some objects still reference it
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>snovak@uwsp.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=11844" name="attach_11844" title="Source">attachment 11844</a> <a href="attachment.cgi?id=11844&action=edit" title="Source">[details]</a></span>
Source

Compiling firefox with Polly enabled and received the following when compiling
libjpeg.

/Locals/clang/bin/clang -w -Xclang -load -Xclang
/Locals/clang/lib/LLVMPolly.dylib -mllvm -polly -mllvm -polly-vectorizer=bb
-mllvm -polly-optimizer=isl -mllvm -polly-code-generator=cloog -mllvm
-polly-run-dce -mllvm -polly-ast-detect-parallel=true -mllvm -polly-export
-mllvm -polly-opt-fusion=max -mllvm -polly-report -mllvm -polly-pluto-tile=true
-no-integrated-as -o jcparam.o -c -fvisibility=hidden -DNO_NSPR_10_SUPPORT
-I/Volumes/Storage/FirefoxCompile/FirefoxNightly/media/libjpeg -I. 
-I../../dist/include 
-I/Volumes/Storage/FirefoxCompile/FirefoxNightly/obj-ff-dbg/dist/include/nspr
-I/Volumes/Storage/FirefoxCompile/FirefoxNightly/obj-ff-dbg/dist/include/nss   
   -fPIC  -Qunused-arguments -I/Locals/clang/include
-I/Locals/clang/lib/clang/3.5/include -I/Locals/clang/lib/c++/
-I/Locals/clang/lib/c++/v1 -include ../../mozilla-config.h -DMOZILLA_CLIENT -MD
-MP -MF .deps/jcparam.o.pp -Qunused-arguments -I/Locals/clang/include
-I/Locals/clang/lib/clang/3.5/include -I/Locals/clang/lib/c++/
-I/Locals/clang/lib/c++/v1 -Qunused-arguments -Wall -Wpointer-arith
-Wdeclaration-after-statement -Werror=return-type -Wtype-limits -Wempty-body
-Wsign-compare -Wno-unused -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/
-march=native -std=gnu99 -fno-strict-aliasing -ffunction-sections
-fdata-sections -fno-math-errno -pthread -DNO_X11 -pipe  -DNDEBUG -DTRIMMED -O3
-fomit-frame-pointer  
/Volumes/Storage/FirefoxCompile/FirefoxNightly/media/libjpeg/jcparam.c
note: Polly detected an optimizable loop region (scop) in function
'jpeg_set_defaults'
Scop location is unknown. Compile with debug info (-g) to get more precise
information. 
Writing JScop 'for.body => for.end.region' in function 'jpeg_set_defaults' to
'./jpeg_set_defaults___%for.body---%for.end.region.jscop'.

note: Polly detected an optimizable loop region (scop) in function
'fill_dc_scans'
Scop location is unknown. Compile with debug info (-g) to get more precise
information. 
Writing JScop 'if.then => if.end' in function 'fill_dc_scans' to
'./fill_dc_scans___%if.then---%if.end.jscop'.

note: Polly detected an optimizable loop region (scop) in function 'fill_scans'
Scop location is unknown. Compile with debug info (-g) to get more precise
information. 
Writing JScop 'entry.split => for.end' in function 'fill_scans' to
'./fill_scans___%entry.split---%for.end.jscop'.

note: Polly detected an optimizable loop region (scop) in function
'add_huff_table'
Scop location is unknown. Compile with debug info (-g) to get more precise
information. 
Writing JScop 'for.inc => for.end.region' in function 'add_huff_table' to
'./add_huff_table___%for.inc---%for.end.region.jscop'.

isl_ctx.c:164: isl_ctx freed, but some objects still reference it
0  libLLVM-3.5svn.dylib 0x000000010416be78 llvm::sys::PrintStackTrace(__sFILE*)
+ 40
1  libLLVM-3.5svn.dylib 0x000000010416c3d4 SignalHandler(int) + 644
2  libsystem_c.dylib    0x00007fff8fd7b90a _sigtramp + 26
3  libsystem_c.dylib    000000000000000000 _sigtramp + 1881687824
4  libisl.10.dylib      0x0000000104ecb29d isl_ctx_free + 269
5  LLVMPolly.dylib      0x0000000104d7e48e polly::ScopInfo::~ScopInfo() + 62
6  libLLVM-3.5svn.dylib 0x0000000103c8273e
llvm::PMDataManager::~PMDataManager() + 62
7  libLLVM-3.5svn.dylib 0x0000000103936327
llvm::RGPassManager::~RGPassManager() + 119
8  libLLVM-3.5svn.dylib 0x0000000103c863ae
llvm::FPPassManager::~FPPassManager() + 62
9  libLLVM-3.5svn.dylib 0x0000000103c7fbbe
llvm::PMTopLevelManager::~PMTopLevelManager() + 62
10 libLLVM-3.5svn.dylib 0x0000000103c88a79
llvm::legacy::FunctionPassManagerImpl::~FunctionPassManagerImpl() + 25
11 libLLVM-3.5svn.dylib 0x0000000103c8658e
llvm::legacy::FunctionPassManagerImpl::~FunctionPassManagerImpl() + 14
12 libLLVM-3.5svn.dylib 0x0000000103c829d2
llvm::legacy::FunctionPassManager::~FunctionPassManager() + 34
13 clang                0x0000000102816545
std::vector<clang::serialization::ModuleFile*,
std::allocator<clang::serialization::ModuleFile*>
<span class="quote">>::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::serialization::ModuleFile**,</span >
std::vector<clang::serialization::ModuleFile*,
std::allocator<clang::serialization::ModuleFile*> > >,
clang::serialization::ModuleFile* const&) + 8981
14 clang                0x0000000102924c32
llvm::SmallVectorTemplateBase<llvm::DenseMap<clang::BaseSubobject, unsigned
long long, llvm::DenseMapInfo<clang::BaseSubobject> >, false>::grow(unsigned
long) + 27490
15 clang                0x000000010297b044
llvm::SmallVectorImpl<llvm::GlobalVariable*>::operator=(llvm::SmallVectorImpl<llvm::GlobalVariable*>
const&) + 85348
16 clang                0x0000000102923c50
llvm::SmallVectorTemplateBase<llvm::DenseMap<clang::BaseSubobject, unsigned
long long, llvm::DenseMapInfo<clang::BaseSubobject> >, false>::grow(unsigned
long) + 23424
17 clang                0x00000001026bfad7
std::_Rb_tree<clang::edit::FileOffset, std::pair<clang::edit::FileOffset const,
clang::edit::EditedSource::FileEdit>,
std::_Select1st<std::pair<clang::edit::FileOffset const,
clang::edit::EditedSource::FileEdit> >, std::less<clang::edit::FileOffset>,
std::allocator<std::pair<clang::edit::FileOffset const,
clang::edit::EditedSource::FileEdit> >
<span class="quote">>::_M_erase(std::_Rb_tree_node<std::pair<clang::edit::FileOffset const,</span >
clang::edit::EditedSource::FileEdit> >*) + 5575
18 clang                0x00000001026988dd
std::vector<clang::CompilerInstance*, std::allocator<clang::CompilerInstance*>
<span class="quote">>::_M_insert_aux(__gnu_cxx::__normal_iterator<clang::CompilerInstance**,</span >
std::vector<clang::CompilerInstance*, std::allocator<clang::CompilerInstance*>
<span class="quote">> >, clang::CompilerInstance* const&) + 15997</span >
19 clang                0x000000010266030d std::_Rb_tree<std::string,
std::string, std::_Identity<std::string>, std::less<std::string>,
std::allocator<std::string> >::_M_insert_unique(std::string const&) + 3533
20 clang                0x0000000102658285
21 clang                0x000000010265e639
std::vector<llvm::SourceMgr::SrcBuffer,
std::allocator<llvm::SourceMgr::SrcBuffer>
<span class="quote">>::_M_insert_aux(__gnu_cxx::__normal_iterator<llvm::SourceMgr::SrcBuffer*,</span >
std::vector<llvm::SourceMgr::SrcBuffer,
std::allocator<llvm::SourceMgr::SrcBuffer> > >, llvm::SourceMgr::SrcBuffer
const&) + 8889
22 libdyld.dylib        0x00007fff959ca7e1 start + 0
Stack dump:
0.    Program arguments: /Locals/clang/bin/clang -cc1 -triple
x86_64-apple-macosx10.6.0 -S -disable-free -main-file-name jcparam.c
-mrelocation-model pic -pic-level 2 -relaxed-aliasing -masm-verbose
-munwind-tables -target-cpu corei7-avx -target-linker-version 136
-ffunction-sections -fdata-sections -coverage-file
/var/folders/84/zfk84lnd0lz_9vr7bphnz6w40000gn/T/jcparam-890864.s -resource-dir
/Locals/clang/bin/../lib/clang/3.5 -dependency-file .deps/jcparam.o.pp -MT
jcparam.o -sys-header-deps -MP -include ../../mozilla-config.h -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/
-D NO_NSPR_10_SUPPORT -D MOZILLA_CLIENT -D NO_X11 -D NDEBUG -D TRIMMED -I
/Volumes/Storage/FirefoxCompile/FirefoxNightly/media/libjpeg -I . -I
../../dist/include -I
/Volumes/Storage/FirefoxCompile/FirefoxNightly/obj-ff-dbg/dist/include/nspr -I
/Volumes/Storage/FirefoxCompile/FirefoxNightly/obj-ff-dbg/dist/include/nss -I
/Locals/clang/include -I /Locals/clang/lib/clang/3.5/include -I
/Locals/clang/lib/c++/ -I /Locals/clang/lib/c++/v1 -I /Locals/clang/include -I
/Locals/clang/lib/clang/3.5/include -I /Locals/clang/lib/c++/ -I
/Locals/clang/lib/c++/v1 -O3 -Wall -Wpointer-arith
-Wdeclaration-after-statement -Werror=return-type -Wtype-limits -Wempty-body
-Wsign-compare -Wno-unused -w -std=gnu99 -fno-dwarf2-cfi-asm
-fno-dwarf-directory-asm -fno-autolink -fdebug-compilation-dir
/Volumes/Storage/FirefoxCompile/FirefoxNightly/obj-ff-dbg/media/libjpeg
-ferror-limit 19 -fmessage-length 239 -fvisibility hidden -pthread
-stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.6.0
-fencode-extended-block-signature -fdiagnostics-show-option -fcolor-diagnostics
-vectorize-loops -vectorize-slp -load /Locals/clang/lib/LLVMPolly.dylib -mllvm
-polly -mllvm -polly-vectorizer=bb -mllvm -polly-optimizer=isl -mllvm
-polly-code-generator=cloog -mllvm -polly-run-dce -mllvm
-polly-ast-detect-parallel=true -mllvm -polly-export -mllvm
-polly-opt-fusion=max -mllvm -polly-report -mllvm -polly-pluto-tile=true -o
/var/folders/84/zfk84lnd0lz_9vr7bphnz6w40000gn/T/jcparam-890864.s -x c
/Volumes/Storage/FirefoxCompile/FirefoxNightly/media/libjpeg/jcparam.c 
1.    <eof> parser at end of file
clang: error: unable to execute command: Abort trap: 6
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5 (trunk 198697)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>