conky crashes when curl is in use

Bug #1154741 reported by Jérôme Poulin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Conky
Unknown
Unknown
conky (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Description: Ubuntu Raring Ringtail (development branch)
Release: 13.04

conky:
  Installed: 1.9.0-2
  Candidate: 1.9.0-2
  Version table:
 *** 1.9.0-2 0
        500 http://mirror.csclub.uwaterloo.ca/ubuntu/ raring/universe amd64 Packages
        100 /var/lib/dpkg/status

Conky crashes when it times out resolving a DNS request and "curl" is in use in the conkyrc file.

This seems to be a known bug in libcurl that makes it continue execution the the alarm handler.

Example reports elsewhere:
https://forums.gentoo.org/viewtopic-t-921242-view-next.html?sid=5b2b29177e675f05e4711ba7aa5b373d
http://stackoverflow.com/questions/9191668/error-longjmp-causes-uninitialized-stack-frame

Example stack trace:
Conky: desktop window (1400003) is subwindow of root window (155)
Conky: window type - normal
Conky: drawing to created window (0x2400002)
Conky: drawing to double buffer
*** longjmp causes uninitialized stack frame ***: conky terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x4b)[0xb72c304b]
/lib/libc.so.6(+0xe1fca)[0xb72c2fca]
/usr/lib/libcurl.so.4(Curl_global_host_cache_init+0x0)[0xb746abb8]
[0xb77c0400]
conky[0x80670ce]
/lib/libc.so.6(__libc_start_main+0xe6)[0xb71fb3a2]
conky[0x804cab1]
======= Memory map: ========
08048000-08087000 r-xp 00000000 08:04 314545 /usr/bin/conky
08087000-08088000 r--p 0003e000 08:04 314545 /usr/bin/conky
08088000-08089000 rw-p 0003f000 08:04 314545 /usr/bin/conky
08089000-080aa000 rw-p 00000000 00:00 0
09ded000-09f64000 rw-p 00000000 00:00 0 [heap]
b2d00000-b2d21000 rw-p 00000000 00:00 0
b2d21000-b2e00000 ---p 00000000 00:00 0
b2e4d000-b2e4e000 rw-p 00000000 00:00 0
b2e4e000-b2efe000 r--p 00000000 08:04 286990 /usr/share/fonts/dejavu/DejaVuSans.ttf
b2efe000-b2eff000 ---p 00000000 00:00 0
b2eff000-b36ff000 rw-p 00000000 00:00 0
b36ff000-b3700000 ---p 00000000 00:00 0
b3700000-b3f00000 rw-p 00000000 00:00 0
b3f00000-b3f95000 rw-p 00000000 00:00 0
b3f95000-b4000000 ---p 00000000 00:00 0
b4001000-b4011000 r-xp 00000000 08:04 315885 /lib/libresolv-2.14.1.so
b4011000-b4012000 r--p 00010000 08:04 315885 /lib/libresolv-2.14.1.so
b4012000-b4013000 rw-p 00011000 08:04 315885 /lib/libresolv-2.14.1.so
b4013000-b4015000 rw-p 00000000 00:00 0
b4015000-b4019000 r-xp 00000000 08:04 315886 /lib/libnss_dns-2.14.1.so
b4019000-b401a000 r--p 00003000 08:04 315886 /lib/libnss_dns-2.14.1.so
b401a000-b401b000 rw-p 00004000 08:04 315886 /lib/libnss_dns-2.14.1.so
b401b000-b4025000 r-xp 00000000 08:04 315858 /lib/libnss_files-2.14.1.so
b4025000-b4026000 r--p 00009000 08:04 315858 /lib/libnss_files-2.14.1.so
b4026000-b4027000 rw-p 0000a000 08:04 315858 /lib/libnss_files-2.14.1.so
b4027000-b4028000 ---p 00000000 00:00 0
b4028000-b4828000 rw-p 00000000 00:00 0
b4828000-b4829000 ---p 00000000 00:00 0
b4829000-b5029000 rw-p 00000000 00:00 0
b5029000-b502a000 ---p 00000000 00:00 0
b502a000-b582a000 rw-p 00000000 00:00 0
b582a000-b587c000 r--p 00000000 08:04 286988 /usr/share/fonts/dejavu/DejaVuSansMono.ttf
b587c000-b5882000 r--s 00000000 08:04 282223 /var/cache/fontconfig/acc285bc1956c3c4bc7afb41d537a85a-le32d4.cache-3
b5882000-b5884000 r--s 00000000 08:04 282161 /var/cache/fontconfig/b2d431a31d342c7b6b32ea8a8f796c86-le32d4.cache-3
b5884000-b5894000 r--s 00000000 08:04 282159 /var/cache/fontconfig/8d4af663993b81a124ee82e610bb31f9-le32d4.cache-3
b5894000-b5895000 r--s 00000000 08:04 264071 /var/cache/fontconfig/e61abf8156cc476151baa07d67337cae-le32d4.cache-3
b5895000-b5899000 r--s 00000000 08:04 263679 /var/cache/fontconfig/a595ca43be94766bbfe429f07fba82d0-le32d4.cache-3
b5899000-b589d000 r--s 00000000 08:04 263677 /var/cache/fontconfig/b7b96da43d018c777cd824110a0f12ee-le32d4.cache-3
b589d000-b58a4000 r--s 00000000 08:04 263641 /var/cache/fontconfig/12b26b760a24f8b4feb03ad48a333a72-le32d4.cache-3
b58a4000-b58a9000 r--s 00000000 08:04 263637 /var/cache/fontconfig/61c91b4f4892ffae4bc0efef540a1e5d-le32d4.cache-3
b58a9000-b58b4000 r--s 00000000 08:04 263635 /var/cache/fontconfig/f73c51d6200a78c2054c26a5b2398976-le32d4.cache-3
b58b4000-b58b9000 r--s 00000000 08:04 263634 /var/cache/fontconfig/d62e99ef547d1d24cdb1bd22ec1a2976-le32d4.cache-3
b58b9000-b58bc000 r--s 00000000 08:04 263633 /var/cache/fontconfig/f6b893a7224233d96cb72fd88691c0b4-le32d4.cache-3
b58bc000-b58c1000 r--s 00000000 08:04 263151 /var/cache/fontconfig/f349e9996a5320f6dd491cedd2b1f964-le32d4.cache-3
b58c1000-b5902000 r--s 00000000 08:04 263150 /var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-le32d4.cache-3
b5902000-b5943000 r--s 00000000 08:04 262892 /var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-le32d4.cache-3
b5943000-b5b08000 r--p 00000000 08:04 1704616 /usr/lib/locale/locale-archive
b5b08000-b5b0c000 rw-p 00000000 00:00 0
b5b0c000-b5b27000 r-xp 00000000 08:04 1708945 /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libgcc_s.so.1
b5b27000-b5b28000 r--p 0001a000 08:04 1708945 /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libgcc_s.so.1
b5b28000-b5b29000 rw-p 0001b000 08:04 1708945 /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libgcc_s.so.1
b5b29000-b5b2a000 rw-p 00000000 00:00 0
b5b2a000-b5c0c000 r-xp 00000000 08:04 1709709 /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libstdc++.so.6.0.14
b5c0c000-b5c10000 r--p 000e2000 08:04 1709709 /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libstdc++.so.6.0.14
b5c10000-b5c11000 rw-p 000e6000 08:04 1709709 /usr/lib/gcc/i686-pc-linux-gnu/4.5.3/libstdc++.so.6.0.14
b5c11000-b5c18000 rw-p 00000000 00:00 0
b5c18000-b6d86000 r--p 00000000 08:04 300959 /usr/lib/libicudata.so.48.1.1
b6d86000-b6d87000 rw-p 0116d000 08:04 300959 /usr/lib/libicudata.so.48.1.1
b6d87000-b6d96000 r-xp 00000000 08:04 1048867 /lib/libbz2.so.1.0.6
b6d96000-b6d97000 r--p 0000f000 08:04 1048867 /lib/libbz2.so.1.0.6
b6d97000-b6d98000 rw-p 00010000 08:04 1048867 /lib/libbz2.so.1.0.6
b6d98000-b6dbd000 r-xp 00000000 08:04 283234 /usr/lib/libexpat.so.1.6.0
b6dbd000-b6dbf000 r--p 00024000 08:04 283234 /usr/lib/libexpat.so.1.6.0
b6dbf000-b6dc0000 rw-p 00026000 08:04 283234 /usr/lib/libexpat.so.1.6.0
b6dc0000-b6dc4000 r-xp 00000000 08:04 286472 /usr/lib/libXdmcp.so.6.0.0
b6dc4000-b6dc5000 r--p 00003000 08:04 286472 /usr/lib/libXdmcp.so.6.0.0
b6dc5000-b6dc6000 rw-p 00004000 08:04 286472 /usr/lib/libXdmcp.so.6.0.0
b6dc6000-b6dc7000 rw-p 00000000 00:00 0
b6dc7000-b6dc9000 r-xp 00000000 08:04 286435 /usr/lib/libXau.so.6.0.0
b6dc9000-b6dca000 r--p 00001000 08:04 286435 /usr/lib/libXau.so.6.0.0
b6dca000-b6dcb000 rw-p 00002000 08:04 286435 /usr/lib/libXau.so.6.0.0
b6dcb000-b6f06000 r-xp 00000000 08:04 300988 /usr/lib/libicuuc.so.48.1.1
b6f06000-b6f10000 r--p 0013b000 08:04 300988 /usr/lib/libicuuc.so.48.1.1
b6f10000-b6f12000 rw-p 00145000 08:04 300988 /usr/lib/libicuuc.so.48.1.1
b6f12000-b6f15000 rw-p 00000000 00:00 0
b6f15000-b6f28000 r-xp 00000000 08:04 1048840 /lib/libz.so.1.2.5
b6f28000-b6f29000 r--p 00012000 08:04 1048840 /lib/libz.so.1.2.5
b6f29000-b6f2a000 rw-p 00013000 08:04 1048840 /lib/libz.so.1.2.5
b6f2a000-b706a000 r-xp 00000000 08:04 288319 /usr/lib/libcrypto.so.1.0.0
b706a000-b7079000 r--p 0013f000 08:04 288319 /usr/lib/libcrypto.so.1.0.0
b7079000-b707f000 rw-p 0014e000 08:04 288319 /usr/lib/libcrypto.so.1.0.0
b707f000-b7082000 rw-p 00000000 00:00 0
b7082000-b70cc000 r-xp 00000000 08:04 288320 /usr/lib/libssl.so.1.0.0
b70cc000-b70ce000 r--p 0004a000 08:04 288320 /usr/lib/libssl.so.1.0.0
b70ce000-b70d1000 rw-p 0004c000 08:04 288320 /usr/lib/libssl.so.1.0.0
b70d1000-b70d2000 rw-p 00000000 00:00 0
b70d2000-b7102000 r-xp 00000000 08:04 298999 /usr/lib/libidn.so.11.6.7
b7102000-b7103000 r--p 0002f000 08:04 298999 /usr/lib/libidn.so.11.6.7Aborted

Revision history for this message
Vincent Cheng (vincent-c) wrote :

This is a known issue in conky; see Debian bug #623106 (http://bugs.debian.org/623106) or LP: #780741. It's also reported upstream as http://sourceforge.net/support/tracker.php?aid=3582149

I plan on uploading conky with a patch to fix this once Debian is unfrozen, but in the meantime you can cherrypick the patch from upstream git yourself; see http://git.omp.am/?p=conky.git;a=patch;h=cbc131ea6c601beecb40439eb86f7e6d48b72167

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package conky - 1.9.0-3

---------------
conky (1.9.0-3) unstable; urgency=low

  * Add debian/patches/fix-curl-related-crashes.patch to fix crash with
    multiple weather objects in conkyrc. (Closes: #623106; LP: #780741,
    LP: #1154741)
  * Add debug package for each conky flavour.
  * Update Standards version from 3.9.3 to 3.9.4, no changes required.

 -- Vincent Cheng <email address hidden> Wed, 08 May 2013 01:34:40 -0700

Changed in conky (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.