[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

snd_driver: bug found but not (yet) fully identified



Hi all,

following a FreeBSD guide, IIRC, I've been trying to kldload snd_driver,
but it failed with:
> $ sudo kldload snd_driver
> kldload: can't load snd_driver: No such file or directory

I checked the source, kldconfig -r, etc., everything seemed fine.

Yesterday I learned about ktrace and kdump, which I tried on kldload,
please find below an excerpt of the trace and attached the full trace.

,---[truncated trace]---
| 29010 kldload  CALL  kldload(0xbfbfee94)
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_driver"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_driver.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_driver.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_vibes"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_vibes.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_vibes.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/sound"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/sound.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/sound.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_via82c686"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_via82c686.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_via82c686.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_via8233"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_via8233.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_via8233.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_t4dwave"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_t4dwave.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_t4dwave.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_solo"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_solo.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_solo.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sbc"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sbc.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sbc.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sb8"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sb8.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sb8.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sb16"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sb16.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_sb16.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_neomagic"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_neomagic.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_neomagic.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_mss"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_mss.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_mss.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_maestro3"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_maestro3.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_maestro3.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_maestro"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_maestro.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_maestro.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ich"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ich.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ich.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_fm801"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_fm801.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_fm801.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ess"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ess.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ess.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_es137x"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_es137x.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_es137x.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_emu10k1"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_emu10k1.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_emu10k1.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ds1"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ds1.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_ds1.ko"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/linker.hints"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_csapcm"
| 29010 kldload  NAMI  "/lib/modules/6.2-1-686/snd_csapcm.ko"
| 29010 kldload  NAMI  "/boot/kernel/linker.hints"
| 29010 kldload  NAMI  "/boot/kernel/snd_csa.ko"
| 29010 kldload  NAMI  "/boot/kernel/snd_csa.ko.ko"
| 29010 kldload  RET   kldload -1 errno 2 No such file or directory
| 29010 kldload  CALL  write(0x2,0xbfbfc61c,0x9)
| 29010 kldload  GIO   fd 2 wrote 9 bytes
|       "kldload: "
| 29010 kldload  RET   write 9
| 29010 kldload  CALL  write(0x2,0xbfbfc634,0x15)
| 29010 kldload  GIO   fd 2 wrote 21 bytes
|       "can't load snd_driver"
| 29010 kldload  RET   write 21/0x15
| 29010 kldload  CALL  write(0x2,0x281a3599,0x2)
| 29010 kldload  GIO   fd 2 wrote 2 bytes
|       ": "
| 29010 kldload  RET   write 2
| 29010 kldload  CALL  write(0x2,0xbfbfc61c,0x1a)
| 29010 kldload  GIO   fd 2 wrote 26 bytes
|       "No such file or directory
|       "
| 29010 kldload  RET   write 26/0x1a
| 29010 kldload  CALL  exit(0x1)
`---

I don't really know why, but every module but snd_csa is loaded
successfully. If I kldload manually snd_csa, I'm able to load snd_driver
then, w/o troubles. What is quite weird is that snd_csa.ko is under
/lib/modules/6.2-1-686 just like every other module. I also wonder why
for each driver, the linker.hints file is read from the module directory
and for the only snd_csa, it is read from the /boot/kernel directory...

Anyway, sound up and running now. \o/

Any hint on what could be going wrong is welcome.

Cheers,

-- 
Cyril Brulebois

Attachment: ktrace.txt.gz
Description: application/gunzip

Attachment: pgp9Q3ioY73Ac.pgp
Description: PGP signature


Reply to: