the loader tries to access ld.so.nohwcap before loading any library

Bug #56849 reported by Kyle Smith
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glibc (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Binary package hint: libc6

Any time a library is loaded the loader tries to access /etc/ld.so.nohwcap before opening the library. Shouldn't this result be cached instead of doing it potentially hundreds of times? Or is this a side effect of using strace?

Steps to reproduce: strace any executable and the log should have plenty of entries lke this (assuming ld.so.nohwcap exists, otherwise it returns ENOENT):

access("/etc/ld.so.nohwcap", F_OK) = 0
open("/lib/libc.so.6", O_RDONLY) = 3
...

Changed in glibc:
importance: Untriaged → Wishlist
Revision history for this message
George Pollard (porges) wrote :

>> Or is this a side effect of using strace?

Nope, it's documented at the bottom of the ld.so manpage.

I just came across this after stracing a program I wrote and wondering where all these calls were coming from. I feel like excising that code from ld.so actually ;p

Revision history for this message
George Pollard (porges) wrote :

not a bug

Changed in glibc:
status: New → Invalid
gcc (chris+ubuntu-qwirx)
Changed in glibc (Ubuntu):
status: Invalid → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.