Date: Wed, 2 Mar 2022 08:32:12 -0700 From: Warner Losh <imp@bsdimp.com> To: Arka Sharma <arka.sw1988@gmail.com> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: Difference in shared object dependency Message-ID: <CANCZdfruUH9-Xef0zBAWLY_Ud5QsBV%2BNO2f2YcJyGPPP-3E6wg@mail.gmail.com> In-Reply-To: <CAPO=kN0mod0aMnTe-VTf%2BOORHPM--P719v2ET2_YokzTnUrzPQ@mail.gmail.com> References: <CAPO=kN0mod0aMnTe-VTf%2BOORHPM--P719v2ET2_YokzTnUrzPQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] On Wed, Mar 2, 2022 at 8:14 AM Arka Sharma <arka.sw1988@gmail.com> wrote: > I am using 'ldd -a' to list the shared object dependencies of executable > as well as using 'procstat -v' to dump the mapping which also lists the > mapping of shared objects in process address space. I have noticed in some > cases 'procstat' lists some additional .so files (not counting the > ld-elf.so). Can somebody please tell me what's going on here ? > Are they repeats, but with different versions, of what ldd -a shows? If so, then you have a partially upgraded system and will likely be in a world of pain until you upgrade completely. Alternatively, you might be seeing a program that uses dlopen to map in other modules which is pulling in these libraries. In that case, it's normal. Warner [-- Attachment #2 --] <div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 2, 2022 at 8:14 AM Arka Sharma <<a href="mailto:arka.sw1988@gmail.com">arka.sw1988@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I am using 'ldd -a' to list the shared object dependencies of executable as well as using 'procstat -v' to dump the mapping which also lists the mapping of shared objects in process address space. I have noticed in some cases 'procstat' lists some additional .so files (not counting the ld-elf.so). Can somebody please tell me what's going on here ?</div></div></blockquote><div><br></div><div>Are they repeats, but with different versions, of what ldd -a shows? If so, then you have a partially upgraded system and will likely be in a world of pain until you upgrade completely.</div><div><br></div><div>Alternatively, you might be seeing a program that uses dlopen to map in other modules which is pulling in these libraries. In that case, it's normal.</div><div><br></div><div>Warner </div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfruUH9-Xef0zBAWLY_Ud5QsBV%2BNO2f2YcJyGPPP-3E6wg>
