First submitted in http://bugs.gentoo.org/show_bug.cgi?id=143753#c3 deps_cmp seems to expect a single NULL entry, but is unable to cope with two NULL entries, causing member access through a null pointer and thus SIGSEGV. 2006-08-25 Martin von Gagern --- prelink.orig/src/cache.c 2006-08-25 11:27:58.000000000 +0200 +++ prelink/src/cache.c 2006-08-25 11:29:40.000000000 +0200 @@ -336,6 +336,8 @@ struct prelink_entry *a = * (struct prelink_entry **) A; struct prelink_entry *b = * (struct prelink_entry **) B; + if (a == NULL && b == NULL) + return 0; /* fixes http://bugs.gentoo.org/143753 */ if (a == NULL && b != NULL) return 1; if (a != NULL && b == NULL)