Re: [PATCH][RFC] Fix SDP resolving segfault

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

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux