[LLVMbugs] [Bug 14504] New: crash in llvm::sys::fs::detail::directory_iterator_increment

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 4 03:26:10 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14504

             Bug #: 14504
           Summary: crash in
                    llvm::sys::fs::detail::directory_iterator_increment
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: max at duempel.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


clang++ trunk 169254 crashes instantly:

clang - </dev/null 
*** glibc detected *** clang: double free or corruption (out):
0x0000000003ade440 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x76d76)[0x7f5020c9dd76]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7f5020ca2aac]
/lib/x86_64-linux-gnu/libc.so.6(closedir+0xd)[0x7f5020ccec2d]
clang(_ZN4llvm3sys2fs6detail28directory_iterator_incrementERNS2_12DirIterStateE+0x89)[0x1d738f9]
clang[0x6de0b2]
clang[0x6dc5b5]
clang[0x6de63e]
clang[0x6e0ee6]
clang(_ZNK5clang6driver6Driver12getToolChainERKNS0_7ArgListEN4llvm9StringRefE+0x4ef)[0x6c75af]
clang(_ZN5clang6driver6Driver16BuildCompilationEN4llvm8ArrayRefIPKcEE+0x5c8)[0x6c6ed8]
clang(main+0x2a0a)[0x62f99a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd)[0x7f5020c45ead]
clang[0x6284c9]
======= Memory map: ========
00400000-0250b000 r-xp 00000000 08:02 1968367                           
/usr/local/stow/llvm/bin/clang
0250b000-0264a000 rw-p 0210b000 08:02 1968367                           
/usr/local/stow/llvm/bin/clang
0264a000-02657000 rw-p 00000000 00:00 0 
03adc000-03afd000 rw-p 00000000 00:00 0                                  [heap]
7f501c000000-7f501c021000 rw-p 00000000 00:00 0 
7f501c021000-7f5020000000 ---p 00000000 00:00 0 
7f5020c27000-7f5020da7000 r-xp 00000000 08:02 2884204                   
/lib/x86_64-linux-gnu/libc-2.13.so
7f5020da7000-7f5020fa7000 ---p 00180000 08:02 2884204                   
/lib/x86_64-linux-gnu/libc-2.13.so
7f5020fa7000-7f5020fab000 r--p 00180000 08:02 2884204                   
/lib/x86_64-linux-gnu/libc-2.13.so
7f5020fab000-7f5020fac000 rw-p 00184000 08:02 2884204                   
/lib/x86_64-linux-gnu/libc-2.13.so
7f5020fac000-7f5020fb1000 rw-p 00000000 00:00 0 
7f5020fb1000-7f5020fc6000 r-xp 00000000 08:02 2885438                   
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f5020fc6000-7f50211c6000 ---p 00015000 08:02 2885438                   
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f50211c6000-7f50211c7000 rw-p 00015000 08:02 2885438                   
/lib/x86_64-linux-gnu/libgcc_s.so.1
7f50211c7000-7f50212af000 r-xp 00000000 08:02 3014742                   
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17
7f50212af000-7f50214af000 ---p 000e8000 08:02 3014742                   
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17
7f50214af000-7f50214b7000 r--p 000e8000 08:02 3014742                   
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17
7f50214b7000-7f50214b9000 rw-p 000f0000 08:02 3014742                   
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17
7f50214b9000-7f50214ce000 rw-p 00000000 00:00 0 
7f50214ce000-7f502154f000 r-xp 00000000 08:02 2885139                   
/lib/x86_64-linux-gnu/libm-2.13.so
7f502154f000-7f502174e000 ---p 00081000 08:02 2885139                   
/lib/x86_64-linux-gnu/libm-2.13.so
7f502174e000-7f502174f000 r--p 00080000 08:02 2885139                   
/lib/x86_64-linux-gnu/libm-2.13.so
7f502174f000-7f5021750000 rw-p 00081000 08:02 2885139                   
/lib/x86_64-linux-gnu/libm-2.13.so
7f5021750000-7f5021752000 r-xp 00000000 08:02 2885149                   
/lib/x86_64-linux-gnu/libdl-2.13.so
7f5021752000-7f5021952000 ---p 00002000 08:02 2885149                   
/lib/x86_64-linux-gnu/libdl-2.13.so
7f5021952000-7f5021953000 r--p 00002000 08:02 2885149                   
/lib/x86_64-linux-gnu/libdl-2.13.so
7f5021953000-7f5021954000 rw-p 00003000 08:02 2885149                   
/lib/x86_64-linux-gnu/libdl-2.13.so
7f5021954000-7f502196b000 r-xp 00000000 08:02 2885153                   
/lib/x86_64-linux-gnu/libpthread-2.13.so
7f502196b000-7f5021b6a000 ---p 00017000 08:02 2885153                   
/lib/x86_64-linux-gnu/libpthread-2.13.so
7f5021b6a000-7f5021b6b000 r--p 00016000 08:02 2885153                   
/lib/x86_64-linux-gnu/libpthread-2.13.so
7f5021b6b000-7f5021b6c000 rw-p 00017000 08:02 2885153                   
/lib/x86_64-linux-gnu/libpthread-2.13.so
7f5021b6c000-7f5021b70000 rw-p 00000000 00:00 0 
7f5021b70000-7f5021b90000 r-xp 00000000 08:02 2885159                   
/lib/x86_64-linux-gnu/ld-2.13.so
7f5021d63000-7f5021d69000 rw-p 00000000 00:00 0 
7f5021d8d000-7f5021d8f000 rw-p 00000000 00:00 0 
7f5021d8f000-7f5021d90000 r--p 0001f000 08:02 2885159                   
/lib/x86_64-linux-gnu/ld-2.13.so
7f5021d90000-7f5021d91000 rw-p 00020000 08:02 2885159                   
/lib/x86_64-linux-gnu/ld-2.13.so
7f5021d91000-7f5021d92000 rw-p 00000000 00:00 0 
7fffef257000-7fffef278000 rw-p 00000000 00:00 0                         
[stack]
7fffef381000-7fffef382000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]
0  clang           0x0000000001d770c2
1  clang           0x0000000001d77553
2  libpthread.so.0 0x00007f5021963030
3  libc.so.6       0x00007f5020c59475 gsignal + 53
4  libc.so.6       0x00007f5020c5c6f0 abort + 384
5  libc.so.6       0x00007f5020c9452b
6  libc.so.6       0x00007f5020c9dd76
7  libc.so.6       0x00007f5020ca2aac cfree + 108
8  libc.so.6       0x00007f5020ccec2d closedir + 13
9  clang           0x0000000001d738f9
llvm::sys::fs::detail::directory_iterator_increment(llvm::sys::fs::detail::DirIterState&)
+ 137
10 clang           0x00000000006de0b2
11 clang           0x00000000006dc5b5
12 clang           0x00000000006de63e
13 clang           0x00000000006e0ee6
14 clang           0x00000000006c75af
clang::driver::Driver::getToolChain(clang::driver::ArgList const&,
llvm::StringRef) const + 1263
15 clang           0x00000000006c6ed8
clang::driver::Driver::BuildCompilation(llvm::ArrayRef<char const*>) + 1480
16 clang           0x000000000062f99a main + 10762
17 libc.so.6       0x00007f5020c45ead __libc_start_main + 253
18 clang           0x00000000006284c9
Stack dump:
0.      Program arguments: clang - 
1.      Compilation construction
Aborted

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list