public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code
@ 2010-01-15 11:04 andris dot zeila at accenture dot com
2010-01-15 11:05 ` [Bug libc/11177] " andris dot zeila at accenture dot com
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: andris dot zeila at accenture dot com @ 2010-01-15 11:04 UTC (permalink / raw)
To: glibc-bugs
Preface:
This issue comes from latrace inability to trace applications built with ICU
library for unicode support.
Steps to repeat:
1) compile the attached audit library: gcc libaudittest.c -o libaudittest.so
--shared
2) compile the attached sample application: gcc audittest.c -o audittest
$(icu-config --ldflags)
3) run the resulting application with audit enabled:
LD_AUDIT=$(pwd)/libaudittest.so ./audittest
Result:
../audittest: no PLTREL found in object /usr/lib/libicudata.so.40
While running just ./audittest works normally.
Apparently lbicudata is ICU data only library without any code segments, which
confuses glibc.
--
Summary: LD_AUDIT doesn't work with shared libraries containing
no code
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: andris dot zeila at accenture dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/11177] LD_AUDIT doesn't work with shared libraries containing no code
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
@ 2010-01-15 11:05 ` andris dot zeila at accenture dot com
2010-01-15 11:05 ` andris dot zeila at accenture dot com
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: andris dot zeila at accenture dot com @ 2010-01-15 11:05 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From andris dot zeila at accenture dot com 2010-01-15 11:05 -------
Created an attachment (id=4521)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4521&action=view)
Sample application
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/11177] LD_AUDIT doesn't work with shared libraries containing no code
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
2010-01-15 11:05 ` [Bug libc/11177] " andris dot zeila at accenture dot com
@ 2010-01-15 11:05 ` andris dot zeila at accenture dot com
2010-01-15 12:27 ` kirill at shutemov dot name
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: andris dot zeila at accenture dot com @ 2010-01-15 11:05 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From andris dot zeila at accenture dot com 2010-01-15 11:05 -------
Created an attachment (id=4520)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4520&action=view)
Sample audit library
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/11177] LD_AUDIT doesn't work with shared libraries containing no code
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
2010-01-15 11:05 ` [Bug libc/11177] " andris dot zeila at accenture dot com
2010-01-15 11:05 ` andris dot zeila at accenture dot com
@ 2010-01-15 12:27 ` kirill at shutemov dot name
2010-01-20 2:04 ` drepper at redhat dot com
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: kirill at shutemov dot name @ 2010-01-15 12:27 UTC (permalink / raw)
To: glibc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |kirill at shutemov dot name
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/11177] LD_AUDIT doesn't work with shared libraries containing no code
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
` (2 preceding siblings ...)
2010-01-15 12:27 ` kirill at shutemov dot name
@ 2010-01-20 2:04 ` drepper at redhat dot com
2010-01-21 15:23 ` eero dot tamminen at nokia dot com
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: drepper at redhat dot com @ 2010-01-20 2:04 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2010-01-20 02:04 -------
The /usr/lib/libicudata.so.40 is miscompiled. I don't see this in the version
on my machine and it should never happen.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/11177] LD_AUDIT doesn't work with shared libraries containing no code
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
` (3 preceding siblings ...)
2010-01-20 2:04 ` drepper at redhat dot com
@ 2010-01-21 15:23 ` eero dot tamminen at nokia dot com
2010-01-27 9:37 ` eero dot tamminen at nokia dot com
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: eero dot tamminen at nokia dot com @ 2010-01-21 15:23 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From eero dot tamminen at nokia dot com 2010-01-21 15:23 -------
Created an attachment (id=4548)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4548&action=view)
readelf -S /usr/lib/libicudata.so.38.1 (Debian Stable)
(In reply to comment #3)
> The /usr/lib/libicudata.so.40 is miscompiled.
Attached is the output of "readelf -S /usr/lib/libicudata.so.38.1" from Debian
stable and it definitely doesn't have a text section. Here are its sources and
packaging:
http://packages.debian.org/lenny/libicu38
There are no bug reports on Debian about building libicudata:
http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=libicu38;dist=stable
> I don't see this in the version on my machine and it should never happen.
What sections you have in that library on RedHat?
And anyway... LD_AUDIT asserting on something that the dynamic linker accepts
sounds dubious. Either the dynamic linker should assert already on linking
this kind of a library or LD_AUDIT should only give a warning.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/11177] LD_AUDIT doesn't work with shared libraries containing no code
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
` (4 preceding siblings ...)
2010-01-21 15:23 ` eero dot tamminen at nokia dot com
@ 2010-01-27 9:37 ` eero dot tamminen at nokia dot com
2010-01-28 8:17 ` drepper at redhat dot com
2010-02-08 9:03 ` eero dot tamminen at nokia dot com
7 siblings, 0 replies; 9+ messages in thread
From: eero dot tamminen at nokia dot com @ 2010-01-27 9:37 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From eero dot tamminen at nokia dot com 2010-01-27 09:37 -------
> The /usr/lib/libicudata.so.40 is miscompiled. I don't see this in
> the version on my machine and it should never happen.
But it's still valid ELF object, isn't it?
Either dynamic linker should reject linking such libraries or LD_AUDIT should
accept them.
Re-opening.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|WONTFIX |
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/11177] LD_AUDIT doesn't work with shared libraries containing no code
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
` (5 preceding siblings ...)
2010-01-27 9:37 ` eero dot tamminen at nokia dot com
@ 2010-01-28 8:17 ` drepper at redhat dot com
2010-02-08 9:03 ` eero dot tamminen at nokia dot com
7 siblings, 0 replies; 9+ messages in thread
From: drepper at redhat dot com @ 2010-01-28 8:17 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2010-01-28 08:17 -------
(In reply to comment #5)
> Either dynamic linker should reject linking such libraries or LD_AUDIT should
> accept them.
That's nonsense. There are simply different requirements. Just fix the DSOs
and be done with it. The fact that whatever tests the debian system performs
aren't showing problems doesn't mean anything. Special casing just creates
problems.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug libc/11177] LD_AUDIT doesn't work with shared libraries containing no code
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
` (6 preceding siblings ...)
2010-01-28 8:17 ` drepper at redhat dot com
@ 2010-02-08 9:03 ` eero dot tamminen at nokia dot com
7 siblings, 0 replies; 9+ messages in thread
From: eero dot tamminen at nokia dot com @ 2010-02-08 9:03 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From eero dot tamminen at nokia dot com 2010-02-08 09:03 -------
(In reply to comment #6)
> Just fix the DSOs and be done with it.
Same issue on SUSE.
RedHat package seems to be patching libicudata by sed'ing -nostdlib etc away:
sed -i -- "s/-nodefaultlibs -nostdlib//" config/mh-linux
Which increases lib size by 1.5kB which is acceptable.
I hope your change gets propagated to upstream libicudata if it's not already
reported there (trac is pretty awful as bug database from the search
perspective, but on quick search I didn't find anything about this:
http://bugs.icu-project.org/trac/).
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11177
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2010-02-08 9:03 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-15 11:04 [Bug libc/11177] New: LD_AUDIT doesn't work with shared libraries containing no code andris dot zeila at accenture dot com
2010-01-15 11:05 ` [Bug libc/11177] " andris dot zeila at accenture dot com
2010-01-15 11:05 ` andris dot zeila at accenture dot com
2010-01-15 12:27 ` kirill at shutemov dot name
2010-01-20 2:04 ` drepper at redhat dot com
2010-01-21 15:23 ` eero dot tamminen at nokia dot com
2010-01-27 9:37 ` eero dot tamminen at nokia dot com
2010-01-28 8:17 ` drepper at redhat dot com
2010-02-08 9:03 ` eero dot tamminen at nokia dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).