Issue 134843
Summary ld.lld crashing when linking GraphicsMagick
Labels lld
Assignees
Reporter lb90
    Here's the crash log:

```
libtool: link: cc -fopenmp -g -O2 -Wall -o utilities/.libs/gm.exe utilities/gm.o  magick/.libs/libGraphicsMagick.a -lgdi32 -luser32 -ljxl -ljxl_threads -ltiff -ljbig -lsharpyuv -lwebp -lwebpmux -lfreetype -ljpeg -lturbojpeg -lpng16 -llcms2 -llcms2_fast_float -lxml2 -lzstd -llzma -lbz2 -lz -lpthread -pthread -fopenmp
ld.lld: warning: utilities/gm.o: locally defined symbol imported: GMCommand (defined in libGraphicsMagick.a(libGraphicsMagick_la-command.o)) [LNK4217]
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Exception Code: 0xC0000005
make[1]: Leaving directory '/c/Users/gitlab_runner/AppData/Local/Temp/GraphicsMagick-1.3.43'
#0 0x00007ff71c583b2a lld::coff::Baserel& std::__1::vector<lld::coff::Baserel, std::__1::allocator<lld::coff::Baserel>>::emplace_back<unsigned int, llvm::COFF::MachineTypes const&>(unsigned int&&, llvm::COFF::MachineTypes const&) (C:\ink100\clang64\bin\ld.lld.exe+0x343b2a)
#1 0x00007ffca3171be4 llvm::parallel::detail::Latch::dec() (C:\ink100\clang64\bin\libLLVM-20.dll+0xf01be4)
#2 0x00007ffca3171a8b void std::__1::__uninitialized_allocator_relocate[abi:nn200100]<std::__1::allocator<std::__1::function<void ()>>, std::__1::function<void ()>*>(std::__1::allocator<std::__1::function<void ()>>&, std::__1::function<void ()>*, std::__1::function<void ()>*, std::__1::function<void ()>*) (C:\ink100\clang64\bin\libLLVM-20.dll+0xf01a8b)
#3 0x00007ffca31711ec std::__1::vector<std::__1::thread, std::__1::allocator<std::__1::thread>>::__append(unsigned long long) (C:\ink100\clang64\bin\libLLVM-20.dll+0xf011ec)
#4 0x00007ffca3171012 std::__1::vector<std::__1::thread, std::__1::allocator<std::__1::thread>>::__append(unsigned long long) (C:\ink100\clang64\bin\libLLVM-20.dll+0xf01012)
#5 0x00007ffcc48b6b4c (C:\Windows\System32\ucrtbase.dll+0x26b4c)
#6 0x00007ffcc4ee4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
#7 0x00007ffcc6adeceb (C:\Windows\SYSTEM32\ntdll.dll+0x7eceb)
cc: error: linker command failed due to signal (use -v to see invocation)
```

Output from `ld.lld --reproduce`: [repro.tar.gz](https://github.com/user-attachments/files/19632136/repro.tar.gz)

See https://gitlab.com/inkscape/inkscape/-/merge_requests/7066
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to