Displaying 11 results from an estimated 11 matches for "rerr_malloc".
Did you mean:
err_alloc
2003 Jun 07
1
patch to rsync to add options for pre- and post-transfer commands
...CRIPT 18 /* error running post-transfer script */
+ #define RERR_SCRIPT 19 /* system error running transfer script */
+
#define RERR_SIGNAL 20 /* status returned when sent SIGUSR1, SIGINT */
#define RERR_WAITCHILD 21 /* some error returned by waitpid() */
#define RERR_MALLOC 22 /* error allocating core memory buffers */
Common subdirectories: rsync-2.5.6.orig/lib and rsync-2.5.6/lib
diff --exclude='*.o' -b --context rsync-2.5.6.orig/loadparm.c rsync-2.5.6/loadparm.c
*** rsync-2.5.6.orig/loadparm.c 2002-08-30 17:27:26.000000000 -0600
--- rsync-2.5.6/loa...
2001 Dec 28
1
(patch) memory leak in loadparm.c
...and
+ * handling NULL strings. @p *v must be initialized when this is
+ * called, either to NULL or a malloc'd string.
**/
static void string_set(char **s, const char *v)
{
@@ -403,6 +420,8 @@
*s = NULL;
return;
}
+ if (*s)
+ free(*s);
*s = strdup(v);
if (!*s)
exit_cleanup(RERR_MALLOC);
2003 Oct 25
1
Trivial documentation patch
...or in socket IO
dit(bf(RERR_FILEIO 11)) Error in file IO
dit(bf(RERR_STREAMIO 12)) Error in rsync protocol data stream
@@ -1126,6 +1128,7 @@
dit(bf(RERR_SIGNAL 20)) Received SIGUSR1 or SIGINT
dit(bf(RERR_WAITCHILD 21)) Some error returned by waitpid()
dit(bf(RERR_MALLOC 22)) Error allocating core memory buffers
+dit(bf(RERR_PARTIAL 23)) Partial transfer
dit(bf(RERR_TIMEOUT 30)) Timeout in data send/receive
enddit()
2003 Nov 08
2
malloc errors? out of memory with many files on HP-UX
...y in string_area_new buffer
>rsync error: error allocating core memory buffers (code 22) at util.c(115)
The file system transfer in question then fails. After Googling and looking
at the man pages, I have surmised that this is likely a malloc/out of memory
error. From the man page:
> RERR_MALLOC 22
> Error allocating core memory buffers
I'm using version ...
>$ rsync --version
>rsync version 2.5.6 protocol version 26
>Copyright (C) 1996-2002 by Andrew Tridgell and others
><http://rsync.samba.org/>
>Capabilities: 64-bit files, socketpairs, hard lin...
2004 Sep 05
1
minor typo fix for 2.6.3 pre 1
...parsing the output is messed
up by this patch, but then they should have told about the typo
themselves :-)
--- log.c.orig 2004-08-17 10:25:57.000000000 +0200
+++ log.c 2004-09-05 16:28:42.000000000 +0200
@@ -61,7 +61,7 @@
{ RERR_WAITCHILD , "some error returned by waitpid()" },
{ RERR_MALLOC , "error allocating core memory buffers" },
{ RERR_PARTIAL , "some files could not be transferred" },
- { RERR_VANISHED , "some files vanished before they could be transfered" },
+ { RERR_VANISHED , "some files vanished before they could be transferre...
2009 Oct 15
1
PATCH: --write-devices to allow synchronising to a block device
...] = "--remove-sent-files";
+ if (write_devices)
+ args[ac++] = "--write-devices";
+
if (ac > MAX_SERVER_ARGS) { /* Not possible... */
rprintf(FERROR, "argc overflow in server_options().\n");
exit_cleanup(RERR_MALLOC);
diff -ru rsync-3.0.6/receiver.c rsync-3.0.6-writedev/receiver.c
--- rsync-3.0.6/receiver.c 2009-04-13 07:48:59.000000000 +1200
+++ rsync-3.0.6-writedev/receiver.c 2009-10-15 20:54:22.000000000 +1300
@@ -38,6 +38,7 @@
extern int relative_paths;
extern int preserve_hard_links;
extern in...
2006 Feb 13
1
rsync SIGSEGV signal handler in Cygwin.
...quot;errors with program diagnostics" },
{ RERR_IPC , "error in IPC code" },
{ RERR_SIGNAL , "received SIGUSR1 or SIGINT" },
+ { RERR_CRASH , "*** WE HAVE CRASHED :-( ***" },
{ RERR_WAITCHILD , "some error returned by waitpid()" },
{ RERR_MALLOC , "error allocating core memory buffers" },
{ RERR_PARTIAL , "some files could not be transferred" },
diff -ur rsync-2.6.6/main.c rsync/main.c
--- rsync-2.6.6/main.c Thu May 12 11:43:14 2005
+++ rsync/main.c Sat Jan 28 06:29:06 2006
@@ -114,6 +114,14 @@
* message descr...
2004 Oct 13
0
[Bug 1924] New: unable to rsync between a PC with cygwin and a unix machine using rsh
...(i=0;i<other_argc;i++)
args[argc++] =other_args[i] ;
} ;
/*
---------------------------
End of PFC patched section
---------------------------
*/
if (argc >= (int)(sizeof args / sizeof args[0])) {
rprintf(FERROR, "internal: args[] overflowed in do_cmd()\n");
exit_cleanup(RERR_MALLOC); /* XXX Need better RERR? */
}
args[argc] = NULL;
if (verbose > 3) {
rprintf(FINFO,"cmd=");
for (i=0;i<argc;i++)
rprintf(FINFO,"%s ",args[i]);
rprintf(FINFO,"\n");
}
if (local_server) {
if (read_batch)
create_flist_from_batch(); /* sets b...
2008 Oct 06
10
DO NOT REPLY [Bug 5811] New: rsync error: error allocating core memory buffers (code 22) at io.c(635)
https://bugzilla.samba.org/show_bug.cgi?id=5811
Summary: rsync error: error allocating core memory buffers (code
22) at io.c(635)
Product: rsync
Version: 3.0.4
Platform: x64
OS/Version: Linux
Status: NEW
Severity: blocker
Priority: P3
Component: core
AssignedTo: wayned@samba.org
2004 May 29
1
[patch] Filename conversion
..._cmd;
+extern int blocking_io;
+
+/**
+ * Splits cmd on spaces.
+ */
+static void split_on_spaces(char* cmd, char** parts) {
+ int nparts=0;
+ char *tok;
+ char *cmd2 = strdup(cmd);
+ if (!cmd2) {
+ rprintf(FERROR, "Out of memory while parsing filename filter %s\n", cmd);
+ exit_cleanup(RERR_MALLOC);
+ }
+
+ for (tok=strtok(cmd2," ");tok;tok=strtok(NULL," ")) {
+ if (nparts>=MAX_ARGS) {
+ rprintf(FERROR, "Filename conversion command is too long: %s\n", cmd);
+ exit_cleanup(RERR_SYNTAX);
+ }
+ parts[nparts++] = tok;
+ }
+ parts[nparts] = NULL;
+}
+
+
+/*...
2010 Jun 15
3
about rsyncing of block devices
..., int *ar
else if (remove_source_files)
args[ac++] = "--remove-sent-files";
+ if (copy_devices)
+ args[ac++] = "--copy-devices";
+
if (ac > MAX_SERVER_ARGS) { /* Not possible... */
rprintf(FERROR, "argc overflow in server_options().\n");
exit_cleanup(RERR_MALLOC);
diff -pur rsync-3.0.7/receiver.c rsync-3.0.7.new/receiver.c
--- rsync-3.0.7/receiver.c 2009-04-12 20:48:59.000000000 +0100
+++ rsync-3.0.7.new/receiver.c 2010-06-15 15:13:13.577550534 +0100
@@ -49,6 +49,7 @@ extern int keep_partial;
extern int checksum_seed;
extern int inplace;
extern int dela...