search for: freearena

Displaying 8 results from an estimated 8 matches for "freearena".

Did you mean: free_area
2017 Oct 16
2
LLD COFF not closing mmaps to input files?
I think you want to call freeArena() before returning from lld::coff::link. On Sun, Oct 15, 2017 at 6:57 PM, Andrew Kelley via llvm-dev < llvm-dev at lists.llvm.org> wrote: > I believe this line is the culprit: > > COFF/Driver.cpp:102: > make<std::unique_ptr<MemoryBuffer>>(std::move(MB)); // take ow...
2018 Aug 08
2
LLD COFF library: crashes when lld::coff::link is called twice
...;llvm-dev at lists.llvm.org> wrote: > Here's a fix: > > --- a/lld/COFF/Driver.cpp > +++ b/lld/COFF/Driver.cpp > @@ -72,6 +72,9 @@ bool link(ArrayRef<const char *> Args, bool CanExitEarly, > raw_ostream &Diag) { > exitLld(errorCount() ? 1 : 0); > > freeArena(); > + ObjFile::Instances.clear(); > + ImportFile::Instances.clear(); > + BitcodeFile::Instances.clear(); > return !errorCount(); > } > > I don't know how to make a test for this, since it depends on running LLD > twice in the same process. > > Can I get som...
2018 Jul 25
2
LLD COFF library: crashes when lld::coff::link is called twice
...hich is freed here: bool link(ArrayRef<const char *> Args, bool CanExitEarly, raw_ostream &Diag) { // ... Driver = make<LinkerDriver>(); Driver->link(Args); // Call exit() if we can to avoid calling destructors. if (CanExitEarly) exitLld(errorCount() ? 1 : 0); freeArena(); // <------ here return !errorCount(); } Is there a simple fix for this? Downstream issue reference: https://github.com/ziglang/zig/issues/1289 Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/atta...
2019 Jan 07
2
[LLD] [WASM] wasm/function-index.test failing
...#3 0x00007f7578656b00 __restore_rt (/lib64/libpthread.so.0+0x10b00) #4 0x00000000005b618b llvm::SpecificBumpPtrAllocator<std::unique_ptr<llvm::MemoryBuffer, std::default_delete<llvm::MemoryBuffer> > >::DestroyAll() (/build/x86_64/bin/wasm-ld+0x5b618b) #5 0x000000000091af30 lld::freeArena() (/build/x86_64/bin/wasm-ld+0x91af30) #6 0x00000000007b9e5c lld::wasm::link(llvm::ArrayRef<char const*>, bool, llvm::raw_ostream&) (/build/x86_64/bin/wasm-ld+0x7b9e5c) #7 0x00000000004a67cf main (/build/x86_64/bin/wasm-ld+0x4a67cf) #8 0x00007f7576e656e5 __libc_start_main (/lib64/libc....
2018 Jul 25
2
are the LLD libraries thread safe?
...r*)#1}::operator()(char*, char*) const (Allocator.h:410) ==5467== by 0x4C9D77: llvm::SpecificBumpPtrAllocator<lld::elf::SymbolTable>::DestroyAll() (Allocator.h:421) ==5467== by 0x4D218F: lld::SpecificAlloc<lld::elf::SymbolTable>::reset() (Memory.h:47) ==5467== by 0x3EF68B: lld::freeArena() (Memory.cpp:21) ==5467== by 0x4B3D41: lld::elf::link(llvm::ArrayRef<char const*>, bool, llvm::raw_ostream&) (Driver.cpp:101) ==5467== by 0x39FC06: ZigLLDLink (zig_llvm.cpp:840) ==5467== by 0x38DE74: link.resume (link.zig:84) ==5467== by 0x2475EB: Loop_workerRun (loop.zig:511...
2017 Oct 16
2
LLD COFF not closing mmaps to input files?
I've got a patched LLD 5.0.0 like this: diff --git a/deps/lld/COFF/Driver.cpp b/deps/lld/COFF/Driver.cpp index 854c3e69..8bab1c11 100644 --- a/deps/lld/COFF/Driver.cpp +++ b/deps/lld/COFF/Driver.cpp @@ -1030,7 +1030,7 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) { if (!Args.hasArgNoClaim(OPT_INPUT)) { fixupExports(); createImportLibrary(/*AsLib=*/true); -
2018 Jul 25
2
are the LLD libraries thread safe?
...tor.h:410) >> ==5467== by 0x4C9D77: llvm::SpecificBumpPtrAllocator >> <lld::elf::SymbolTable>::DestroyAll() (Allocator.h:421) >> ==5467== by 0x4D218F: lld::SpecificAlloc<lld::elf::SymbolTable>::reset() >> (Memory.h:47) >> ==5467== by 0x3EF68B: lld::freeArena() (Memory.cpp:21) >> ==5467== by 0x4B3D41: lld::elf::link(llvm::ArrayRef<char const*>, >> bool, llvm::raw_ostream&) (Driver.cpp:101) >> ==5467== by 0x39FC06: ZigLLDLink (zig_llvm.cpp:840) >> ==5467== by 0x38DE74: link.resume (link.zig:84) >> ==5467==...
2019 Jan 08
4
[LLD] [WASM] wasm/function-index.test failing
...ibpthread.so.0+0x10b00) >> #4 0x00000000005b618b >> llvm::SpecificBumpPtrAllocator<std::unique_ptr<llvm::MemoryBuffer, >> std::default_delete<llvm::MemoryBuffer> > >::DestroyAll() >> (/build/x86_64/bin/wasm-ld+0x5b618b) >> #5 0x000000000091af30 lld::freeArena() >> (/build/x86_64/bin/wasm-ld+0x91af30) >> #6 0x00000000007b9e5c lld::wasm::link(llvm::ArrayRef<char const*>, bool, >> llvm::raw_ostream&) (/build/x86_64/bin/wasm-ld+0x7b9e5c) >> #7 0x00000000004a67cf main (/build/x86_64/bin/wasm-ld+0x4a67cf) >> #8 0x000...