Re: 2.5.51 ide module problem

From: Adam J. Richter (
Date: Wed Dec 11 2002 - 01:50:20 EST

>depmod will ecounter "Segmentation fault" if the ide.ko and
>modules are in /lib/modules/2.5.51/kernel

        I think the new depmod recurses infinitely when it encounters
circular dependencies. It eventually segfaults and leaves a huge
modules.dep file from the infinite loop. If you look at the final
huge line in that file, you can see where the loop occurred.

        depmod has no need to do any recursion, since it only needs
to determine the immediate dependencies of each module. However,
noticing such loops and printing them out would be a handy feature.

        I use IDE as a module, but I had to change the Makefile to
build a big ide-mod.o from most of the core objects rather than
allowing each one to be its own module. I believe I posted IDE
modularization patches at least once a couple of months ago, but it
seems to have fallen between the cracks. I could repost it if need
be, although I have not yet booted 2.5.51.

        Also note that I have not used the in kernel-based module
loader recently, as I have been patching my kernels to use the user
level module code. I am planning to try the kernel-base module loader
in 2.5.51 once I fix other problems it has finding the root device
under devfs. So, it's remotely possible that you may also see module
problems that I've missed.

Adam J. Richter __ ______________ 575 Oroville Road \ / Milpitas, California 95035
+1 408 309-6081 | g g d r a s i l United States of America
                         "Free Software For The Rest Of Us."
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sun Dec 15 2002 - 22:00:20 EST