]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Remove assert depending on confluence of guesses without anomaly.
authorRoland McGrath <roland@redhat.com>
Wed, 11 Feb 2009 01:03:19 +0000 (17:03 -0800)
committerRoland McGrath <roland@redhat.com>
Wed, 11 Feb 2009 01:03:19 +0000 (17:03 -0800)
libdwfl/ChangeLog
libdwfl/link_map.c

index ba946c281b4efeb4f14622f903e319170a53bede..fb235c93e98bb92b96e0c7825f799f182b9a718b 100644 (file)
@@ -1,3 +1,8 @@
+2009-02-10  Roland McGrath  <roland@redhat.com>
+
+       * link_map.c (consider_executable): Don't assert dwfl_addrsegment
+       finds our module.  We shouldn't crash when we confuse some guesses.
+
 2009-02-10  Ulrich Drepper  <drepper@redhat.com>
 
        * open.c (decompress): Avoid crash with empty input file.
index e98903846591e9396a356556f3da042c8e895f98..30fb445abac5c0245e6da39aa904177112ced06a 100644 (file)
@@ -1,5 +1,5 @@
 /* Report modules by examining dynamic linker data structures.
-   Copyright (C) 2008 Red Hat, Inc.
+   Copyright (C) 2008, 2009 Red Hat, Inc.
    This file is part of Red Hat elfutils.
 
    Red Hat elfutils is free software; you can redistribute it and/or modify
@@ -561,9 +561,7 @@ consider_executable (Dwfl_Module *mod, GElf_Addr at_phdr, GElf_Addr at_entry,
       void *buffer = NULL;
       size_t buffer_available = addrsize (ehdr.e_ident[EI_CLASS]);
 
-      Dwfl_Module *m;
-      int segndx = INTUSE(dwfl_addrsegment) (mod->dwfl, d_val_vaddr, &m);
-      assert (m == mod);
+      int segndx = INTUSE(dwfl_addrsegment) (mod->dwfl, d_val_vaddr, NULL);
 
       if ((*memory_callback) (mod->dwfl, segndx,
                              &buffer, &buffer_available,