This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.13-31-gf2092fa
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 25 Feb 2011 21:51:38 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.13-31-gf2092fa
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via f2092faf2b6bd491a1891d5d5e393a8bf85d01d7 (commit)
from 6c8a2e88d12b7341440ac9669db0448223deb381 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f2092faf2b6bd491a1891d5d5e393a8bf85d01d7
commit f2092faf2b6bd491a1891d5d5e393a8bf85d01d7
Author: Andreas Schwab <schwab@redhat.com>
Date: Fri Feb 25 16:51:24 2011 -0500
Don't crash when dependencies are missing
diff --git a/ChangeLog b/ChangeLog
index 0113c4c..c30fb5c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
+2011-02-17 Andreas Schwab <schwab@redhat.com>
+
+ [BZ #12454]
+ * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
+ dependencies are missing.
+
2011-02-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
- Fix __if_freereq crash: Unlike the generic version which uses free,
+ Fix __if_freereq crash: Unlike the generic version which uses free,
Hurd needs munmap.
* sysdeps/mach/hurd/ifreq.h: New file.
diff --git a/elf/dl-deps.c b/elf/dl-deps.c
index 440fb56..5288353 100644
--- a/elf/dl-deps.c
+++ b/elf/dl-deps.c
@@ -491,6 +491,10 @@ _dl_map_object_deps (struct link_map *map,
if (errno == 0 && errno_saved != 0)
__set_errno (errno_saved);
+ if (errno_reason)
+ _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
+ NULL, errstring);
+
struct link_map **old_l_initfini = NULL;
if (map->l_initfini != NULL && map->l_type == lt_loaded)
{
@@ -683,8 +687,4 @@ Filters not supported with LD_TRACE_PRELINKING"));
}
if (old_l_initfini != NULL)
_dl_scope_free (old_l_initfini);
-
- if (errno_reason)
- _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname,
- NULL, errstring);
}
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 +++++++-
elf/dl-deps.c | 8 ++++----
2 files changed, 11 insertions(+), 5 deletions(-)
hooks/post-receive
--
GNU C Library master sources