Skip to contentSkip to conversation

btsco crash without daemon

Bluez-devel ligi 2 participants 8 messages Jan 15, 2005 – Jan 16, 2005 Bluetooth drivers

lore
Share & tools
lore

ligi

author
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

- ---------------------- from demesg after a ls > /dev/dsp1
- --------------------

snd-bt-sco revision 1.4 $
snd-bt-sco: snd-bt-scod thread starting
snd-bt-sco: playback_open
snd-bt-sco: prepare ok bps: 16000 size: 32768 count: 8192
snd-bt-sco: playback_trigger 1

Unable to handle kernel NULL pointer dereference at virtual address

00000098
~ printing eip:
e0af9067
*pde = 00000000

Oops: 0002 [#1]
PREEMPT SMP
Modules linked in: snd_pcm_oss snd_mixer_oss snd_bt_sco snd_hwdep

ipw2100 firmware_class ieee80211 ieee80211_crypt ohci1394 ieee1394 tg3 snd_intel8x0 snd_ac97_codec snd_pcm snd_timer snd soundcore snd_page_alloc reiserfs asus_acpi cpufreq_userspace cpufreq_powersave cpufreq_ondemand usbserial rfcomm l2cap hci_usb bluetooth

CPU:    0
EIP:    0060:[<e0af9067>]    Not tainted VLI
EFLAGS: 00010046   (2.6.10)

EIP is at snd_card_bt_sco_playback_trigger+0x67/0x80 [snd_bt_sco]
eax: 00000022 ebx: 00000001 ecx: c03acabc edx: 00000086
esi: 00000000 edi: df355720 ebp: de6292c0 esp: df5f6d64
ds: 007b es: 007b ss: 0068
Process ls (pid: 8042, threadinfo=df5f6000 task=dfa2e560)

Stack: e0afa2a0 00000001 00000000 e0a43f74 00000003 e0a33168 de6292c0

00000001
~ e0a32e88 de6292c0 00000003 de62933c de6292c0 00000003 e0a43f74
e0a32f70
~ e0a43f74 de6292c0 00000003 de360000 00001000 00001000 00000000
df541800

Call Trace:
~ [<e0a33168>] snd_pcm_do_start+0x28/0x30 [snd_pcm]
~ [<e0a32e88>] snd_pcm_action_single+0x38/0x80 [snd_pcm]
~ [<e0a32f70>] snd_pcm_action+0xa0/0xb0 [snd_pcm]
~ [<e0a33260>] snd_pcm_start+0x20/0x30 [snd_pcm]
~ [<e0a3b92d>] snd_pcm_lib_write1+0x3ad/0x480 [snd_pcm]
~ [<c011dfa7>] printk+0x17/0x20
~ [<e0a3ba91>] snd_pcm_lib_write+0x91/0xb0 [snd_pcm]
~ [<e0a3b4d0>] snd_pcm_lib_write_transfer+0x0/0xb0 [snd_pcm]
~ [<e0b1f165>] snd_pcm_oss_write3+0x55/0xb0 [snd_pcm_oss]
~ [<e0b23bfa>] snd_pcm_plug_write_transfer+0x9a/0x100 [snd_pcm_oss]
~ [<e0b1f4f9>] snd_pcm_oss_write2+0x99/0xf0 [snd_pcm_oss]
~ [<e0b1fb08>] snd_pcm_oss_sync1+0x78/0x150 [snd_pcm_oss]
~ [<c01197e0>] default_wake_function+0x0/0x20
~ [<c0203132>] copy_from_user+0x42/0x70
~ [<e0b1fe21>] snd_pcm_oss_sync+0x241/0x290 [snd_pcm_oss]
~ [<e0b21216>] snd_pcm_oss_release+0x26/0xd0 [snd_pcm_oss]
~ [<c015e51b>] __fput+0x11b/0x130
~ [<c015cc19>] filp_close+0x59/0x90
~ [<c015ccbd>] sys_close+0x6d/0x90
~ [<c01031af>] syscall_call+0x7/0xb
Code: ff ff ff 75 16 31 c0 89 86 98 00 00 00 c7 04 24 e0 a2 af e0 e8

3b 4f 62 df 31 c0 8b 5c 24 08 8b 74 24 0c 8b 7c 24 10 83 c4 14 c3 <89> be 98 00 00 00 c7 04 24 20 a3 af e0 eb da 8d 76 00 8d bc 27 ~ <6>note: ls[8042] exited with preempt_count 2

- --- ----------------------------------------

that was all because i cant get the daemon working with kernle 2.6.10
- - in 2.6.9 evrything was working fine. Something very wicked is going on with alsa because nothing is going on in hcidump.

bash-2.05b# ./btsco 00:0E:16:01:06:ED Device is 1:0
Error: btsco open (1-0): No such device or address

but
bash-2.05b# lsmod

Module                  Size  Used by
sg                     31648  0
snd_pcm_oss            49824  1
snd_mixer_oss          18688  1 snd_pcm_oss
snd_bt_sco             11552  1
snd_hwdep               8608  1 snd_bt_sco
ipw2100               142532  0
firmware_class          8832  1 ipw2100
ieee80211              34212  1 ipw2100
ieee80211_crypt         5832  1 ieee80211
ohci1394               32644  0
ieee1394               95156  1 ohci1394
tg3                    83588  0
snd_intel8x0           30240  0
snd_ac97_codec         76000  1 snd_intel8x0
snd_pcm                84996  4
snd_pcm_oss,snd_bt_sco,snd_intel8x0,snd_ac97_codec
snd_timer              22660  1 snd_pcm
snd                    50404  8
snd_pcm_oss,snd_mixer_oss,snd_bt_sco,snd_hwdep,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               8672  2 snd
snd_page_alloc          8708  3 snd_bt_sco,snd_intel8x0,snd_pcm
reiserfs              239440  1
asus_acpi              11156  0
cpufreq_userspace       6112  0
cpufreq_powersave       2560  0
cpufreq_ondemand        6568  0
usbserial              27368  0
rfcomm                 35224  0
l2cap                  23680  5 rfcomm
hci_usb                13568  2
bluetooth              45316  7 rfcomm,l2cap,hci_usb

thanx 4 attention
ligi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6Rt63NorRo/jFWIRAoT1AJ9TQ5OPcZEhi55CGZXqdo2b6bEGPgCgkdZ2 vgVKOBQlyUTVIkOq0Q+o1gQ=
=z/Mi
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ligi wrote:

| that was all because i cant get the daemon working with kernle 2.6.10
| - in 2.6.9 evrything was working fine. Something very wicked is going
| on with alsa because nothing is going on in hcidump.

Why can't you get it working with 2.6.10? It works absolutly flawless here with 2.6.10.

Maybe you should get the latest sources from CVS (module btsco) and give it a fresh start?

Also do NOT use any kernel patches any more! The alternate setting for hci_usb can be set by parameter when loading the module, and the snd-bt-sco resides in the /kernel directory and can be compiled simply by using "make" in this directory :)

