Bug ID 1219405
Summary older clang package depends on latest libLLVM
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware Other
OS openSUSE Tumbleweed
Status NEW
Severity Normal
Priority P5 - None
Component Development
Assignee screening-team-bugs@suse.de
Reporter shung-hsi.yu@suse.com
QA Contact qa-bugs@suse.de
Target Milestone ---
Found By ---
Blocker ---

Trying to install older clang will pull in the latest llvm package (libclang13
and libLLVM17):

> $ zypper install clang16 # (latest is clang17 at the moment)
> 
> The following 11 NEW packages are going to be installed:
>   clang16 libLLVM16 libLLVM17 libclang-cpp16 libclang-cpp17 libclang13
>   libedit0 libmpdec3 libpython3_11-1_0 python311-base update-alternatives

The problem is likely that c-index-test-16 is incorrectly linked to
/lib64/libclang.so.13 that is created from the latest llvm package (llvm17 at
the moment), and that ends up making it linked to both the latest llvm shared
library (libLLVM.so.17 from llvm17) as well as one in the corresponding package
(libLLVM.so.16 from llvm16).

> $ ldd /usr/bin/c-index-test-16.0.6
> 	linux-vdso.so.1 (0x00007ffce2336000)
> 	libclang.so.13 => /lib64/libclang.so.13 (0x00007fb21ca18000)
> 	libclang-cpp.so.16 => /lib64/libclang-cpp.so.16 (0x00007fb218800000)
> 	libxml2.so.2 => /lib64/libxml2.so.2 (0x00007fb218690000)
> 	libLLVM.so.16 => /lib64/libLLVM.so.16 (0x00007fb211200000)
> 	libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007fb210e00000)
> 	libc.so.6 => /lib64/libc.so.6 (0x00007fb210a00000)
> 	libclang-cpp.so.17 => /lib64/libclang-cpp.so.17 (0x00007fb20c800000)
> 	libLLVM.so.17 => /lib64/libLLVM.so.17 (0x00007fb205200000)
> 	libm.so.6 => /lib64/libm.so.6 (0x00007fb21c92f000)
> 	/lib64/ld-linux-x86-64.so.2 (0x00007fb21cb11000)
> 	libz.so.1 => /lib64/glibc-hwcaps/x86-64-v3/libz.so.1.3 (0x00007fb218676000)
> 	liblzma.so.5 => /lib64/glibc-hwcaps/x86-64-v3/liblzma.so.5.4.5 (0x00007fb21863d000)
> 	libedit.so.0 => /lib64/libedit.so.0 (0x00007fb218601000)
> 	libtinfo.so.6 => /lib64/libtinfo.so.6 (0x00007fb2111c5000)
> 	libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fb2111a0000)

c-index-test-16.0.6 thus will segfault when ran

> #0 0x00007fccc253d319 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/lib64/libLLVM.so.17+0x3b3d319)
> #1 0x00007fccc253aed2 llvm::sys::RunSignalHandlers() (/lib64/libLLVM.so.17+0x3b3aed2)
> #2 0x00007fccc253db9b (/lib64/libLLVM.so.17+0x3b3db9b)
> #3 0x00007fccca23f190 __restore_rt (/lib64/libc.so.6+0x3f190)
> #4 0x00007fccc724587a (/lib64/libclang-cpp.so.17+0x124587a)
> #5 0x00007fccca2414e1 __cxa_finalize (/lib64/libc.so.6+0x414e1)
> #6 0x00007fccc719c0f7 (/lib64/libclang-cpp.so.17+0x119c0f7)
> Segmentation fault (core dumped)


You are receiving this mail because: