[LLVMdev] [cfe-dev] -fsanitize=address on centos 6.4
Sharma, Yogesh
Yogesh.Sharma at saabsensis.com
Mon Aug 19 11:42:24 PDT 2013
I did a make update. I thought I was running the newest version of compiler-rt. But now I can't even get the project to build. I get the following error:
i386-redhat-linux-gnu-clang++: clang/llvm/include/llvm/ADT/SmallVector.h:544: typename llvm::SmallVectorTemplateBase<T, llvm::isPodLike::value>::iterator llvm::SmallVectorImpl<T>::insert(typename llvm::SmallVectorTemplateBase<T, llvm::isPodLike::value>::iterator, const T&) [with T = const char*]: Assertion `I <= this->end() && "Inserting past the end of the vector."' failed.
0 i386-redhat-linux-gnu-clang++ 0x0000000002431452 llvm::sys::PrintStackTrace(_IO_FILE*) + 34
1 i386-redhat-linux-gnu-clang++ 0x000000000243264a
2 libpthread.so.0 0x0000003b1d60f500
3 libc.so.6 0x0000003b1d2328a5 gsignal + 53
4 libc.so.6 0x0000003b1d234085 abort + 373
5 libc.so.6 0x0000003b1d22ba1e
6 libc.so.6 0x0000003b1d22bae0 __assert_perror_fail + 0
7 i386-redhat-linux-gnu-clang++ 0x00000000006adb64 main + 8420
8 libc.so.6 0x0000003b1d21ecdd __libc_start_main + 253
9 i386-redhat-linux-gnu-clang++ 0x00000000006a5759
From: Sergey Matveev [mailto:earthdok at google.com]
Sent: Monday, August 19, 2013 1:26 PM
To: Sharma, Yogesh; Kostya Serebryany; llvmdev at cs.uiuc.edu List
Subject: Re: [cfe-dev] -fsanitize=address on centos 6.4
+kcc, llvmdev
I think your compiler-rt checkout is out of date, because r188635 is supposed to fix that exact issue.
On Mon, Aug 19, 2013 at 9:16 PM, Sharma, Yogesh <Yogesh.Sharma at saabsensis.com<mailto:Yogesh.Sharma at saabsensis.com>> wrote:
Sorry about that. I forgot a d:
ldd (GNU libc) 2.12
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
From: Sergey Matveev [mailto:earthdok at google.com<mailto:earthdok at google.com>]
Sent: Monday, August 19, 2013 1:08 PM
To: Sharma, Yogesh
Cc: Kostya Serebryany; llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>
Subject: Re: [cfe-dev] -fsanitize=address on centos 6.4
This looks like the output of "ld --version". What we need is your glibc version, which is given by "ldd --version".
On Mon, Aug 19, 2013 at 8:26 PM, Sharma, Yogesh <Yogesh.Sharma at saabsensis.com<mailto:Yogesh.Sharma at saabsensis.com>> wrote:
GNU ld version 2.20.51.0.2-5.36.el6 20100205
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
From: Kostya Serebryany [mailto:kcc at google.com<mailto:kcc at google.com>]
Sent: Monday, August 19, 2013 5:36 AM
To: Sergey Matveev
Cc: Sharma, Yogesh; llvmdev at cs.uiuc.edu<mailto:llvmdev at cs.uiuc.edu>
Subject: Re: [cfe-dev] -fsanitize=address on centos 6.4
+llvmdev (llvm-dev does not exist)
On Mon, Aug 19, 2013 at 12:58 PM, Sergey Matveev <earthdok at google.com<mailto:earthdok at google.com>> wrote:
> First, could you please run the test with env.var. ASAN_OPTIONS=verbosity=1
No need for that, actually, since this is a familiar issue. Sharma, could you please paste the output of "ldd --version" here?
Sergey
On Mon, Aug 19, 2013 at 12:53 PM, Kostya Serebryany <kcc at google.com<mailto:kcc at google.com>> wrote:
+llvm-dev, earthdok at google.com<mailto:earthdok at google.com>
bcc:cfe-dev
Hi Sharma,
We don't have centos, so we'd ask you for some assistance.
First, could you please run the test with env.var. ASAN_OPTIONS=verbosity=1
Sergey, this CHECK is yours, please take a look.
--kcc
On Fri, Aug 16, 2013 at 7:57 PM, Sharma, Yogesh <Yogesh.Sharma at saabsensis.com<mailto:Yogesh.Sharma at saabsensis.com>> wrote:
Hi,
I noticed that the SVN version of clang+llvm does not like -fsanitize=address on centos 6.4. By "like" I mean it asserts anytime a thread is created. With errors like:
==18015==AddressSanitizer CHECK failed: clang/llvm/projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc:251 "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" (0xf2f7d030, 0xf2f7d000)
If I use the llvm+clang 3.3 version it works properly.
-
This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately.
-
_______________________________________________
cfe-dev mailing list
cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu>
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately.
This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately.
This message is intended only for the addressee and may contain information that is company confidential or privileged. Any technical data in this message may be exported only in accordance with the U.S. International Traffic in Arms Regulations (22 CFR Parts 120-130) or the Export Administration Regulations (15 CFR Parts 730-774). Unauthorized use is strictly prohibited and may be unlawful. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, you should not read, copy, disclose or otherwise use this message. If you have received this email in error, please delete it, and advise the sender immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130819/b5e59909/attachment.html>
More information about the llvm-dev
mailing list