Hi,
I'm struggling to get sprof to run, starting to believe there's a bug
somewhere. I'm posting this here because I didn't find any mention
searching the web and checking two other computers, sprof works under
SUSE 10.0 but fails on another openSUSE 10.2.
I'm running openSUSE 10.2, the output of uname -a:
Linux psi 2.6.18.8-0.5-default #1 SMP Fri Jun 22 12:17:53 UTC 2007 i686
i686 i386 GNU/Linux
When collecting profile info with
LD_PROFILE=libc.so.6 LD_PROFILE_OUTPUT=. ls
and afterwards trying to display the profile with
sprof libc.so.6
returns
sprof: failed to load shared object `libc.so.6': No such file or directory
Investigating with ltrace turns up the following:
ltrace sprof libc.so.6
__libc_start_main(0x804a7f0, 2, 0xbfe078a4, 0x804b980, 0x804b970
setlocale(6, "")
= ""
textdomain("")
= ""
argp_parse(0x804e0d0, 2, 0xbfe078a4, 0, 0xbfe07808)
= 0
strchr("\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"...,
'/') =
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"...
strlen("\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"...)
= 9
strcpy(0xbfe07672, "libc.so.6")
= 0xbfe07672
dlopen("\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"...,
1073741825) = NULL
dlopen("\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"...,
1073741825) = NULL
__dcgettext("failed to load shared object `%s"..., "failed to load
shared object `%s"..., 5) = "failed to load shared object `%s"...
__errno_location()
= 0xb7df968c
error(0, 2, 0x804bd94, 0xbfe07cee, 0xb7f696f8sprof: failed to load
shared object `libc.so.6': No such file or directory
) = 0
exit(1
+++ exited (status 1) +++
So somehow, somewhere it seems to destroy the name of the so.
Is this a bug in openSUSE's libc? Shall I post this to the glibc
mailinglist?
Cheers,
Christian
--
Christian Keil /"\
Institute for Reliable Computing \ / ASCII Ribbon Campaign
Hamburg University of Technology X against HTML email & vCards
mail:c.keil@tu-harburg.de / \
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-factory+help@opensuse.org