This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Dynamic loader opening file ""
- To: libc-alpha at sources dot redhat dot com
- Subject: Dynamic loader opening file ""
- From: Bharadwaj Yadavalli <sby at ives dot lkg dot dec dot com>
- Date: Thu, 31 May 2001 16:37:54 -0400 (EDT)
- Reply-To: Bharadwaj Yadavalli <bharadwaj dot yadavalli at compaq dot com>
I am encountering a situation that seems to result from
dl_open_worker():elf/dl-open.c encountering an empty file name.
I get the following (partial and slightly edited) debug output
while loading the program:
29916: initialize program: /usr/full/path/to/foo
29916:
29916:
29916: transferring control: /usr/full/path/to/foo
29916:
29916: opening file=/usr/lib/dependency/of/foo/liba.so; opencount == 2
29916:
29916: file=libnss_files.so.2; generating link map
29916: dynamic: 0x000002000101c618 base: 0x0000020000f0e000 size: 0x000000000010ea80
29916: entry: 0x0000020000f118d0 phdr: 0x0000020000f0e040 phnum: 5
29916:
29916:
29916: calling init: /lib/libnss_files.so.2
29916:
29916: opening file=/lib/libnss_files.so.2; opencount == 1
29916:
29916: file=libnss_nisplus.so.2; generating link map
29916: dynamic: 0x000002000112d000 base: 0x000002000101e000 size: 0x000000000010f478
29916: entry: 0x0000020001021780 phdr: 0x000002000101e040 phnum: 5
29916:
29916:
29916: calling init: /lib/libnss_nisplus.so.2
29916:
29916: opening file=/lib/libnss_nisplus.so.2; opencount == 1
29916:
29916: file=libnss_nis.so.2; generating link map
29916: dynamic: 0x000002000123bb58 base: 0x000002000112e000 size: 0x000000000010df90
29916: entry: 0x0000020001131670 phdr: 0x000002000112e040 phnum: 5
29916:
29916:
29916: calling init: /lib/libnss_nis.so.2
29916:
29916: opening file=/lib/libnss_nis.so.2; opencount == 1
29916:
29916: opening file=; opencount == 2 <=============
29916:
********* Error generated by foo owing to failed loading of liba.so
29916:
29916: calling fini: /usr/lib/dependency/of/foo/liba.so
29916:
It seems to me the line "opening file=;" indicates the problem.
Would some one care to point out what I am missing?
I built liba.so using
% gcc -v
Reading specs from /usr/local/lib/gcc-lib/alphaev6-unknown-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)
% ld -v
GNU ld version 2.11.90.0.8 (with BFD 2.11.90.0.8)
The libc I have is :
% /lib/libc.so.6.1
GNU C Library development release version 2.1.95, by Roland McGrath et al.
Copyright (C) 1992,93,94,95,96,97,98,99,2000 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 2.96 20000731 (Red Hat Linux 7.0).
Compiled on a Linux 2.4.0-0.23 system on 2000-10-19.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
The C stubs add-on version 2.1.2.
BIND-8.2.3-T5B
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Glibc-2.0 compatibility add-on by Cristian Gafton
linuxthreads-0.9 by Xavier Leroy
libthread_db work sponsored by Alpha Processor Inc
Report bugs using the `glibcbug' script to <bugs@gnu.org>.
Thanks a lot for your help,
Bharadwaj