[rbldnsd] out of memory error

Michael Tokarev mjt at tls.msk.ru
Mon Oct 14 19:55:04 MSK 2013


14.10.2013 19:45, Michael Tokarev wrote:
[]
> ~/src/rbldnsd/rbldnsd -n -b 127.0.0.1/1053 foo:dnset:data
> rbldnsd: listening on 127.0.0.1/1053
> rbldnsd: dnset:data: 20131014 153959: e/w=52268396/0
> rbldnsd: zones reloaded, time 42.41e/33.85u sec, mem arena=-923228 free=178 mmap=816696 Kb
> rbldnsd: rbldnsd version 0.997a (23 Jul 2013) started (1 socket(s), 1 zone(s))
>
> It looks like the memory map report is wrong (32 vs 64 bit number
> is used somewhere), but other than the report itself, it all works.

It appears to be a defect of mallinfo(3) interface.  There, all the
fields in the mallinfo structure (which is returned by the system
library routine) are of type int, and represent bytes.  But we
definitely use more than 2^32 bytes of memory so those values not
only span the sign bit in a 32bit _signed_ number, but overflows
this number too.  So this libc interface is buggy, and I don't
have another for now.

This is just a small comment, the problem is _only_ in the statistics
reported by rbldnsd, nothing more.  It does not change actual useful
behavour of the program in any way.

/mjt


More information about the rbldnsd mailing list