Incomplete .depend.boot (BTS #534526)?

Petter Reinholdtsen pere at hungry.com
Tue Jul 21 22:45:04 UTC 2009


[Petter Reinholdtsen]
> This test suite script is able to reproduce it when building for
> SuSe.  I rewrote it to use only start symlinks in runleve 1, to
> avoid the areas where SuSe and Debian differ.  Do you see the error
> in your build too?

One can even remove the references to mountnfs, and the bug still
trigger.

Reading the source and adding some debug output, I am starting to
suspect the problem is in expand_faci().  I still do not quite
understand that code, but managed to get the test case working by
adding this patch.  It causes other test cases to segfault, so it
isn't the correct fix, but I thought it best to pass on the
information.


Index: insserv.c
===================================================================
--- insserv.c   (revision 922)
+++ insserv.c   (working copy)
@@ -2043,6 +2106,7 @@
                        free(rent->r[0].ref);
                    rent->r[0] = rnxt->r[0];
                    ++(*rent->r[0].ref);
+                   insert(&rnxt->r_list, head);
                } else {
                    repl_t *restrict subst;
                    if (posix_memalign((void*)&subst, sizeof(void*), alignof(repl_t)) != 0)

This is as far I have have gotten with debugging this issue.

Happy hacking,
-- 
Petter Reinholdtsen



More information about the initscripts-ng-devel mailing list