Skip to contentSkip to conversation

Badness in remove_proc_entry

DISCUSSION Giuliano Pochini 2 participants 3 messages Mar 27, 2004 – Apr 2, 2004

lore
Share & tools
lore
#0 lore raw

I'm not sure if this is alsa's fault. It happens when I unload the module. Yup, snd_gina24 is the driver I'm developing, but it also happens with snd-powermac and when I try to load a module for a card I don't have.

Linux Jay 2.6.5-rc2-ben0 #1 SMP Sat Mar 27 09:10:55 CET 2004 ppc unknown

Badness in remove_proc_entry at fs/proc/generic.c:660

Call trace:
 [c000bbe4] dump_stack+0x18/0x28
 [c00089f4] check_bug_trap+0x84/0xac
 [c0008b4c] ProgramCheckException+0x130/0x170
 [c00080b4] ret_from_except_full+0x0/0x4c
 [c00973a4] remove_proc_entry+0x100/0x154
 [e668c64c] snd_remove_proc_entry+0x24/0x34 [snd]
 [e668df28] snd_info_unregister+0xb0/0x128 [snd]
 [e668d668] snd_info_card_free+0x74/0xa4 [snd]
 [e668afd8] snd_card_free+0xf8/0x2a0 [snd]
 [e671d63c] snd_Echo_remove+0x80/0x84 [snd_gina24]
 [c00ec21c] pci_device_remove+0x60/0x64
 [c012ab80] device_release_driver+0x84/0x88
 [c012abb0] driver_detach+0x2c/0x50
 [c012aee0] bus_remove_driver+0x54/0xb8
 [c012b2dc] driver_unregister+0x18/0x88

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

#1 lore raw
Quoted 4 lines · Giuliano Pochini

I'm not sure if this is alsa's fault. It happens when I unload the module. Yup, snd_gina24 is the driver I'm developing, but it also happens with snd-powermac and when I try to load a module for a card I don't have.

It's fixed in 1.0.4rc1.

Jaroslav

-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

#2 lore raw
Quoted 7 lines · On Sun, 28 Mar 2004 09:54:46 +0200 (CEST) Jaroslav Kysela <[email protected]> wrote:
Quoted 3 lines · Giuliano Pochini

I'm not sure if this is alsa's fault. It happens when I unload the module. Yup, snd_gina24 is the driver I'm developing, but it also happens with snd-powermac and when I try to load a module for a card I don't have.

It's fixed in 1.0.4rc1.

I ported my driver to 1.0.4rc2. There is no "badness" in the message anymore :) but it still comes up. Now it only happens if I try two modules I'm developing. Example:

modprobe snd-layla24

No errors, but I don't have that card. lsmod shows the module is loaded.

modprobe snd-gina24 (my card) --> dmesg:

kobject_register failed for Echoaudio (-17)

Call trace:
 [c000bbe4] dump_stack+0x18/0x28
 [c00dfb24] kobject_register+0x68/0x6c
 [c012adec] bus_add_driver+0x50/0xf0
 [c012b2b4] driver_register+0x38/0x48
 [c00ec408] pci_register_driver+0x50/0x6c
 [e66669b0] alsa_card_Echo_init+0x1c/0x774 [snd_gina24]
 [c003de50] sys_init_module+0x200/0x3e0
 [c0007b1c] ret_from_syscall+0x0/0x44

Echoaudio soundcard not found or device busy

If I load snd-gina24 and then snd-layla24, it complains when I load the latted, even if snd-gina24 is loaded and running fine. It does not happen if the first module I load is something else (eg. hdsp). Maybe there is something I'm not aware of... I already tried to use different MODULE_DESCRIPTION and MODULE_DEVICES without success.

--
Giuliano.

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click