This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/9733] Multiple dynamic linker (RTLD) audit libraries fails


------- Additional Comments From mtk dot manpages at gmail dot com  2009-01-12 04:58 -------
Created an attachment (id=3657)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3657&action=view)
test program

Below, two uses of an auditing library created from the attached source file. 
In the first run, the .so is assigned just once to LD_AUDIT.  In the second
run, the .so is assigned twice to LD_AUDIT, as a colon-separated list (leading
to a SIGSEGV).

$ cc -g -shared -fPIC -o audit.so audit.c
$ LD_AUDIT=./audit.so  /bin/true
la_version(): 1
la_objopen(): loading ""; lmid = LM_ID_BASE; cookie=b7f5f8d0
la_objopen(): loading "/lib/ld-linux.so.2"; lmid = LM_ID_BASE; cookie=b7f5f4f0
la_activity(): cookie = b7f5f8d0; flag = LA_ACT_ADD
la_objsearch(): name = libc.so.6; cookie = b7f5f8d0; flag = LA_SER_ORIG
la_objsearch(): name = /lib/libc.so.6; cookie = b7f5f8d0; flag = LA_SER_CONFIG
la_objopen(): loading "/lib/libc.so.6"; lmid = LM_ID_BASE; cookie=b7f41ad8
la_activity(): cookie = b7f5f8d0; flag = LA_ACT_CONSISTENT
la_symbind32(): symname = __libc_start_main; sym->st_value = 0xb7c96510
	ndx = 2149; flags = 0x0; refcook = b7f5f8d0; defcook = b7f41ad8
[...]

$ LD_AUDIT=./audit.so:./audit.so  /bin/true
la_version(): 1
la_objsearch(): name = ./audit.so; cookie = 250; flag = LA_SER_ORIG
Segmentation fault (core dumped)


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9733

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]