| Bug ID | 15645 |
|---|---|
| Summary | isl memory crash during isl_map_free |
| Product | Projects |
| Version | 3.2 |
| Hardware | PC |
| OS | Linux |
| Status | NEW |
| Severity | normal |
| Priority | P |
| Component | Polly |
| Assignee | poll...@googlegroups.com |
| Reporter | johannes...@gmx.de |
| Classification | Unclassified |
Created attachment 10268 [details] Small testcase Polly/isl crashes when running: opt -polly-ignore-aliasing -polly-codegen -polly-opt-isl crash-isl-map-free.ll The crash is in libc.so (during a call to free) so I'm not sure if its reproducible on other systems. Polly git: 331e829324157cca54491d268410f8ee2d33cd65 Cloog git: c7721fc941db89dd1afc6240eaceea46d0bcad17 isl git: 9f82ab3cd18ac34f883c30594111e4eb17426e11 *** Error in `opt': invalid fastbin entry (free): 0x00000000038dc220 *** ======= Backtrace: ========= /usr/lib/libc.so.6(+0x7ab06)[0x7f22ffb27b06] /usr/lib/libc.so.6(+0x7b883)[0x7f22ffb28883] /home/johannes/git/POLLY/install/lib/libisl.so.10(isl_map_free+0x87)[0x7f22ff42fd77] /home/johannes/git/POLLY/install/lib/libisl.so.10(+0x983fb)[0x7f22ff4313fb] install/lib/LLVMPolly.so(+0xe71e3)[0x7f22ff7b71e3] install/lib/LLVMPolly.so(+0xe81b6)[0x7f22ff7b81b6] install/lib/LLVMPolly.so(_ZN5polly8ScopPass11runOnRegionEPN4llvm6RegionERNS1_13RGPassManagerE+0x72)[0x7f22ff7db946] opt(_ZN4llvm13RGPassManager13runOnFunctionERNS_8FunctionE+0x380)[0x151ea44] opt(_ZN4llvm13FPPassManager13runOnFunctionERNS_8FunctionE+0x181)[0x167cf29] opt(_ZN4llvm13FPPassManager11runOnModuleERNS_6ModuleE+0x54)[0x167d11a] opt(_ZN4llvm13MPPassManager11runOnModuleERNS_6ModuleE+0x22f)[0x167d477] opt(_ZN4llvm15PassManagerImpl3runERNS_6ModuleE+0xf9)[0x167da79] opt(_ZN4llvm11PassManager3runERNS_6ModuleE+0x27)[0x167dc8b] opt(main+0x1562)[0x8bdf05] /usr/lib/libc.so.6(__libc_start_main+0xf5)[0x7f22ffacea15] opt[0x8afcd9] ======= Memory map: ======== 00400000-0239d000 r-xp 00000000 08:06 11510005 /home/johannes/git/POLLY/install/bin/opt 0259d000-02690000 rw-p 01f9d000 08:06 11510005 /home/johannes/git/POLLY/install/bin/opt 02690000-026a0000 rw-p 00000000 00:00 0 0388e000-038f1000 rw-p 00000000 00:00 0 [heap] 7f22feefb000-7f22fef22000 r-xp 00000000 08:06 11510221 /home/johannes/git/POLLY/install/lib/libcloog-isl.so.3.0.0 7f22fef22000-7f22ff121000 ---p 00027000 08:06 11510221 /home/johannes/git/POLLY/install/lib/libcloog-isl.so.3.0.0 7f22ff121000-7f22ff123000 rw-p 00026000 08:06 11510221 /home/johannes/git/POLLY/install/lib/libcloog-isl.so.3.0.0 7f22ff123000-7f22ff190000 r-xp 00000000 08:03 149527 /usr/lib/libgmp.so.10.1.1 7f22ff190000-7f22ff38f000 ---p 0006d000 08:03 149527 /usr/lib/libgmp.so.10.1.1 7f22ff38f000-7f22ff390000 r--p 0006c000 08:03 149527 /usr/lib/libgmp.so.10.1.1 7f22ff390000-7f22ff399000 rw-p 0006d000 08:03 149527 /usr/lib/libgmp.so.10.1.1 7f22ff399000-7f22ff4ca000 r-xp 00000000 08:06 11510215 /home/johannes/git/POLLY/install/lib/libisl.so.10.1.0 7f22ff4ca000-7f22ff6ca000 ---p 00131000 08:06 11510215 /home/johannes/git/POLLY/install/lib/libisl.so.10.1.0 7f22ff6ca000-7f22ff6d0000 rw-p 00131000 08:06 11510215 /home/johannes/git/POLLY/install/lib/libisl.so.10.1.0 7f22ff6d0000-7f22ff8a1000 r-xp 00000000 08:06 11510205 /home/johannes/git/POLLY/install/lib/LLVMPolly.so 7f22ff8a1000-7f22ffaa0000 ---p 001d1000 08:06 11510205 /home/johannes/git/POLLY/install/lib/LLVMPolly.so 7f22ffaa0000-7f22ffaac000 rw-p 001d0000 08:06 11510205 /home/johannes/git/POLLY/install/lib/LLVMPolly.so 7f22ffaac000-7f22ffaad000 rw-p 00000000 00:00 0 7f22ffaad000-7f22ffc51000 r-xp 00000000 08:03 146910 /usr/lib/libc-2.17.so 7f22ffc51000-7f22ffe50000 ---p 001a4000 08:03 146910 /usr/lib/libc-2.17.so 7f22ffe50000-7f22ffe54000 r--p 001a3000 08:03 146910 /usr/lib/libc-2.17.so 7f22ffe54000-7f22ffe56000 rw-p 001a7000 08:03 146910 /usr/lib/libc-2.17.so 7f22ffe56000-7f22ffe5a000 rw-p 00000000 00:00 0 7f22ffe5a000-7f22ffe6f000 r-xp 00000000 08:03 147170 /usr/lib/libgcc_s.so.1 7f22ffe6f000-7f230006e000 ---p 00015000 08:03 147170 /usr/lib/libgcc_s.so.1 7f230006e000-7f230006f000 rw-p 00014000 08:03 147170 /usr/lib/libgcc_s.so.1 7f230006f000-7f230016c000 r-xp 00000000 08:03 146912 /usr/lib/libm-2.17.so 7f230016c000-7f230036b000 ---p 000fd000 08:03 146912 /usr/lib/libm-2.17.so 7f230036b000-7f230036c000 r--p 000fc000 08:03 146912 /usr/lib/libm-2.17.so 7f230036c000-7f230036d000 rw-p 000fd000 08:03 146912 /usr/lib/libm-2.17.so 7f230036d000-7f2300452000 r-xp 00000000 08:03 147175 /usr/lib/libstdc++.so.6.0.17 7f2300452000-7f2300651000 ---p 000e5000 08:03 147175 /usr/lib/libstdc++.so.6.0.17 7f2300651000-7f2300659000 r--p 000e4000 08:03 147175 /usr/lib/libstdc++.so.6.0.17 7f2300659000-7f230065b000 rw-p 000ec000 08:03 147175 /usr/lib/libstdc++.so.6.0.17 7f230065b000-7f2300670000 rw-p 00000000 00:00 0 7f2300670000-7f2300687000 r-xp 00000000 08:03 146952 /usr/lib/libpthread-2.17.so 7f2300687000-7f2300886000 ---p 00017000 08:03 146952 /usr/lib/libpthread-2.17.so 7f2300886000-7f2300887000 r--p 00016000 08:03 146952 /usr/lib/libpthread-2.17.so 7f2300887000-7f2300888000 rw-p 00017000 08:03 146952 /usr/lib/libpthread-2.17.so 7f2300888000-7f230088c000 rw-p 00000000 00:00 0 7f230088c000-7f230088f000 r-xp 00000000 08:03 146958 /usr/lib/libdl-2.17.so 7f230088f000-7f2300a8e000 ---p 00003000 08:03 146958 /usr/lib/libdl-2.17.so 7f2300a8e000-7f2300a8f000 r--p 00002000 08:03 146958 /usr/lib/libdl-2.17.so 7f2300a8f000-7f2300a90000 rw-p 00003000 08:03 146958 /usr/lib/libdl-2.17.so 7f2300a90000-7f2300a97000 r-xp 00000000 08:03 146913 /usr/lib/librt-2.17.so 7f2300a97000-7f2300c96000 ---p 00007000 08:03 146913 /usr/lib/librt-2.17.so 7f2300c96000-7f2300c97000 r--p 00006000 08:03 146913 /usr/lib/librt-2.17.so 7f2300c97000-7f2300c98000 rw-p 00007000 08:03 146913 /usr/lib/librt-2.17.so 7f2300c98000-7f2300cb9000 r-xp 00000000 08:03 146954 /usr/lib/ld-2.17.so 7f2300e8a000-7f2300e91000 rw-p 00000000 00:00 0 7f2300eb8000-7f2300eb9000 rw-p 00000000 00:00 0 7f2300eb9000-7f2300eba000 r--p 00021000 08:03 146954 /usr/lib/ld-2.17.so 7f2300eba000-7f2300ebb000 rw-p 00022000 08:03 146954 /usr/lib/ld-2.17.so 7f2300ebb000-7f2300ebc000 rw-p 00000000 00:00 0 7fff6bf72000-7fff6bf93000 rw-p 00000000 00:00 0 [stack] 7fff6bfde000-7fff6bfdf000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] 0 opt 0x000000000177ea6a llvm::sys::PrintStackTrace(_IO_FILE*) + 38 1 opt 0x000000000177ecf1 2 opt 0x000000000177e740 3 libpthread.so.0 0x00007f230067f1e0 4 libc.so.6 0x00007f22ffae22c5 gsignal + 53 5 libc.so.6 0x00007f22ffae3748 abort + 328 6 libc.so.6 0x00007f22ffb21f7b 7 libc.so.6 0x00007f22ffb27b06 8 libc.so.6 0x00007f22ffb28883 9 libisl.so.10 0x00007f22ff42fd77 isl_map_free + 135 10 libisl.so.10 0x00007f22ff4313fb 11 LLVMPolly.so 0x00007f22ff7b71e3 12 LLVMPolly.so 0x00007f22ff7b81b6 13 LLVMPolly.so 0x00007f22ff7db946 polly::ScopPass::runOnRegion(llvm::Region*, llvm::RGPassManager&) + 114 14 opt 0x000000000151ea44 llvm::RGPassManager::runOnFunction(llvm::Function&) + 896 15 opt 0x000000000167cf29 llvm::FPPassManager::runOnFunction(llvm::Function&) + 385 16 opt 0x000000000167d11a llvm::FPPassManager::runOnModule(llvm::Module&) + 84 17 opt 0x000000000167d477 llvm::MPPassManager::runOnModule(llvm::Module&) + 559 18 opt 0x000000000167da79 llvm::PassManagerImpl::run(llvm::Module&) + 249 19 opt 0x000000000167dc8b llvm::PassManager::run(llvm::Module&) + 39 20 opt 0x00000000008bdf05 main + 5474 21 libc.so.6 0x00007f22ffacea15 __libc_start_main + 245 22 opt 0x00000000008afcd9 Stack dump: 0. Program arguments: opt --load install/lib/LLVMPolly.so -polly-ignore-aliasing crash-isl-map-free.ll -polly-codegen -polly-opt-isl 1. Running pass 'Function Pass Manager' on module 'crash-isl-map-free.ll'. 2. Running pass 'Region Pass Manager' on function '@compute_and_combination' 3. Running pass 'Polly - Optimize schedule of SCoP' on basic block '%for.cond_CT_' [1] 682 abort (core dumped) opt --load install/lib/LLVMPolly.so -polly-ignore-aliasing -polly-codegen
| What | Removed | Added |
|---|---|---|
| Status | NEW | RESOLVED |
| CC | gro...@fim.uni-passau.de | |
| Resolution | --- | FIXED |