Return-Path: Message-ID: Date: Tue, 14 Oct 2008 18:44:20 -0300 From: "Claudio Takahasi" To: "Bastien Nocera" Subject: Re: [PATCH] Fix possible crash on startup Cc: "BlueZ development" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <1223766202.31961.868.camel@cookie.hadess.net> <2d5a2c100810130643h81e09f0qc3c9cd57602867e7@mail.gmail.com> <1223907411.31961.3251.camel@cookie.hadess.net> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: On Tue, Oct 14, 2008 at 3:47 PM, Claudio Takahasi wrote: > 2008/10/13 Bastien Nocera : >> On Mon, 2008-10-13 at 10:43 -0300, Luiz Augusto von Dentz wrote: >>> Hi, >>> >>> I guess we can make all driver to do the discover on Connect if the >>> record is not available, similar to what is done in audio. >> >> I'm not certain whether the problem is no record, or a broken one. >> >> This is the file causing problems, the device line that causes the crash >> is the one starting with 00:1E:45:AD:F1:96. So there is data, but it >> probably isn't parsed properly. >> >> Cheers >> > > Hi, > > The source of this problem is an invalid sequence in the service > record. See entry 00:1E:45:AD:F1:96#02008007 in sdp record file. > About the Johan's questions: > 1. we can access rec->handle directly, we have to fix it > 2. service record is necessary, at least HIDDescriptorList > > Claudio > -- > -- > Claudio Takahasi > Instituto Nokia de Tecnologia > Recife - Pernambuco - Brasil > +55 81 30879999 Hi Bastien, The patch that you sent is enough to fix this problem. There isn't error when parsing the service record, the illegal multibyte sequence error that I saw when debugging is a normal error when parsing "storage" files, it is exit condition. I am just wondering how you created the sdp file that you sent me, did you remove some entries? My sdp file contains 18 entries, all of them are related to the Sony Ericsson K850. Regards, Claudio.