Displaying 20 results from an estimated 29 matches for "stringmapimpl".
2015 Jul 11
2
[LLVMdev] StringMap question
Hello everyone!
I'm a newcomer for the great LLVM project. I've started to explore the
source code of LLVM project to become more familiar with it, and I've found
some strange usage of move semantics in constructor of StringMapImpl(
StringMapImpl &&RHS) {...} class in include/llvm/ADT/StringMap.h line 56.
Could anyone explain me the purpose of zeroing of all fields of RHS in the
body of this constructor if the declaration of the constructor uses move
semantics? Here is the consturctor code below:
*StringMapImpl(Strin...
2016 Apr 28
2
Why duplicate "protected:" in SmallVector.h, StringMap.h?
In SmallVector.h:
class SmallVectorBase {
*protected:*
void *BeginX, *EndX, *CapacityX;
*protected:*
SmallVectorBase(void *FirstEl, size_t Size)
: BeginX(FirstEl), EndX(FirstEl), CapacityX((char*)FirstEl+Size) {}
In StringMap.h:
class StringMapImpl {
*protected:*
// Array of NumBuckets pointers to entries, null pointers are holes.
// TheTable[NumBuckets] contains a sentinel value for easy iteration.
Followed
// by an array of the actual hash values as unsigned integers.
StringMapEntryBase **TheTable;
unsigned NumBuckets;
unsigned...
2018 Nov 11
3
A stage2 build causes changes to libllvm impacting program using it (exemple: rustc)
....
It was working fine.
The failure is now happening when the systems saw their libllvm upgraded
to the stage2 bootstrap one.
The beginning of the backtrace is the following (generating debug info):
Thread 1 "rustc" received signal SIGSEGV, Segmentation fault.
0x00007ffff1e273bc in llvm::StringMapImpl::LookupBucketFor(llvm::StringRef) () from /usr/lib/x86_64-linux-gnu/libLLVM-7.so.1
(gdb) bt
#0 0x00007ffff1e273bc in llvm::StringMapImpl::LookupBucketFor(llvm::StringRef) () from /usr/lib/x86_64-linux-gnu/libLLVM-7.so.1
#1 0x00007ffff1f654c9 in ?? () from /usr/lib/x86_64-linux-gnu/libLLVM-7.so.1...
2008 Sep 02
0
[LLVMdev] New llvm-gcc bootstrap failure
I get the error below (and have for a couple weeks now) when trying to
build llvm-gcc on Ubuntu Feisty. In the meantime, on Ubuntu Gutsy,
everything has been building fine. Both are release builds for x86.
John
cc1: StringMap.cpp:177: void
llvm::StringMapImpl::RemoveKey(llvm::StringMapEntryBase*): Assertion `V ==
V2 && "Didn't find key?"' failed.
2008 Aug 25
4
[LLVMdev] New llvm-gcc bootstrap failure
> I am having the same problem. It was "introduced" by revision 54811,
> so it looks like a memory corruption problem. Investigating.
Interesting. Bootstrapping with gcac works!
Some tests with valgrind also work. My next try is to add some debug
code to do bounds checking in SmallVector.
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 |
2011 Mar 15
10
[LLVMdev] Prevent unbounded memory consuption of long lived JIT processes
This series of patches address several issues causing memory usage to grow
indefinetely on a long lived process.
These are not convenional leaks -- memory would have been freed when the LLVM
context or/and JIT engine is destroyed -- but for as long as they aren't the
memory is usage effectively ubounded.
The issues were found using valgrind with '--show-reachable=yes' option:
1.
2016 Mar 25
2
Link error on Linux
...m/include/llvm/Support/raw_ostream.h:141: undefined reference to
`llvm::raw_ostream::write(unsigned char)'
aklo-aklo.o: In function `llvm::StringMap<long,
llvm::MallocAllocator>::find(llvm::StringRef) const':
/home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to
`llvm::StringMapImpl::FindKey(llvm::StringRef) const'
aklo-aklo.o: In function `llvm::StringMap<long,
llvm::MallocAllocator>::insert(std::pair<llvm::StringRef, long>)':
/home/a/llvm/include/llvm/ADT/StringMap.h:331: undefined reference to
`llvm::StringMapImpl::LookupBucketFor(llvm::StringRef)'
/...
2016 Mar 25
3
Link error on Linux
...erence
> to
> > `llvm::raw_ostream::write(unsigned char)'
> > aklo-aklo.o: In function `llvm::StringMap<long,
> > llvm::MallocAllocator>::find(llvm::StringRef) const':
> > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to
> > `llvm::StringMapImpl::FindKey(llvm::StringRef) const'
> > aklo-aklo.o: In function `llvm::StringMap<long,
> > llvm::MallocAllocator>::insert(std::pair<llvm::StringRef, long>)':
> > /home/a/llvm/include/llvm/ADT/StringMap.h:331: undefined reference to
> > `llvm::StringMapImpl:...
2008 Feb 28
1
[LLVMdev] Are multiple execution engines allowed?
...t;addModuleProvider();
////tests
executionEngine->removeModuleProvider
This produces memory errors that looks something like this:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000004
0x0071aaed in llvm::StringMapImpl::FindKey (this=0x0,
KeyStart=0x53db66c "abort", KeyEnd=0x53db671 "") at StringMap.cpp:130
130 unsigned HTSize = NumBuckets;
(gdb) where
#0 0x0071aaed in llvm::StringMapImpl::FindKey (this=0x0,
KeyStart=0x53db66c "abort", KeyEnd=0x53db671 "") at StringM...
2016 Mar 25
0
Link error on Linux
...w_ostream.h:141: undefined reference to
> `llvm::raw_ostream::write(unsigned char)'
> aklo-aklo.o: In function `llvm::StringMap<long,
> llvm::MallocAllocator>::find(llvm::StringRef) const':
> /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to
> `llvm::StringMapImpl::FindKey(llvm::StringRef) const'
> aklo-aklo.o: In function `llvm::StringMap<long,
> llvm::MallocAllocator>::insert(std::pair<llvm::StringRef, long>)':
> /home/a/llvm/include/llvm/ADT/StringMap.h:331: undefined reference to
> `llvm::StringMapImpl::LookupBucketFor(llv...
2008 Aug 13
2
[LLVMdev] llvm-gcc bootstrap failure
...cial.opt/x86_64-unknown-linux-gnu/include
-I/ptmp/dag/llvm-project.official/llvm/trunk/include -DL_popcountsi2
-c /ptmp/dag/llvm-project.official/llvm-gcc-4.2/trunk/gcc/libgcc2.c -o
libgcc/./_popcountsi2.o
cc1: /ptmp/dag/llvm-project.official/llvm/trunk/lib/Support/StringMap.cpp:177:
void llvm::StringMapImpl::RemoveKey(llvm::StringMapEntryBase*): Assertion `V
== V2 && "Didn't find key?"' failed.
/ptmp/dag/llvm-project.official/llvm-gcc-4.2/trunk/gcc/libgcc2.c:809: internal
compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See &...
2016 Mar 25
2
Link error on Linux
...gt; > `llvm::raw_ostream::write(unsigned char)'
>> > aklo-aklo.o: In function `llvm::StringMap<long,
>> > llvm::MallocAllocator>::find(llvm::StringRef) const':
>> > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to
>> > `llvm::StringMapImpl::FindKey(llvm::StringRef) const'
>> > aklo-aklo.o: In function `llvm::StringMap<long,
>> > llvm::MallocAllocator>::insert(std::pair<llvm::StringRef, long>)':
>> > /home/a/llvm/include/llvm/ADT/StringMap.h:331: undefined reference to
>> > `llvm...
2016 Mar 25
0
Link error on Linux
...d reference to
> > `llvm::raw_ostream::write(unsigned char)'
> > aklo-aklo.o: In function `llvm::StringMap<long,
> > llvm::MallocAllocator>::find(llvm::StringRef) const':
> > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to
> > `llvm::StringMapImpl::FindKey(llvm::StringRef) const'
> > aklo-aklo.o: In function `llvm::StringMap<long,
> > llvm::MallocAllocator>::insert(std::pair<llvm::StringRef, long>)':
> > /home/a/llvm/include/llvm/ADT/StringMap.h:331: undefined reference to
> > `llvm::StringMapImpl:...
2016 Mar 25
0
Link error on Linux
...gt; > `llvm::raw_ostream::write(unsigned char)'
>> > aklo-aklo.o: In function `llvm::StringMap<long,
>> > llvm::MallocAllocator>::find(llvm::StringRef) const':
>> > /home/a/llvm/include/llvm/ADT/StringMap.h:284: undefined reference to
>> > `llvm::StringMapImpl::FindKey(llvm::StringRef) const'
>> > aklo-aklo.o: In function `llvm::StringMap<long,
>> > llvm::MallocAllocator>::insert(std::pair<llvm::StringRef, long>)':
>> > /home/a/llvm/include/llvm/ADT/StringMap.h:331: undefined reference to
>> > `llvm...
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...Failure(_HEAP_FAILURE_TYPE FailureType, void *
HeapAddress, void * Address, void * Param1, void * Param2, void * Param3)
Line 158 C
ntdll.dll!RtlFreeHeap(void * HeapHandle, unsigned long Flags, void *
BaseAddress) Line 352 C
ucrtbase.dll!_free_base(void * block) Line 105 C++
XXXTest.exe!llvm::StringMapImpl::RehashTable(unsigned int BucketNo) Line
238 C++
XXXTest.exe!llvm::StringMap<llvm::ConstantDataSequential *
__ptr64,llvm::MallocAllocator>::insert(std::pair<llvm::StringRef,llvm::ConstantDataSequential
*> KV) Line 344 C++
[Inline Frame] XXXTest.exe!llvm::StringMap<llvm::Value
*,l...
2017 Oct 14
2
IR Pass Ordering Sensitivity
...pt1043.bc
0 opt 0x000000010ebd4498 llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 40
1 opt 0x000000010ebd4a46 SignalHandler(int) + 342
2 libsystem_platform.dylib 0x00007fff8ce5352a _sigtramp + 26
3 opt 0x000000010eb8ef4f llvm::StringMapImpl::FindKey(llvm::StringRef) const + 303
4 opt 0x000000010e770235 llvm::PMDataManager::add(llvm::Pass*, bool) + 917
5 opt 0x000000010e76d6ef llvm::PMTopLevelManager::schedulePass(llvm::Pass*) + 2367
6 opt 0x000000010d755c9e main + 8846...
2008 Aug 13
0
[LLVMdev] llvm-gcc bootstrap failure
...inux-gnu/include
> -I/ptmp/dag/llvm-project.official/llvm/trunk/include -DL_popcountsi2
> -c /ptmp/dag/llvm-project.official/llvm-gcc-4.2/trunk/gcc/libgcc2.c -o
> libgcc/./_popcountsi2.o
> cc1: /ptmp/dag/llvm-project.official/llvm/trunk/lib/Support/StringMap.cpp:177:
> void llvm::StringMapImpl::RemoveKey(llvm::StringMapEntryBase*): Assertion `V
> == V2 && "Didn't find key?"' failed.
> /ptmp/dag/llvm-project.official/llvm-gcc-4.2/trunk/gcc/libgcc2.c:809: internal
> compiler error: Aborted
Unless this is in something like an inline asm, an internal com...
2019 Apr 04
2
single-threaded code-gen and how to make it support multi-thread
...lureType, void *
> HeapAddress, void * Address, void * Param1, void * Param2, void * Param3)
> Line 158 C
> ntdll.dll!RtlFreeHeap(void * HeapHandle, unsigned long Flags, void *
> BaseAddress) Line 352 C
> ucrtbase.dll!_free_base(void * block) Line 105 C++
> XXXTest.exe!llvm::StringMapImpl::RehashTable(unsigned int BucketNo)
> Line 238 C++
> XXXTest.exe!llvm::StringMap<llvm::ConstantDataSequential *
> __ptr64,llvm::MallocAllocator>::insert(std::pair<llvm::StringRef,llvm::ConstantDataSequential
> *> KV) Line 344 C++
> [Inline Frame] XXXTest.exe!llvm::Str...
2016 Aug 04
4
help please: how to sort the contents of a "SymbolTableListTraits<GlobalVariable>"?
...0002853ebc llvm::sys::PrintStackTrace(llvm::raw_ostream&) + 60
1 clang-3.9 0x00000000028543a9
2 clang-3.9 0x0000000002852a83 llvm::sys::RunSignalHandlers() + 131
3 clang-3.9 0x00000000028546f4
4 libpthread.so.0 0x00007fc595318330
5 clang-3.9 0x00000000027fbe12 llvm::StringMapImpl::LookupBucketFor(llvm::StringRef) + 466
6 clang-3.9 0x0000000002320fa4
7 clang-3.9 0x0000000002320a10 llvm::ValueSymbolTable::reinsertValue(llvm::Value*) + 112
8 clang-3.9 0x00000000022f0551
llvm::SymbolTableListTraits<llvm::GlobalVariable>::transferNodesFromList(llvm::S...
2017 Aug 29
3
how to auto-report LLVM bugs found by fuzzing?
...uffer-overflow READ 1
Crash Address: 0x60200000009a
Crash State:
llvm::object::WasmObjectFile::parseCustomSection
llvm::object::WasmObjectFile::parseSection
llvm::object::WasmObjectFile::WasmObjectFile
Crash Type: Heap-buffer-overflow READ 1
Crash Address: 0x604000000776
Crash State:
llvm::StringMapImpl::LookupBucketFor
std::pair<llvm::StringMapIterator<unsigned int>, bool>
llvm::StringMap<unsigned
llvm::DWARFContext::create
Crash Type: Heap-buffer-overflow READ 4
Crash Address: 0x60300000011c
Crash State:
llvm::identify_magic
llvm::object::ObjectFile::createObjectFile
_s...