[LLVMbugs] [Bug 12143] New: glibc detected *** /usr/bin/clang: double free or corruption (!prev): 0x0000000002470300

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 29 14:42:33 PST 2012


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

             Bug #: 12143
           Summary: glibc detected *** /usr/bin/clang: double free or
                    corruption (!prev): 0x0000000002470300
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: vhaisman at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I have seen the following error at one point when I was reducing the test case
for PR 12141:

*** glibc detected *** /usr/bin/clang: double free or corruption (!prev):
0x0000000002470300 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x78a96)[0x7fb66e137a96]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x6c)[0x7fb66e13bd7c]
/usr/bin/clang(_ZN5clang6Parser30ParseOptionalCXXScopeSpecifierERNS_12CXXScopeSpecENS_9OpaquePtrINS_8QualTypeEEEbPb+0xdd3)[0x74ea83]
/usr/bin/clang(_ZN5clang6Parser27TryAnnotateTypeOrScopeTokenEb+0x1e8)[0x7244a8]
/usr/bin/clang(_ZN5clang6Parser26ParseDeclarationSpecifiersERNS_8DeclSpecERKNS0_18ParsedTemplateInfoENS_15AccessSpecifierENS0_15DeclSpecContextE+0x63f)[0x72ff9f]
/usr/bin/clang(_ZN5clang6Parser23ParseFunctionDeclaratorENS_14SourceLocationERNS_10DeclaratorERNS_16ParsedAttributesEb+0x2e0)[0x733670]
/usr/bin/clang(_ZN5clang6Parser21ParseDirectDeclaratorERNS_10DeclaratorE+0x361)[0x735531]
/usr/bin/clang(_ZN5clang6Parser23ParseDeclaratorInternalERNS_10DeclaratorEMS0_FvS2_E+0x399)[0x72cda9]
/usr/bin/clang(_ZN5clang6Parser15ParseDeclaratorERNS_10DeclaratorE+0x1f)[0x72d5af]
/usr/bin/clang(_ZN5clang6Parser35ParseSingleDeclarationAfterTemplateEjRKNS0_18ParsedTemplateInfoERNS0_21ParsingDeclRAIIObjectERNS_14SourceLocationENS_15AccessSpecifierE+0x3ad)[0x7571fd]
/usr/bin/clang(_ZN5clang6Parser40ParseTemplateDeclarationOrSpecializationEjRNS_14SourceLocationENS_15AccessSpecifierE+0x266)[0x75a106]
/usr/bin/clang(_ZN5clang6Parser16ParseDeclarationERNS_15ASTOwningVectorIPNS_4StmtELj32EEEjRNS_14SourceLocationERNS0_25ParsedAttributesWithRangeE+0x1fa)[0x73181a]
/usr/bin/clang(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS0_15ParsingDeclSpecE+0x62e)[0x72853e]
/usr/bin/clang(_ZN5clang6Parser14ParseNamespaceEjRNS_14SourceLocationES1_+0x643)[0x73bbb3]
/usr/bin/clang(_ZN5clang6Parser16ParseDeclarationERNS_15ASTOwningVectorIPNS_4StmtELj32EEEjRNS_14SourceLocationERNS0_25ParsedAttributesWithRangeE+0x183)[0x7317a3]
/usr/bin/clang(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS0_15ParsingDeclSpecE+0x62e)[0x72853e]
/usr/bin/clang(_ZN5clang6Parser14ParseNamespaceEjRNS_14SourceLocationES1_+0x643)[0x73bbb3]
/usr/bin/clang(_ZN5clang6Parser16ParseDeclarationERNS_15ASTOwningVectorIPNS_4StmtELj32EEEjRNS_14SourceLocationERNS0_25ParsedAttributesWithRangeE+0x183)[0x7317a3]
/usr/bin/clang(_ZN5clang6Parser24ParseExternalDeclarationERNS0_25ParsedAttributesWithRangeEPNS0_15ParsingDeclSpecE+0x62e)[0x72853e]
/usr/bin/clang(_ZN5clang6Parser17ParseTopLevelDeclERNS_9OpaquePtrINS_12DeclGroupRefEEE+0x6d)[0x728c8d]
/usr/bin/clang(_ZN5clang8ParseASTERNS_4SemaEb+0x80)[0x70b750]
/usr/bin/clang(_ZN5clang13CodeGenAction13ExecuteActionEv+0x33)[0x6016c3]
/usr/bin/clang(_ZN5clang16CompilerInstance13ExecuteActionERNS_14FrontendActionE+0x11b)[0x534aeb]
/usr/bin/clang(_ZN5clang25ExecuteCompilerInvocationEPNS_16CompilerInstanceE+0x3cb)[0x51aa3b]
/usr/bin/clang(_Z8cc1_mainPPKcS1_S0_Pv+0x2d7)[0x512ef7]
/usr/bin/clang(main+0x27a)[0x511a7a]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7fb66e0e030d]
/usr/bin/clang[0x512ac5]
======= Memory map: ========
00400000-00cd2000 r-xp 00000000 08:01 3222862537                        
/usr/bin/clang
00ed2000-00f0f000 r--p 008d2000 08:01 3222862537                        
/usr/bin/clang
00f0f000-00f11000 rw-p 0090f000 08:01 3222862537                        
/usr/bin/clang
00f11000-00f12000 rw-p 00000000 00:00 0 
023ce000-02493000 rw-p 00000000 00:00 0                                  [heap]
7fb668000000-7fb668021000 rw-p 00000000 00:00 0 
7fb668021000-7fb66c000000 ---p 00000000 00:00 0 
7fb66da2f000-7fb66dab2000 r-xp 00000000 08:01 1073744522                
/lib/x86_64-linux-gnu/libm-2.13.so
7fb66dab2000-7fb66dcb1000 ---p 00083000 08:01 1073744522                
/lib/x86_64-linux-gnu/libm-2.13.so
7fb66dcb1000-7fb66dcb2000 r--p 00082000 08:01 1073744522                
/lib/x86_64-linux-gnu/libm-2.13.so
7fb66dcb2000-7fb66dcb3000 rw-p 00083000 08:01 1073744522                
/lib/x86_64-linux-gnu/libm-2.13.so
7fb66dcb3000-7fb66dcb5000 r-xp 00000000 08:01 1073744503                
/lib/x86_64-linux-gnu/libdl-2.13.so
7fb66dcb5000-7fb66deb5000 ---p 00002000 08:01 1073744503                
/lib/x86_64-linux-gnu/libdl-2.13.so
7fb66deb5000-7fb66deb6000 r--p 00002000 08:01 1073744503                
/lib/x86_64-linux-gnu/libdl-2.13.so
7fb66deb6000-7fb66deb7000 rw-p 00003000 08:01 1073744503                
/lib/x86_64-linux-gnu/libdl-2.13.so
7fb66deb7000-7fb66debe000 r-xp 00000000 08:01 1074027081                
/usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fb66debe000-7fb66e0bd000 ---p 00007000 08:01 1074027081                
/usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fb66e0bd000-7fb66e0be000 r--p 00006000 08:01 1074027081                
/usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fb66e0be000-7fb66e0bf000 rw-p 00007000 08:01 1074027081                
/usr/lib/x86_64-linux-gnu/libffi.so.6.0.0
7fb66e0bf000-7fb66e254000 r-xp 00000000 08:01 1073744492                
/lib/x86_64-linux-gnu/libc-2.13.so
7fb66e254000-7fb66e453000 ---p 00195000 08:01 1073744492                
/lib/x86_64-linux-gnu/libc-2.13.so
7fb66e453000-7fb66e457000 r--p 00194000 08:01 1073744492                
/lib/x86_64-linux-gnu/libc-2.13.so
7fb66e457000-7fb66e458000 rw-p 00198000 08:01 1073744492                
/lib/x86_64-linux-gnu/libc-2.13.so
7fb66e458000-7fb66e45e000 rw-p 00000000 00:00 0 
7fb66e45e000-7fb66e473000 r-xp 00000000 08:01 1073744513                
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fb66e473000-7fb66e672000 ---p 00015000 08:01 1073744513                
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fb66e672000-7fb66e673000 r--p 00014000 08:01 1073744513                
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fb66e673000-7fb66e674000 rw-p 00015000 08:01 1073744513                
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fb66e674000-7fb66e75c000 r-xp 00000000 08:01 1074084649                
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fb66e75c000-7fb66e95c000 ---p 000e8000 08:01 1074084649                
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fb66e95c000-7fb66e964000 r--p 000e8000 08:01 1074084649                
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fb66e964000-7fb66e966000 rw-p 000f0000 08:01 1074084649                
/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16
7fb66e966000-7fb66e97b000 rw-p 00000000 00:00 0 
7fb66e97b000-7fb66e993000 r-xp 00000000 08:01 1073744552                
/lib/x86_64-linux-gnu/libpthread-2.13.so
7fb66e993000-7fb66eb92000 ---p 00018000 08:01 1073744552                
/lib/x86_64-linux-gnu/libpthread-2.13.so
7fb66eb92000-7fb66eb93000 r--p 00017000 08:01 1073744552                
/lib/x86_64-linux-gnu/libpthread-2.13.so
7fb66eb93000-7fb66eb94000 rw-p 00018000 08:01 1073744552                
/lib/x86_64-linux-gnu/libpthread-2.13.so
7fb66eb94000-7fb66eb98000 rw-p 00000000 00:00 0 
7fb66eb98000-7fb66fbf8000 r-xp 00000000 08:01 1073971804                
/usr/lib/x86_64-linux-gnu/libLLVM-2.9.so.1
7fb66fbf8000-7fb66fdf7000 ---p 01060000 08:01 1073971804                
/usr/lib/x86_64-linux-gnu/libLLVM-2.9.so.1
7fb66fdf7000-7fb66ffad000 r--p 0105f000 08:01 1073971804                
/usr/lib/x86_64-linux-gnu/libLLVM-2.9.so.1
7fb66ffad000-7fb670008000 rw-p 01215000 08:01 1073971804                
/usr/lib/x86_64-linux-gnu/libLLVM-2.9.so.1
7fb670008000-7fb670017000 rw-p 00000000 00:00 0 
7fb670017000-7fb670038000 r-xp 00000000 08:01 1073744479                
/lib/x86_64-linux-gnu/ld-2.13.so
7fb6701d8000-7fb670202000 r--p 00000000 08:01 3222874200                
/home/wilx/clang-problem/appender.ii
7fb670202000-7fb670209000 rw-p 00000000 00:00 0 
7fb670214000-7fb670237000 rw-p 00000000 00:00 0 
7fb670237000-7fb670238000 r--p 00020000 08:01 1073744479                
/lib/x86_64-linux-gnu/ld-2.13.so
7fb670238000-7fb67023a000 rw-p 00021000 08:01 1073744479                
/lib/x86_64-linux-gnu/ld-2.13.so
7fff884d2000-7fff884f3000 rw-p 00000000 00:00 0                         
[stack]
7fff885ff000-7fff88600000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]

-- 
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