Elusive replication bug in 2.3.13
simon.matter at invoca.ch
Wed Jan 14 01:49:40 EST 2009
>> Since I upgraded to 2.3.13 (Invoca RPM rev 4) I've been running into a
>> mysterious replication bug. In some circumstances, creating a user with
>> letter long username causes the sync master process to choke, on either
>> 11 or 6. Like this:
> Interestingly, we just encountered this as well after a new rebuild from
> I got a stack back trace, which showed realloc() was choking. I looked at
> the code around there, and couldn't see anything obviously wrong. Bron
> looked at it and saw the problem in 10 seconds. I think I've been out of
> practice with C programming for too long :)
> The bug occured in this commit where Ken changed a glob() call to a custom
> readdir() loop.
> There's a missing sizeof() in there meaning that if you have > 25 quotas
> a dir (or > 12 on a 64-bit build), you'll have memory corruption occuring.
> Here's the patch to fix:
Maybe it's just the lack of caffeine in the early morning, but, isn't
there a way to simply _download_ a single diff from github.com?
Thanks for any insights.
More information about the Info-cyrus