[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-bluetooth
Subject:    Re: [PATCH][RFC] Fix SDP resolving segfault
From:       Manuel Naranjo <manuel () aircable ! net>
Date:       2010-07-29 13:34:43
Message-ID: 4C518373.6000706 () aircable ! net
[Download RAW message or body]

Luiz,
> I guess I finally figure out what could be the source of your
> problems, we are not removing the watches when caching the session and
> since the context is already freed bt_cancel_discovery doesn't work.
>
> The attached patch should fix this problem, Im also reseting the
> internal data of the session by doing sdp_set_notify so if we are not
> closing the session it will then reset the callback and data to NULL.
>    

Looks like a possible fix nice work thanks!.

Unfortunately I will not be able to test until next week. I let you know 
when I get some results, I got my netbook today in a mall with some more 
debug messages, I added a few calls to error in the search_cb that 
prints all the pointer numbers when it gets called, that will get some 
more information. I could fix the problem this way as well, but this is 
working on the simpthon not on the cause like yours.

You think the hole problem is because of the cache? Wow I never thought 
it that way. But it makes sense. It also makes sense to move cleanup 
processes inside the cleanup function.

I will give this a try and let you know. Maybe I can results before the 
Tuesday, but I doubt it.

Manuel

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic