linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fabien Chevalier - <fchevalier@silicom.fr>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] Kernel panic with SCO socket - Debian kernel 2.6.15-8
Date: Sun, 19 Mar 2006 12:16:33 +0100	[thread overview]
Message-ID: <441D3D91.3060000@silicom.fr> (raw)
In-Reply-To: <20060318201220.46312b44.henryk@ploetzli.ch>

[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]


>Hehe, I recently did something similar (in Python, though) ...
>
>  
>
Good to now i'm not alone playing with SCOs !!

>>The thing basically works... exect after 1or 2 minutes playback, the 
>>program suddenly exits.
>>Then i just have a few seconds left and *bang* . Kernel Panic :-(
>>    
>>
>
>... and had similar results. Just look at the memory consumption when
>this happens. Apparently all incoming SCO data is buffered in kernel
>memory for you to read, so you *must* read it, even if you only ever
>intend to send data.
>
>I'd also suggest you simply use select() to wait for incoming data and
>then only send something when you received (and read!) something. This
>nicely gives the right timing without guessing the delay parameter.
>
>  
>
Quite interesting is the way you solved the issue :-)
I'm gonna give a try to this select way of things :-)
By the way i just ran another test using hsplay. I basically send a SCO 
packet every second,
which is obviously not enough to sustain the SCO packet flow.
Using hcidump i am able to see the SCO flow coming from the Headset.
... and no crash at all :-)

Which for me basically means that the bug is somewhere on the 
PC-->Heaset flow, where something must be handled the wrong way...

Cheers,

Fabien

[-- Attachment #2: Type: text/html, Size: 1848 bytes --]

      reply	other threads:[~2006-03-19 11:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-18 17:00 [Bluez-devel] Kernel panic with SCO socket - Debian kernel 2.6.15-8 Fabien Chevalier -
2006-03-18 19:12 ` Henryk Plötz
2006-03-19 11:16   ` Fabien Chevalier - [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=441D3D91.3060000@silicom.fr \
    --to=fchevalier@silicom.fr \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).