On Tue, Aug 24, 2021 at 10:42:32AM +0530, Siddhesh Poyarekar wrote: > On Tue, Aug 24, 2021 at 2:52 AM Richard W.M. Jones <rjones@xxxxxxxxxx> wrote: > > Anyway this is not the reason why I'm writing this email on Fedora > > devel list. In the Fedora package we have: > > > > $ rpm -qf /usr/lib64/libc_malloc_debug.so > > glibc-devel-2.34-1.fc35.x86_64 > > $ rpm -qf /usr/lib64/libc_malloc_debug.so.0 > > glibc-2.34-1.fc35.x86_64 > > > > I'm wondering why it was decided to put the symlink and the file in > > the two different packages? > > > > Is it intended that end users use: > > > > LD_PRELOAD=/usr/lib64/libc_malloc_debug.so.0 # (1) > > This one is correct. Thanks - I made this change to nbdkit: https://gitlab.com/nbdkit/nbdkit/-/commit/8972831aa2a32d4b5820465d37c1827eb76450e4 Will the .0 ever change? ... > > If it's (2) then that's a symlink to (1), so why have the possibility > > of installing only the glibc package thus getting only the file > > /usr/lib64/libc_malloc_debug.so.0 which is not useful on its own? > > > > Also is this feature intended for developers (glibc-devel) or everyone > > (glibc)? (My preference is "everyone" - we've found that asking bug > > reporters to enable MALLOC_CHECK_ in an ad hoc way can be a good way > > to see if a bug is a memory corruption problem.) > > The intent is to separate debugging from core functionality to improve > security and performance (and make it easier for us to improve malloc > in future but that's unrelated in this context), so it will likely end > up in glibc-utils (that's where mtrace is) or its own package. That > will give administrators the option to remove libc_malloc_debug.so.0 > from the system. We (i.e. glibc package maintainers) are yet to agree > on the right place for this, mainly due to forgetting about it after > the mass rebuild. Makes sense, thanks. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW _______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure