diff options
author | Laurentiu Palcu <laurentiu.palcu@intel.com> | 2013-06-11 17:28:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-06-11 18:07:17 +0100 |
commit | 0a697caca4fa8f7cc932a8d715ea3210ef6b23f5 (patch) | |
tree | edf7f426f7a6be32ff983613bfbc04b6ab5d66df /meta | |
parent | 52c00a5e935c35f8c2f4c074de09748aabb2f4ec (diff) | |
download | poky-0a697caca4fa8f7cc932a8d715ea3210ef6b23f5.tar.gz |
menu-cache: Fix segmentation fault
[YOCTO #4353]
(From OE-Core master rev: 8c9c6155e6d83675a94b4eaae4ffc6dfeca399ee)
(From OE-Core rev: 9bc9bb1eaca328b28aa1e914bb6e756989f7e301)
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-graphics/menu-cache/files/Fix-segfault.patch | 31 | ||||
-rw-r--r-- | meta/recipes-graphics/menu-cache/menu-cache_0.4.1.bb | 4 |
2 files changed, 34 insertions, 1 deletions
diff --git a/meta/recipes-graphics/menu-cache/files/Fix-segfault.patch b/meta/recipes-graphics/menu-cache/files/Fix-segfault.patch new file mode 100644 index 0000000000..74a04074ec --- /dev/null +++ b/meta/recipes-graphics/menu-cache/files/Fix-segfault.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From a497ea6aae3994b7f6527ef7599dd95baf2ad841 Mon Sep 17 00:00:00 2001 | ||
2 | From: Laurentiu Palcu <laurentiu.palcu@intel.com> | ||
3 | Date: Mon, 29 Apr 2013 12:04:20 +0300 | ||
4 | Subject: [PATCH] Fix segfault | ||
5 | |||
6 | Apparently, g_io_channel_unref() was called twice: once in the | ||
7 | menu-cache's on_client_closed() callback and once from the finalize | ||
8 | function, g_io_unix_finalize()/g_io_win32_finalize(), which is called | ||
9 | anyway when the source is removed. | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> | ||
13 | --- | ||
14 | menu-cache-daemon/menu-cached.c | 1 - | ||
15 | 1 file changed, 1 deletion(-) | ||
16 | |||
17 | diff --git a/menu-cache-daemon/menu-cached.c b/menu-cache-daemon/menu-cached.c | ||
18 | index e246bb4..a10b6db 100644 | ||
19 | --- a/menu-cache-daemon/menu-cached.c | ||
20 | +++ b/menu-cache-daemon/menu-cached.c | ||
21 | @@ -579,7 +579,6 @@ static void on_client_closed(gpointer user_data) | ||
22 | } | ||
23 | } | ||
24 | /* DEBUG("client closed"); */ | ||
25 | - g_io_channel_unref(ch); | ||
26 | } | ||
27 | |||
28 | static gboolean on_client_data_in(GIOChannel* ch, GIOCondition cond, gpointer user_data) | ||
29 | -- | ||
30 | 1.7.9.5 | ||
31 | |||
diff --git a/meta/recipes-graphics/menu-cache/menu-cache_0.4.1.bb b/meta/recipes-graphics/menu-cache/menu-cache_0.4.1.bb index d0c5340f89..2aabd4a87e 100644 --- a/meta/recipes-graphics/menu-cache/menu-cache_0.4.1.bb +++ b/meta/recipes-graphics/menu-cache/menu-cache_0.4.1.bb | |||
@@ -11,7 +11,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | |||
11 | SECTION = "x11/libs" | 11 | SECTION = "x11/libs" |
12 | DEPENDS = "glib-2.0 zlib" | 12 | DEPENDS = "glib-2.0 zlib" |
13 | 13 | ||
14 | SRC_URI = "${SOURCEFORGE_MIRROR}/lxde/menu-cache-${PV}.tar.gz" | 14 | SRC_URI = "${SOURCEFORGE_MIRROR}/lxde/menu-cache-${PV}.tar.gz \ |
15 | file://Fix-segfault.patch \ | ||
16 | " | ||
15 | 17 | ||
16 | SRC_URI[md5sum] = "20fed982f5d8e6ec8a56a5b48894ecf0" | 18 | SRC_URI[md5sum] = "20fed982f5d8e6ec8a56a5b48894ecf0" |
17 | SRC_URI[sha256sum] = "4fa9408e353fedba5b7314cbf6b6cd06d873a1424e281aa050d88bb9c0a0191e" | 19 | SRC_URI[sha256sum] = "4fa9408e353fedba5b7314cbf6b6cd06d873a1424e281aa050d88bb9c0a0191e" |