diff options
author | Zhai Edwin <edwin.zhai@intel.com> | 2011-12-16 15:53:23 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-16 16:03:47 +0000 |
commit | 584abc5f3d6cbaf8f8bf09123e8abc421f0699a8 (patch) | |
tree | ec9a3e015c1fc8a7f901045f11cee1e230196266 /meta/recipes-sato/libical/files | |
parent | 012b6054cd5757edd6b1eb31789718bb97c26193 (diff) | |
download | openembedded-core-584abc5f3d6cbaf8f8bf09123e8abc421f0699a8.tar.gz openembedded-core-584abc5f3d6cbaf8f8bf09123e8abc421f0699a8.tar.bz2 openembedded-core-584abc5f3d6cbaf8f8bf09123e8abc421f0699a8.tar.xz openembedded-core-584abc5f3d6cbaf8f8bf09123e8abc421f0699a8.zip |
libical: Fix deadlock in pthread
libical introduce pthread support after 0.47, but lead deadlock with missing
some unlock code. This makes dates start hang.
Add new patch to properly release mutex.
[YOCTO #1825] got fixed.
Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato/libical/files')
-rw-r--r-- | meta/recipes-sato/libical/files/pthread-fix.patch | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/meta/recipes-sato/libical/files/pthread-fix.patch b/meta/recipes-sato/libical/files/pthread-fix.patch new file mode 100644 index 000000000..aa7767f22 --- /dev/null +++ b/meta/recipes-sato/libical/files/pthread-fix.patch @@ -0,0 +1,52 @@ +New added pthread feathre leads some deadlock with some unlock code missing. +This patch fix it. + +Signed-off-by: Zhai Edwin <edwin.zhai@intel.com> + +Upstream-Status: Pending + +Index: libical-0.47/src/libical/icaltimezone.c +=================================================================== +--- libical-0.47.orig/src/libical/icaltimezone.c 2011-12-16 13:42:25.000000000 +0800 ++++ libical-0.47/src/libical/icaltimezone.c 2011-12-16 14:16:25.000000000 +0800 +@@ -1773,7 +1773,7 @@ + filename = (char*) malloc (filename_len); + if (!filename) { + icalerror_set_errno(ICAL_NEWFAILED_ERROR); +- return; ++ goto out; + } + + snprintf (filename, filename_len, "%s/%s.ics", get_zone_directory(), +@@ -1783,7 +1783,7 @@ + free (filename); + if (!fp) { + icalerror_set_errno(ICAL_FILE_ERROR); +- return; ++ goto out; + } + + +@@ -1807,7 +1807,7 @@ + + if (!subcomp) { + icalerror_set_errno(ICAL_PARSE_ERROR); +- return; ++ goto out; + } + + icaltimezone_get_vtimezone_properties (zone, subcomp); +@@ -1817,10 +1817,12 @@ + icalcomponent_free(comp); + } + #endif +-#ifdef HAVE_PTHREAD ++ + out: ++#ifdef HAVE_PTHREAD + pthread_mutex_unlock(&builtin_mutex); + #endif ++ return; + } + + |