I have problems displaying the output of a of a script i wrote, and executing certain commands. I dont think it has anything to do with the script itself. See attached image for how the conky's display looks funky The line that's runs the script is ${execi 300 /usr/scripts/simple-rss-reader-v3.pl} I also get display problems when running the command ${execi 30 tail -n5 /var/log/messages | fold -w70} While conky is running with the line 'tail -n5 /var/log/messages' inserted i get these error. It seems sh is trying to execute the output of 'tail -n5 /var/log/messages | fold -w70'. See below for the output of 'tail -n5 /var/log/messages | fold -w70' in shell sh: n/ru: No such file or directory sh: -c: line 1: syntax error near unexpected token `)' sh: -c: line 1: `n-crons && /usr/sbin/run-crons )' sh: n/ru: No such file or directory I noticed that when i killall conky, i get this error when i have simple-rss-reader-v3.pl in conkyrc *** glibc detected *** conky: free(): invalid next size (normal) And when i have 'tail -n5 /var/log/messages | fold -w70' in conkyrc i get this error *** glibc detected *** conky: double free or corruption but when these are removed i get no error. See below for full error outputs I get no errors or display problems with the following ${execi 30 tail -n3 /var/log/Xorg.0.log | fold -w70} ${execi 120 dmesg | tail -n5 | fold -w70} I have tried to attach as much as posible, to help in debuging I downloaded and installed conky-1.7.2 from their website and it seems to run fine Reproducible: Always Steps to Reproduce: 1.run conky with attached conkyrc 2. 3. Actual Results: displays distorted text and color outputs when execi runs programs with multiline outputs, see attached image Expected Results: displays text as programs would normally output in shell emerge --info Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2. 1201-r2, 2.6.31 x86_64) ================================================================= System uname: Linux-2.6.31-x86_64-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with- 1.12.11.1 Timestamp of tree: Thu, 01 Oct 2009 00:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.6.2-r1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/boxee/UserData /usr/kde/3.5/env /usr/kde/3.5/sh fig /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/termi c/udev/rules.d" CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandb rms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub distributions/gentoo" LANG="en_US" LDFLAGS="-Wl,-O1" LINGUAS="en" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --co --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles de=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdr cli co t cracklib crypt dbus dri dts dvd dvdr emboss encode esd evo exif fam fir ac fortran gdbm gif gstreamer gtk hal iconv imap ipv6 isdnlog java jpeg l notify mad matroska mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncur nptl nptlonly ogg opengl openmp pam pcre pdf perl plotutils png postscri pppd python qt3 qt3support qt4 quicktime readline reflection scanner sdl n spell spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff e unicode usb vim-syntax vim-with-x vorbis wmf x264 xml xorg xulrunner xv lib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestr ent usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw py dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloa r meter mmap_emul mulaw multi null plug rate route share shm softvol" APA DULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_de uthn_file authz_dbm authz_default authz_groupfile authz_host authz_owner ser autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expire ilter file_cache filter headers include info log_config logio mem_cache m e_magic negotiation rewrite setenvif speling status unique_id userdir use vhost_alias" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyb use" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb21 01 mtxorb ncurses text" LINGUAS="en" LIRC_DEVICES="serial" SANE_BACKENDS= ERLAND="GNU" VIDEO_CARDS="intel vesa fbdev radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ RTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 205755 [details] screenshot of conky with distorted output conky running attached conkrc and attached scripts
Created attachment 205757 [details] conkrc config file
Created attachment 205759 [details] script run in conkyrc
################################################################ ## Commands/scripts output in shell ## simple-rss-reader-v3.pl output in shell is Code: - Twitter / eztv_it - Defying Gravity S01E07 HDTV XviD-No - Big Brother UK S10E107 The Final Pa - Flying Confessions of a Free Woman - The Sci Fi Guys S03E16 Kaj Erik Eri - BBC Future of Food 2of3 Senegal Xvi - BBC This World Gypsy Child Thieves - BBC Coast And Beyond Series 4 5of8 - New Tricks 6x08 (PDTV-FoV)[VTV] - h - Flying Confessions of a Free Woman Output of 'tail -n5 /var/log/messages | fold -w70' Code: Sep 8 14:00:01 localhost cron[8188]: (root) CMD (test -x /usr/sbin/ru n-crons && /usr/sbin/run-crons ) Sep 8 14:10:01 localhost cron[8223]: (root) CMD (test -x /usr/sbin/ru n-crons && /usr/sbin/run-crons ) Sep 8 14:20:01 localhost cron[8255]: (root) CMD (test -x /usr/sbin/ru n-crons && /usr/sbin/run-crons ) Sep 8 14:30:01 localhost cron[8379]: (root) CMD (test -x /usr/sbin/ru n-crons && /usr/sbin/run-crons ) Sep 8 14:40:01 localhost cron[8685]: (root) CMD (test -x /usr/sbin/ru n-crons && /usr/sbin/run-crons ) ################################################### ## Conky stout/sterr after being killed ## Conky stout/sterr with simple-rss-reader-v3.pl line, after killall conky Code: Conky: window type - desktop Conky: drawing to created window (0x600002) Conky: drawing to double buffer killall conky Conky: received SIGINT or SIGTERM to terminate. bye! *** glibc detected *** conky: free(): invalid next size (normal): 0x0000000000648fb0 *** ======= Backtrace: ========= /lib/libc.so.6[0x7f32d4baf468] /lib/libc.so.6(cfree+0x76)[0x7f32d4bb0fa6] conky[0x4111c7] conky[0x4113f0] conky[0x419306] /lib/libc.so.6(__libc_start_main+0xe6)[0x7f32d4b5a5c6] conky[0x404dd9] ======= Memory map: ======== 00400000-00429000 r-xp 00000000 08:03 2647050 /usr/bin/conky 00628000-00629000 r--p 00028000 08:03 2647050 /usr/bin/conky 00629000-0062a000 rw-p 00029000 08:03 2647050 /usr/bin/conky 0062a000-0067b000 rw-p 00000000 00:00 0 [heap] 7f32d0000000-7f32d0021000 rw-p 00000000 00:00 0 7f32d0021000-7f32d4000000 ---p 00000000 00:00 0 7f32d4926000-7f32d493b000 r-xp 00000000 08:03 1334888 /lib64/libgcc_s.so.1 7f32d493b000-7f32d4b3a000 ---p 00015000 08:03 1334888 /lib64/libgcc_s.so.1 7f32d4b3a000-7f32d4b3b000 r--p 00014000 08:03 1334888 /lib64/libgcc_s.so.1 7f32d4b3b000-7f32d4b3c000 rw-p 00015000 08:03 1334888 /lib64/libgcc_s.so.1 7f32d4b3c000-7f32d4c87000 r-xp 00000000 08:03 2761440 /lib64/libc-2.9.so 7f32d4c87000-7f32d4e87000 ---p 0014b000 08:03 2761440 /lib64/libc-2.9.so 7f32d4e87000-7f32d4e8b000 r--p 0014b000 08:03 2761440 /lib64/libc-2.9.so 7f32d4e8b000-7f32d4e8c000 rw-p 0014f000 08:03 2761440 /lib64/libc-2.9.so 7f32d4e8c000-7f32d4e91000 rw-p 00000000 00:00 0 7f32d4e91000-7f32d4e93000 r-xp 00000000 08:03 2762381 /lib64/libdl-2.9.so 7f32d4e93000-7f32d5093000 ---p 00002000 08:03 2762381 /lib64/libdl-2.9.so 7f32d5093000-7f32d5094000 r--p 00002000 08:03 2762381 /lib64/libdl-2.9.so 7f32d5094000-7f32d5095000 rw-p 00003000 08:03 2762381 /lib64/libdl-2.9.so 7f32d5095000-7f32d509a000 r-xp 00000000 08:03 41261 /usr/lib64/libXdmcp.so.6.0.0 7f32d509a000-7f32d5299000 ---p 00005000 08:03 41261 /usr/lib64/libXdmcp.so.6.0.0 7f32d5299000-7f32d529a000 r--p 00004000 08:03 41261 /usr/lib64/libXdmcp.so.6.0.0 7f32d529a000-7f32d529b000 rw-p 00005000 08:03 41261 /usr/lib64/libXdmcp.so.6.0.0 7f32d529b000-7f32d529d000 r-xp 00000000 08:03 1529645 /usr/lib64/libXau.so.6.0.0 7f32d529d000-7f32d549c000 ---p 00002000 08:03 1529645 /usr/lib64/libXau.so.6.0.0 7f32d549c000-7f32d549d000 r--p 00001000 08:03 1529645 /usr/lib64/libXau.so.6.0.0 7f32d549d000-7f32d549e000 rw-p 00002000 08:03 1529645 /usr/lib64/libXau.so.6.0.0 7f32d549e000-7f32d559c000 r-xp 00000000 08:03 1536456 /usr/lib64/libX11.so.6.2.0 7f32d559c000-7f32d579b000 ---p 000fe000 08:03 1536456 /usr/lib64/libX11.so.6.2.0 7f32d579b000-7f32d579d000 r--p 000fd000 08:03 1536456 /usr/lib64/libX11.so.6.2.0 7f32d579d000-7f32d57a2000 rw-p 000ff000 08:03 1536456 /usr/lib64/libX11.so.6.2.0 7f32d57a2000-7f32d57b6000 r-xp 00000000 08:03 263196 /lib64/libz.so.1.2.3 7f32d57b6000-7f32d59b5000 ---p 00014000 08:03 263196 /lib64/libz.so.1.2.3 7f32d59b5000-7f32d59b6000 r--p 00013000 08:03 263196 /lib64/libz.so.1.2.3 7f32d59b6000-7f32d59b7000 rw-p 00014000 08:03 263196 /lib64/libz.so.1.2.3 7f32d59b7000-7f32d5a42000 r-xp 00000000 08:03 2127683 /usr/lib64/libfreetype.so.6.3.20 7f32d5a42000-7f32d5c42000 ---p 0008b000 08:03 2127683 /usr/lib64/libfreetype.so.6.3.20 7f32d5c42000-7f32d5c47000 r--p 0008b000 08:03 2127683 /usr/lib64/libfreetype.so.6.3.20 7f32d5c47000-7f32d5c48000 rw-p 00090000 08:03 2127683 /usr/lib64/libfreetype.so.6.3.20 7f32d5c48000-7f32d5c6d000 r-xp 00000000 08:03 3626889 /usr/lib64/libexpat.so.1.5.2 7f32d5c6d000-7f32d5e6d000 ---p 00025000 08:03 3626889 /usr/[2]+ Aborted conky -c .conkyrc Conky stout/sterr with 'tail -n5 /var/log/messages | fold -w70' line inserted, after killall conky Code: Conky: window type - desktop Conky: drawing to created window (0x600002) Conky: drawing to double buffer sh: n/ru: No such file or directory sh: -c: line 1: syntax error near unexpected token `)' sh: -c: line 1: `n-crons && /usr/sbin/run-crons )' killall conky Conky: received SIGINT or SIGTERM to terminate. bye! *** glibc detected *** conky: double free or corruption (!prev): 0x000000000064a290 *** ======= Backtrace: ========= /lib/libc.so.6[0x7f448f4ae468] /lib/libc.so.6(cfree+0x76)[0x7f448f4affa6] conky[0x4111c7] conky[0x4113f0] conky[0x419306] /lib/libc.so.6(__libc_start_main+0xe6)[0x7f448f4595c6] conky[0x404dd9] ======= Memory map: ======== 00400000-00429000 r-xp 00000000 08:03 2647050 /usr/bin/conky 00628000-00629000 r--p 00028000 08:03 2647050 /usr/bin/conky 00629000-0062a000 rw-p 00029000 08:03 2647050 /usr/bin/conky 0062a000-0067a000 rw-p 00000000 00:00 0 [heap] 7f4488000000-7f4488021000 rw-p 00000000 00:00 0 7f4488021000-7f448c000000 ---p 00000000 00:00 0 7f448f225000-7f448f23a000 r-xp 00000000 08:03 1334888 /lib64/libgcc_s.so.1 7f448f23a000-7f448f439000 ---p 00015000 08:03 1334888 /lib64/libgcc_s.so.1 7f448f439000-7f448f43a000 r--p 00014000 08:03 1334888 /lib64/libgcc_s.so.1 7f448f43a000-7f448f43b000 rw-p 00015000 08:03 1334888 /lib64/libgcc_s.so.1 7f448f43b000-7f448f586000 r-xp 00000000 08:03 2761440 /lib64/libc-2.9.so 7f448f586000-7f448f786000 ---p 0014b000 08:03 2761440 /lib64/libc-2.9.so 7f448f786000-7f448f78a000 r--p 0014b000 08:03 2761440 /lib64/libc-2.9.so 7f448f78a000-7f448f78b000 rw-p 0014f000 08:03 2761440 /lib64/libc-2.9.so 7f448f78b000-7f448f790000 rw-p 00000000 00:00 0 7f448f790000-7f448f792000 r-xp 00000000 08:03 2762381 /lib64/libdl-2.9.so 7f448f792000-7f448f992000 ---p 00002000 08:03 2762381 /lib64/libdl-2.9.so 7f448f992000-7f448f993000 r--p 00002000 08:03 2762381 /lib64/libdl-2.9.so 7f448f993000-7f448f994000 rw-p 00003000 08:03 2762381 /lib64/libdl-2.9.so 7f448f994000-7f448f999000 r-xp 00000000 08:03 41261 /usr/lib64/libXdmcp.so.6.0.0 7f448f999000-7f448fb98000 ---p 00005000 08:03 41261 /usr/lib64/libXdmcp.so.6.0.0 7f448fb98000-7f448fb99000 r--p 00004000 08:03 41261 /usr/lib64/libXdmcp.so.6.0.0 7f448fb99000-7f448fb9a000 rw-p 00005000 08:03 41261 /usr/lib64/libXdmcp.so.6.0.0 7f448fb9a000-7f448fb9c000 r-xp 00000000 08:03 1529645 /usr/lib64/libXau.so.6.0.0 7f448fb9c000-7f448fd9b000 ---p 00002000 08:03 1529645 /usr/lib64/libXau.so.6.0.0 7f448fd9b000-7f448fd9c000 r--p 00001000 08:03 1529645 /usr/lib64/libXau.so.6.0.0 7f448fd9c000-7f448fd9d000 rw-p 00002000 08:03 1529645 /usr/lib64/libXau.so.6.0.0 7f448fd9d000-7f448fe9b000 r-xp 00000000 08:03 1536456 /usr/lib64/libX11.so.6.2.0 7f448fe9b000-7f449009a000 ---p 000fe000 08:03 1536456 /usr/lib64/libX11.so.6.2.0 7f449009a000-7f449009c000 r--p 000fd000 08:03 1536456 /usr/lib64/libX11.so.6.2.0 7f449009c000-7f44900a1000 rw-p 000ff000 08:03 1536456 /usr/lib64/libX11.so.6.2.0 7f44900a1000-7f44900b5000 r-xp 00000000 08:03 263196 /lib64/libz.so.1.2.3 7f44900b5000-7f44902b4000 ---p 00014000 08:03 263196 /lib64/libz.so.1.2.3 7f44902b4000-7f44902b5000 r--p 00013000 08:03 263196 /lib64/libz.so.1.2.3 7f44902b5000-7f44902b6000 rw-p 00014000 08:03 263196 /lib64/libz.so.1.2.3 7f44902b6000-7f4490341000 r-xp 00000000 08:03 2127683 /usr/lib64/libfreetype.so.6.3.20 7f4490341000-7f4490541000 ---p 0008b000 08:03 2127683 /usr/lib64/libfreetype.so.6.3.20 7f4490541000-7f4490546000 r--p 0008b000 08:03 2127683 /usr/lib64/libfreetype.so.6.3.20 7f4490546000-7f4490547000 rw-p 00090000 08:03 2127683 /usr/lib64/libfreetype.so.6.3.20 7f4490547000-7f449056c000 r-xp 00000000 08:03 3626889 /usr/lib64/libexpat.so.1.5.2 7f449056c000-7f449076c000 ---p 00025000 08:03 3626889 /usr/lib64/libexpat.so.1.5.2 7f449076c000-7f449076e000 r--p 00025000 08:03 3626889 /usr/lib64/libexpat.so.1.5.2 7f449076e000-7f449076f000 rw-p 00027000 08:03 3626889 /usr/lib64/libexpat.so.1.5.2 7f449076f000-7f449079c000 r-xp 00000000 08:03 41012 /usr/lib64/libfontconfig.so.1.3.0 7f449079c000-7f449099c000 ---p 0002d000 08:03 41012 /usr/lib64/libfontconfig.so.1.3.0 7f449099c000-7f449099d000 r--p 0002d000 08:03 41012 /usr/lib64/libfontconfig.so.1.3.0 7f449099d000-7f449099e000 rw-p 0002e000 08:03 41012 /usr/lib64/libfontconfig.so.1.3.0 7f449099e000-7f44909a7000 r-xp 00000000 08:03 411767 /usr/lib64/libXrender.so.1.3.0 7f44909a7000-7f4490ba6000 ---p 00[1]+ Aborted conky -c .conkyrc2 Conky stout/sterr with simple-rss-reader-v3.pl and 'tail -n5 /var/log/messages | fold -w70' lines removed, after killall conky Code: Conky: window type - desktop Conky: drawing to created window (0x600002) Conky: drawing to double buffer killall conky Conky: received SIGINT or SIGTERM to terminate. bye! [1]+ Done conky -c .conkyrc
Try using $rss (and/or a newer version of Conky).
Jeff, can you please report if Brendens recommendation solves the problem. Thanks
(In reply to comment #6) > Jeff, can you please report if Brendens recommendation solves the problem. > Thanks > Useing $rss would simply be a work around and would not address the main problem with output of $execi I emerged using ~amd64 and it installed app-admin/conky-1.7.2-r2. This solved the problem completely. So once conky-1.7.2 becomes mainstream the problem will be mute. Thanks Jeff
Closing. Fixed in conky-1.7.2.