Bug 15695

Summary: "modprobe -r snd-intel8x0" loops
Product: Sisyphus Reporter: Ivan Zakharyaschev <imz>
Component: module-init-toolsAssignee: Alexey Gladkov <legion>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: major    
Priority: P2 CC: ldv, mike, shrek, vsu
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
typescript
none
modprobe-r-snd_intel8x0-v.err
none
modprobe-r-snd-intel8x0.strace.bz2 none

Description Ivan Zakharyaschev 2008-05-17 23:39:13 MSD
module-init-tools-3.3-alt0.5.pre6

Running "modprobe -r snd-intel8x0" causes something like an exponential forking. 
 
Kernel 2.6.24-std-def-alt6 is used:
$ rpm -qa kernel\* | fgrep std-def | egrep alt.\*6$
kernel-image-std-def-2.6.24-alt6
kernel-modules-drm-std-def-2007.06.10-alt2.132632.6
kernel-modules-alsa-std-def-1.0.16-alt2.132632.6
$ 

My lsmod can be seen in the attached typescript. That typescript illustrates my
attempt to find the loop by --dry-run. It seems to me that I found it, unless I
don't understand how modprobe works; for example, removing "snd-mixer-oss" is
repeated in my typescript.



Expected Results:  
There is no loop.
Comment 1 Ivan Zakharyaschev 2008-05-17 23:40:38 MSD
Created attachment 2630 [details]
typescript

My attempt to demonstrate the loop by --dry-run.
Comment 2 Ivan Zakharyaschev 2008-05-17 23:49:10 MSD
(In reply to comment #0)

> Running "modprobe -r snd-intel8x0" causes something like an exponential forking. 

Perhaps I'm not right about "exponential" (in my typescript, I haven't explored
the other call branches), but anyway it produces an infinitely growing number of
 modprobe processes.
Comment 3 Ivan Zakharyaschev 2008-05-18 00:27:10 MSD
Created attachment 2631 [details]
modprobe-r-snd_intel8x0-v.err

To show what it looks like without --dry-run, the result of: modprobe -r
snd_intel8x0 -v &> modprobe-r-snd_intel8x0-v.err

At some moment, I started killing them.
Comment 4 Ivan Zakharyaschev 2008-05-18 03:42:51 MSD
Created attachment 2632 [details]
modprobe-r-snd-intel8x0.strace.bz2

The more real picture of the loop given by: 
strace -fF -e trace=process modprobe -r snd-intel8x0 &>
modprobe-r-snd-intel8x0.strace
Comment 5 Ivan Zakharyaschev 2008-05-19 18:03:51 MSD
Perhaps it's a bug of /etc/modprobe.d/oss.

$ rpm -qf /etc/modprobe.d/oss
sound-scripts-0.50-alt1
$ 
Comment 6 Valery Inozemtsev 2009-01-01 23:21:45 MSK
sound-scripts-1.0.1-alt1