best regards,
~ Lars

- --
Lars Grunewaldt
* software development
* multimedia design
skills: C/C++/Java/PHP/(X)HTML/Flash/audio/video
web: http://www.dark-reality.de
mail: [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6SXzQWC6DTWkDAoRAn9OAJ9bpuyXgTK0gDxsO7JLPlC/DRVLWwCglpWl nP65nqPbK0qCqhCGlBKrWnU=
=eI9d
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lars Grunewaldt wrote:

| ligi wrote:
|
| | that was all because i cant get the daemon working with kernle 2.6.10
| | - in 2.6.9 evrything was working fine. Something very wicked is going
| | on with alsa because nothing is going on in hcidump.
|
| Why can't you get it working with 2.6.10? It works absolutly flawless
| here with 2.6.10.
|

i dont know - the problems occoured when btsco got rid of the kernel-patches in my case when migrating to 2.6.10

| Maybe you should get the latest sources from CVS (module btsco) and give
| it a fresh start?
|

i use them.

| Also do NOT use any kernel patches any more!

i dont patch the kernel anymore and neither alsa

| The alternate setting for
| hci_usb can be set by parameter when loading the module,

what do you mean ?

| and the
| snd-bt-sco resides in the /kernel directory and can be compiled simply
| by using "make" in this directory :)
|

