Pedro Fortuny
2011-Oct-28 13:51 UTC
Strange bug (buffer overflow) happening only under cron
Hi, I am running OS X Snow Leopard on the 'sender' side and Linux (2.6.32, possibly fedora but unsure) on the 'receiver' side. Both with rsync 3.0.9. If I run the following command from the command line: /usr/local/bin/rsync -av -e "ssh -i \ /Users/pedrofortunyayuso/.ssh/backup_pfortuny_net" \ --filter ': rsync.dirs' ~/ pfortuny at pfortuny.net:"~/backup_mbpro/" Everything works OK. However, if I run it as a cron task, I receive the following mail: [headers stripped] X-Cron-Env: <SHELL=/bin/bash> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=pedrofortunyayuso> X-Cron-Env: <USER=pedrofortunyayuso> X-Cron-Env: <HOME=/Users/pedrofortunyayuso> Message-Id: <20111028133407.4BC171BF226 at mypera.local> Date: Fri, 28 Oct 2011 15:34:01 +0200 (CEST) Status: RO cp: ./Dropbox/HostMonsterPage/doc/ampliacion.pdf: No such file or directory cp: ./Dropbox/HostMonsterPage/doc/metodos.pdf: No such file or directory building file list ... ERROR: buffer overflow in recv_rules [Receiver] rsync error: error allocating core memory buffers (code 22) at util.c(123) [Receiver=3.0.9] rsync: connection unexpectedly closed (157 bytes received so far) [sender] rsync error: error allocating core memory buffers (code 22) at io.c(605) [sender=3.0.9] I am attaching a -avvvv output at the end of the mail. I cannot figure out what the matter may be. Thank you in advance, Pedro Fortuny. -- Pedro Fortuny Ayuso http://pfortuny.net EPIG, Campus de Viesques, Gijon Dpto. de Matematicas Universidad de Oviedo fortunypedro at uniovi.es -------------- next part -------------->From pedrofortunyayuso at mypera.local Fri Oct 28 15:45:11 2011Return-Path: <pedrofortunyayuso at mypera.local> X-Original-To: pedrofortunyayuso Delivered-To: pedrofortunyayuso at mypera.local Received: by mypera.local (Postfix, from userid 501) id 6EF0F1BF265; Fri, 28 Oct 2011 15:45:11 +0200 (CEST) From: pedrofortunyayuso at mypera.local (Cron Daemon) To: pedrofortunyayuso at mypera.local Subject: Cron <pedrofortunyayuso at mypera> ~/bin/backup_hm.sh X-Cron-Env: <SHELL=/bin/bash> X-Cron-Env: <PATH=/usr/bin:/bin> X-Cron-Env: <LOGNAME=pedrofortunyayuso> X-Cron-Env: <USER=pedrofortunyayuso> X-Cron-Env: <HOME=/Users/pedrofortunyayuso> Message-Id: <20111028134511.6EF0F1BF265 at mypera.local> Date: Fri, 28 Oct 2011 15:45:00 +0200 (CEST) Status: RO [client] add_rule(: rsync.dirs) cmd=ssh -i /Users/pedrofortunyayuso/.ssh/backup_pfortuny_net machine=pfortuny.net user=pfortuny path=~/backup_mbpro/ cmd[0]=ssh cmd[1]=-i cmd[2]=/Users/pedrofortunyayuso/.ssh/backup_pfortuny_net cmd[3]=-l cmd[4]=pfortuny cmd[5]=pfortuny.net cmd[6]=rsync cmd[7]=--server cmd[8]=-vvvvlogDtpre.iLsf cmd[9]=. cmd[10]=~/backup_mbpro/ opening connection using: ssh -i /Users/pedrofortunyayuso/.ssh/backup_pfortuny_net -l pfortuny pfortuny.net rsync --server -vvvvlogDtpre.iLsf . "~/backup_mbpro/" note: iconv_open("UTF-8", "UTF-8") succeeded. (Client) Protocol versions: remote=30, negotiated=30 building file list ... [sender] make_file(.,*,0) [sender] pushing filter list [per-dir rsync.dirs] [sender] parse_filter_file(/Users/pedrofortunyayuso/rsync.dirs,c00,4) [sender] add_rule(+ development/) [per-dir rsync.dirs] [sender] add_rule(+ Documentos/) [per-dir rsync.dirs] [sender] add_rule(+ matematicas/) [per-dir rsync.dirs] [sender] add_rule(+ personal/) [per-dir rsync.dirs] [sender] add_rule(+ scripts/) [per-dir rsync.dirs] [sender] add_rule(+ root.el) [per-dir rsync.dirs] [sender] add_rule(+ trabajo/) [per-dir rsync.dirs] [sender] add_rule(+ Library/Mail/) [per-dir rsync.dirs] [sender] add_rule(+ Sites/) [per-dir rsync.dirs] [sender] add_rule(+ .emacs) [per-dir rsync.dirs] [sender] add_rule(+ .profile) [per-dir rsync.dirs] [sender] add_rule(+ .login) [per-dir rsync.dirs] [sender] add_rule(+ .bash_rc) [per-dir rsync.dirs] [sender] add_rule(+ .bash_profilae) [per-dir rsync.dirs] [sender] add_rule(- /Desktop\ DB) [per-dir rsync.dirs] [sender] add_rule(- /Desktop/imagenes) [per-dir rsync.dirs] [sender] add_rule(- /Desktop/presentaci\#363n PFC/) [per-dir rsync.dirs] [sender] add_rule(- /Desktop\ DF) [per-dir rsync.dirs] [sender] add_rule(- /Desktop/conexion_a_internet/) [per-dir rsync.dirs] [sender] add_rule(- /jrc/) [per-dir rsync.dirs] [sender] add_rule(- /Library/) [per-dir rsync.dirs] [sender] add_rule(- /personal/Centros/) [per-dir rsync.dirs] [sender] add_rule(- /personal/escritos/) [per-dir rsync.dirs] [sender] add_rule(- /personal/correo_dlv/) [per-dir rsync.dirs] [sender] add_rule(- /trabajo/certificadoFNMT/) [per-dir rsync.dirs] [sender] add_rule(- /trabajo/Proyectos/DLV/) [per-dir rsync.dirs] [sender] add_rule(- /trabajo/Proyectos/Penafiel/) [per-dir rsync.dirs] [sender] add_rule(- /trabajo/Proyectos/Rodil_wifi/) [per-dir rsync.dirs] [sender] add_rule(- /trabajo/Proyectos/jcyl_dependencia/) [per-dir rsync.dirs] [sender] add_rule(- /Desktop/Downloads) [per-dir rsync.dirs] [sender] add_rule(- /Downloads) [per-dir rsync.dirs] [sender] add_rule(- /Downloads/) [per-dir rsync.dirs] [sender] add_rule(- /**/.svn/) [per-dir rsync.dirs] [sender] add_rule(- /**/*session*) [per-dir rsync.dirs] [sender] add_rule(- /.*) [per-dir rsync.dirs] [sender] add_rule(- /.*/) [per-dir rsync.dirs] [sender] add_rule(- /.**/) [per-dir rsync.dirs] [sender] add_rule(- /.cpan/) [per-dir rsync.dirs] [sender] hiding file .abbrev_defs because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .aspell.en.prepl because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .aspell.en.pws because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .aspell.es.prepl because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .aspell.es.pws because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .asy because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .avidemux because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .bash_history because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .bashrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .calibre_calibre GUI.lock because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .CFUserTextEncoding because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .CODES because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .config because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .cpan because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .crash_report_checksum because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .crash_report_frames because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .crash_report_preview because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .crash_reportrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .cups because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .dropbox because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .DS_Store because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .dvdcss because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] showing file .emacs because of pattern .emacs [per-dir rsync.dirs] [sender] make_file(.emacs,*,2) [sender] hiding file .emacs. because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .emacs.d because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .emacs.kk because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .emacs.~ because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .emacs~ because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .eshell because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .ethereal because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .fetchmailrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .fetchmailrc~ because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .flexlmrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .fontconfig because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .fonts because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .fseventsd because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .gdb_history because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .gem because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .getmail because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .gimp-2.2 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .gitconfig because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .gnome2 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .gnupg because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .gnuplot_history because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .gtk-bookmarks because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .inkscape because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .inkscape-etc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .inputrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .ispell_english because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .jmol because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .jorge.IP because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .kismet because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .lesshst because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .links because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] showing file .login because of pattern .login [per-dir rsync.dirs] [sender] make_file(.login,*,2) [sender] hiding directory .MacOSX because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .mailcap because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .matlab because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .matplotlib because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .maxima because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .mplayer because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .mupad54 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .mutt because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .mutt_certificates because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .muttrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .muttrc_ok because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .muttrc_ok_before_offlineimap because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .muttrc~ because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .nautilus-metafile.xml because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .nchsoftware because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .notmuch-config because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .nx because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .oces because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .octave_hist because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .offlineimap because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .offlineimaprc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .osxvncauth because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .parallels because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .parallels_settings because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .PfaEdit because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .port_history because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .processing because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .procmailrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] showing file .profile because of pattern .profile [per-dir rsync.dirs] [sender] make_file(.profile,*,2) [sender] hiding file .profile.macports-saved_2010-04-30_at_16:27:55 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .profile.macports-saved_2010-04-30_at_16:33:55 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .qt because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .recently-used because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .recently-used.xbel because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .retenciones because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .Rhistory because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .rnd because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.1705 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.2749 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.331 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.3348 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.485 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.559 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.605 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.684 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .serverauth.8081 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .sh_history because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .sheepshaver_prefs because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .signature because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .solfege because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .solfegerc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .Spotlight-V100 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .spumux because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .ssh because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .sshterm because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .subversion because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .sunrise because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .TemporaryItems because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .thumbnails because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .Trash because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .Trashes because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .urlview because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .viminfo because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .viminfo.tmp because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .vimrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .vinevncauth because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .w3m because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .wapi because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .wireshark because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .wireshark-etc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .Xauthority because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .xbmc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .Xcode because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .Xdefaults because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .xdvirc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .xfigrc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding file .xmaximarc because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] hiding directory .yed3 because of pattern /Users/pedrofortunyayuso/.* [per-dir rsync.dirs] [sender] make_file(bin,*,2) [sender] make_file(Desktop,*,2) [sender] make_file(Desktop DB,*,2) [sender] make_file(Desktop DF,*,2) [sender] make_file(Deva,*,2) [ ... stripped tens of thousands (40000?) of make_file(...) ] [sender] make_file(mutt/offlineimap-gmail/uniovi/new/1318964479_0.3253.mypera.local,U=4821,FMD5=8f17785ed257cd60db20b3c9a24a0073:2,,*,2) [sender] make_file(mutt/offlineimap-gmail/uniovi/new/1318964479_1.3253.mypera.local,U=4822,FMD5=8f17785ed257cd60db20b3c9a24a0073:2,,*,2) [sender] make_file(mutt/offlineimap-gmail/uniovi/new/1318964479_2.3253.mypera.local,U=4823,FMD5=8f17785ed257cd60db20b3c9a24a0073:2,,*,2) [sender] make_file(mutt/offlineimap-gmail/uniovi/new/1318964480_0.3253.mypera.local,U=4824,FMD5=8f17785ed257cd60db20b3c9a24a0073:2,,*,2) [sender] make_file(mutt/offlineimap-gmail/uniovi/new/1318964480_1.3253.mypera.local,U=4825,FMD5=8f17785ed257cd60db20b3c9a24a0073:2,,*,2) [sender] make_file(mutt/offlineimap-gmail/uniovi/new/1318964480_2.3253.mypera.local,U=4826,FMD5=8f17785ed257cd60db20b3c9a24a0073:2,,*,2) rsync: connection unexpectedly closed (157 bytes received so far) [sender] [sender] _exit_cleanup(code=12, file=io.c, line=605): entered rsync error: error allocating core memory buffers (code 22) at io.c(605) [sender=3.0.9] [sender] _exit_cleanup(code=12, file=io.c, line=605): about to call exit(22)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It sounds like your cron jobs are memory limited. Can you put 'ulimit - -a' into a cron job and see what it outputs? On 10/28/11 09:51, Pedro Fortuny wrote:> Hi, > > I am running OS X Snow Leopard on the 'sender' side and > Linux (2.6.32, possibly fedora but unsure) on the 'receiver' > side. Both with rsync 3.0.9. > > If I run the following command from the command line: > > /usr/local/bin/rsync -av -e "ssh -i \ > /Users/pedrofortunyayuso/.ssh/backup_pfortuny_net" \ > --filter ': rsync.dirs' ~/ pfortuny at pfortuny.net:"~/backup_mbpro/" > > Everything works OK. However, if I run it as a cron task, I > receive the following mail: > > [headers stripped] > X-Cron-Env: <SHELL=/bin/bash> > X-Cron-Env: <PATH=/usr/bin:/bin> > X-Cron-Env: <LOGNAME=pedrofortunyayuso> > X-Cron-Env: <USER=pedrofortunyayuso> > X-Cron-Env: <HOME=/Users/pedrofortunyayuso> > Message-Id: <20111028133407.4BC171BF226 at mypera.local> > Date: Fri, 28 Oct 2011 15:34:01 +0200 (CEST) > Status: RO > > cp: ./Dropbox/HostMonsterPage/doc/ampliacion.pdf: No such file or directory > cp: ./Dropbox/HostMonsterPage/doc/metodos.pdf: No such file or directory > building file list ... ERROR: buffer overflow in recv_rules [Receiver] > rsync error: error allocating core memory buffers (code 22) at util.c(123) [Receiver=3.0.9] > rsync: connection unexpectedly closed (157 bytes received so far) [sender] > rsync error: error allocating core memory buffers (code 22) at io.c(605) [sender=3.0.9] > > I am attaching a -avvvv output at the end of the mail. I cannot > figure out what the matter may be. > > Thank you in advance, > > > Pedro Fortuny. > > > > -- > Pedro Fortuny Ayuso > http://pfortuny.net > EPIG, Campus de Viesques, Gijon > Dpto. de Matematicas > Universidad de Oviedo > fortunypedro at uniovi.es > >- -- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: http://www.sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6qyHYACgkQVKC1jlbQAQfv9QCeM+FBBdY7wcevcWFNCxYSA+Wi 7rMAnA6ObEj9I/WfwHyt23UQMo8kAIoA =/mhz -----END PGP SIGNATURE-----
Voelker, Bernhard
2011-Oct-31 07:04 UTC
Strange bug (buffer overflow) happening only under cron
Pedro Fortuny wrote:> I am running OS X Snow Leopard on the 'sender' side and > Linux (2.6.32, possibly fedora but unsure) on the 'receiver' > side. Both with rsync 3.0.9. > > If I run the following command from the command line: > > /usr/local/bin/rsync -av -e "ssh -i \ > /Users/pedrofortunyayuso/.ssh/backup_pfortuny_net" \ > --filter ': rsync.dirs' ~/ pfortuny at pfortuny.net:"~/backup_mbpro/" > > Everything works OK. However, if I run it as a cron task, I > receive the following mail: > > [headers stripped] > X-Cron-Env: <SHELL=/bin/bash> > X-Cron-Env: <PATH=/usr/bin:/bin> > X-Cron-Env: <LOGNAME=pedrofortunyayuso> > X-Cron-Env: <USER=pedrofortunyayuso> > X-Cron-Env: <HOME=/Users/pedrofortunyayuso> > Message-Id: <20111028133407.4BC171BF226 at mypera.local> > Date: Fri, 28 Oct 2011 15:34:01 +0200 (CEST) > Status: RO > > cp: ./Dropbox/HostMonsterPage/doc/ampliacion.pdf: No such file or directory > cp: ./Dropbox/HostMonsterPage/doc/metodos.pdf: No such file or directoryThe shell and the environment under cron may be different. Did you try avoiding the "~" syntax? Bye, Berny
Wayne Davison
2011-Oct-31 15:22 UTC
Strange bug (buffer overflow) happening only under cron
On Fri, Oct 28, 2011 at 6:51 AM, Pedro Fortuny <pfortuny at gmail.com> wrote:> cp: ./Dropbox/HostMonsterPage/doc/ampliacion.pdf: No such file or directory > cp: ./Dropbox/HostMonsterPage/doc/metodos.pdf: No such file or directory >I note that those are not rsync errors, so something is wrong with your script. Did it chdir to the right directory? Did Dropbox unmount on logout? building file list ... ERROR: buffer overflow in recv_rules [Receiver]>This likely indicates a corrupted data stream since the remote receiver got a bog integer at that point. Did something in the ssh login output something? You should try some cron-run ssh commands and look for clues (e.g. "ssh -i /path/keyfile echo OK" or similar). ..wayne.. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20111031/e32736fc/attachment.html>
Possibly Parallel Threads
- Error 11: can not backup /var/lib/zope2.9
- rsync 3.0.4 under cygwin: problems with --exclude
- [ycui1@bloomberg.com: Re: rsync bug?? (rsync fails when -C is used).]
- Bug#306368: filter rules are too modern for remote rsync (which is 2.5.6)
- protect rule prevents file sending when in merge filter file?