samba-bugs at samba.org
2011-Apr-15 20:10 UTC
[Bug 8090] New: full_fname out of memory error on missing file SunOS 5.8
https://bugzilla.samba.org/show_bug.cgi?id=8090 Summary: full_fname out of memory error on missing file SunOS 5.8 Product: rsync Version: 3.0.7 Platform: Sparc OS/Version: SunOS Status: NEW Severity: minor Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: jm9991 at att.com QAContact: rsync-qa at samba.org When attempting to copy a non-existent file to another file on Solaris 5.8, a out-of-memory error is shown rather than a file-not-found error. I've attached 'truss' output showing the sequence. $ uname -a SunOS xxx 5.8 Generic_117350-45 sun4u sparc SUNW,Sun-Fire-V440 $ cd /tmp $ rsync missingfile /tmp ERROR: out of memory in full_fname [sender] rsync error: error allocating core memory buffers (code 22) at util.c(117) [sender=3.0.7] The relevant portion of the truss output: 29718: lstat64("missingfile", 0xFFBEE3E8) Err#2 ENOENT 29718: write(2, 0xFFBEBDD0, 43) = 43 The problem does not manifest on Solaris 10. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-Apr-15 20:11 UTC
[Bug 8090] full_fname out of memory error on missing file SunOS 5.8
https://bugzilla.samba.org/show_bug.cgi?id=8090 --- Comment #1 from Jason Martin <jm9991 at att.com> 2011-04-15 20:11:15 UTC --- Created attachment 6409 --> https://bugzilla.samba.org/attachment.cgi?id=6409 truss output of problem. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-May-30 17:29 UTC
[Bug 8090] full_fname out of memory error on missing file SunOS 5.8
https://bugzilla.samba.org/show_bug.cgi?id=8090 --- Comment #2 from Wayne Davison <wayned at samba.org> 2011-05-30 17:29:11 UTC --- full_fname() is calling asprintf(). Perhaps that is not supported on Solaris 5.8? You could try using the version supplied by lib/snprintf.c (e.g. manipulating the defines in config.h, and perhaps some function-name trickery). If asprintf() isn't the issue, I'd suggest either using a debugger to look at the string pointers that will be passed to asprintf(), or outputting them via debug fprintf(stderr, "...") calls. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-Oct-06 15:54 UTC
[Bug 8090] full_fname out of memory error on missing file SunOS 5.8
https://bugzilla.samba.org/show_bug.cgi?id=8090 Wayne Davison <wayned at samba.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #3 from Wayne Davison <wayned at samba.org> 2011-10-06 15:54:21 UTC --- The asprintf() call in question is only 1 of 2 in all of rsync that tests the success of the function via "<= 0" rather than "< 0". Perhaps just removing the '=' in those calls would fix the issue? Is asprintf() working OK if it returns 0? -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
samba-bugs at samba.org
2011-Nov-23 21:15 UTC
[Bug 8090] full_fname out of memory error on missing file SunOS 5.8
https://bugzilla.samba.org/show_bug.cgi?id=8090 Wayne Davison <wayned at samba.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #4 from Wayne Davison <wayned at samba.org> 2011-11-23 21:15:15 UTC --- I'll assume that this is fixed unless I hear otherwise. -- Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.