there are no problems in building - just in runnig wont work

bash-2.05b# ./btsco 00:0E:16:01:06:ED Device is 1:0
Error: btsco open (1-0): No such device or address

ligi

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6Sx33NorRo/jFWIRAu/zAJ4ryw5qFId9sPtIhRI5p+6aLkocQQCfZ8QQ Pjx4uVfXYwd7/L/b3KjwBIY=
=WLxP
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#3 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ligi wrote:
| Lars Grunewaldt wrote:
|

| | Why can't you get it working with 2.6.10? It works absolutly flawless
| | here with 2.6.10.
| |
| i dont know - the problems occoured when btsco got rid of the
| kernel-patches in my case when migrating to 2.6.10

did you patch the kernel with the -mh10 patchset from bluez? I did, and I don't have any problems at all...

|
| | Maybe you should get the latest sources from CVS (module btsco) and give
| | it a fresh start?
| |
| i use them.

OK :)

|
| | Also do NOT use any kernel patches any more!
|
| i dont patch the kernel anymore and neither alsa

any might have been wrong - you should use the mh10 patch from bluez, as noted above...

|
| | The alternate setting for
| | hci_usb can be set by parameter when loading the module,
|
|
| what do you mean ?

If you don't know, you don't have to bother. This is only important for multiple headsets (if you don't use only one headset, you have to change this "alternate setting". If you use only one headset, you don't have to care :)

But this (or, the absence of the module parameter) was the reason for the btsco-kernel patch.

| | and the
| | snd-bt-sco resides in the /kernel directory and can be compiled simply
| | by using "make" in this directory :)
| |
| there are no problems in building - just in runnig  wont work
|
| bash-2.05b# ./btsco 00:0E:16:01:06:ED
| Device is 1:0
| Error: btsco open (1-0): No such device or address

