Bug 15695 - "modprobe -r snd-intel8x0" loops
Summary: "modprobe -r snd-intel8x0" loops
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: module-init-tools (show other bugs)
Version: unstable
Hardware: all Linux
: P2 major
Assignee: Alexey Gladkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-17 23:39 MSD by Ivan Zakharyaschev
Modified: 2009-01-01 23:21 MSK (History)
4 users (show)

See Also:


Attachments
typescript (11.90 KB, text/plain)
2008-05-17 23:40 MSD, Ivan Zakharyaschev
no flags Details
modprobe-r-snd_intel8x0-v.err (3.79 KB, text/plain)
2008-05-18 00:27 MSD, Ivan Zakharyaschev
no flags Details
modprobe-r-snd-intel8x0.strace.bz2 (27.04 KB, application/x-bzip2)
2008-05-18 03:42 MSD, Ivan Zakharyaschev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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