DO NOT REPLY [Bug 4904] New: POOL_INTERN ignored in pool_create()

samba-bugs at samba-bugs at
Mon Aug 20 21:25:13 GMT 2007

           Summary: POOL_INTERN ignored in pool_create()
           Product: rsync
           Version: 3.0.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: brion at
         QAContact: rsync-qa at

While investigating a crash in pool_free_old(), I noticed another little buglet
in pool_create() -- the POOL_INTERN flag is checked against pool->flags (which
is newly allocated and zeroed out) instead of the flags argument.

As a result, pool->size won't get adjusted, and POOL_APPEND doesn't get added
into the flags, so extent structures get allocated separately. Since
POOL_INTERN is never checked for anywhere else, it ends up having no effect.

Switching the check from pool->flags to flags doesn't seem to have blown
anything up for me so far. :) One-line patch to be attached...

Configure bugmail:
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.

More information about the rsync mailing list