yes, that's strange. I don't experience any problems here :(

regards,
~ Lars

- --
Lars Grunewaldt
* software development
* multimedia design
skills: C/C++/Java/PHP/(X)HTML/Flash/audio/video
web: http://www.dark-reality.de
mail: [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6TSbQWC6DTWkDAoRApsfAKCPaUe4+CSv6uIxeBKidQQy+6F5OACgiGJD sMduvdTYZQSt6nCrTjvVW6Y=
=7qhc
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author
#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ok - i have installed the mh1 patch now but that did not solve my problem. I had a little look on the code and the problematic line seems to be:

~ /* open hwdep on audio device */
~ if ((err = snd_hwdep_open(&handle, hwdep_name, O_RDWR)) < 0) {
~ error("btsco open (%i-%i): %s\n", card, dev,
snd_strerror(err));
~ return -1;
~ }

I am using Gentoo and here alsa is an ebuild that wants alsa not to be compiled in the kernel it has to be external( build from alsa-driver-1.0.8rc2.tar.bz2 by that ebuild of portage ). But snd_hwdep is loaded and there is no complaining of missing things
- - this method just fails...
Has anyone some Hint ?

ligi
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6WgS3NorRo/jFWIRAtJBAKDchAK+HqeCW/H1DjjRBh2yt4VX9gCfVXR/ USHgCsykPm4tsJmNHSh42GI=
=VQLx
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#5 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ligi wrote:

|
| I am using Gentoo and here alsa is an ebuild that wants alsa not to be
| compiled in the kernel it has to be external( build from
| alsa-driver-1.0.8rc2.tar.bz2 by that ebuild of portage ).
| But snd_hwdep is loaded and there is no complaining of missing things
| - this method just fails...
| Has anyone some Hint ?

Just wanted to note that you don't need the external alsa driver package, only alsalib (I'm using gentoo, too). Of course this only applies if your other soundcards are supported well by the kernel.

Maybe you should try using the kernel alsa stuff and drop the external alsa stuff, it's not supposed to work this way. Especially because snd-bt-sco is linked against the KERNEL alsa stuff, not your external driver stuff, so I think this might very well be the source of the problem.

Why do you want to use the external alsa-driver anyway?

best regards,
~ Lars

- ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

- --
Lars Grunewaldt
* software development
* multimedia design
skills: C/C++/Java/PHP/(X)HTML/Flash/audio/video
web: http://www.dark-reality.de
mail: [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6bV+QWC6DTWkDAoRAsLqAKCwR/tq9OSqGfNzkx7nBgXG8OoxbACgsoIT je9e6N4HDQtRHUnfLlqyKX4=
=4FnC
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

author
#6 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lars Grunewaldt wrote:

| ligi wrote: | | I am using Gentoo and here alsa is an ebuild that
| wants alsa not to be | compiled in the kernel it has to be
| external( build from | alsa-driver-1.0.8rc2.tar.bz2 by that ebuild
| of portage ). | But snd_hwdep is loaded and there is no complaining
| of missing things | - this method just fails... | Has anyone some
| Hint ?
|
| Just wanted to note that you don't need the external alsa driver
| package, only alsalib (I'm using gentoo, too). Of course this only
| applies if your other soundcards are supported well by the kernel.
|
| Maybe you should try using the kernel alsa stuff and drop the
| external alsa stuff, it's not supposed to work this way. Especially
| because snd-bt-sco is linked against the KERNEL alsa stuff, not
| your external driver stuff, so I think this might very well be the
| source of the problem.
|
Yes it was. Big up  - you made my Day a brighter Day ;-)

| Why do you want to use the external alsa-driver anyway? |
It recommended to use the external Driver in the Gentoo docs - and i found nothing in the btsco docs that says something diffrent - so i used the external Driver ( Well - I like the external Driver Concept (in a world with so much devices ) more too .... )

| best regards, ~ Lars
|
PS: You can mark the SouthWing NeoVoice Headset ( on a Sitecom USB -> BT Dongle ) as working for btsco - there is no wiki so I cant do this now !-)
btw. anyone interested in a btscoWiki ?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6kTz3NorRo/jFWIRAk8EAJ92zMrOsojDhiIR582UC5eNsSr+rQCgrwRB VuOS+rI7y+e+Gn5+jnimQG4=
=8HE2
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

#7 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ligi wrote:

|
| | Why do you want to use the external alsa-driver anyway?
| |
| It recommended to use the external Driver in the Gentoo docs - and i
| found nothing in the btsco docs that says something diffrent - so i
| used the external Driver ( Well -  I like the external Driver Concept
| (in a world with so much devices ) more too .... )

well, we want to migrate the snd-bt-sco to userspace if possible, so you won't need a specific alsa driver (kernel vs. standalone) sooner or later, hopefully. But until than it's the easiest way (and the proper way) to use kernel alsa as a reference, not the standalone alsa (the kernel is available on any system, isn't it? ;)

I ran into some problems myself when I was using btsco on a system that had an unsupported audio device that needed a driver patched into alsa (no patch for the kernel available) AND that was written in C++ so very bad mojo. I hacked in into the kernel, got bad voices from lkml (*vbeg*) for using c++ in kernel space and stuff. Well was fun. The point beeing:
meanwhile this driver has been re-implemented in C and there's a kernel patch so it can easily used with alsa-kernel.

| PS: You can mark the SouthWing NeoVoice Headset ( on a Sitecom USB ->
| BT Dongle ) as working for btsco - there is no wiki so I cant do this
| now !-)
| btw. anyone interested in a btscoWiki ?

Sounds good for me, it would make changing the site a lot easier, would it not? Any more comments from i.e. Brad?

Of course an "external resource site" is possible even if we don't want to have an official wiki ;)

best regards,
~ Lars

- --
Lars Grunewaldt
* software development
* multimedia design
skills: C/C++/Java/PHP/(X)HTML/Flash/audio/video
web: http://www.dark-reality.de
mail: [email protected]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB6p/yQWC6DTWkDAoRAuRUAKCImgzbBTD/5PhqzRKUSRJAgce1SQCeNEWQ ff5CCb1DTfXrk21W9n05SAQ=
=nx+Z
-----END PGP SIGNATURE-----

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel