I think I ran into the same issue (realloc() returning an error when being asked for 32 bytes somewhere down the callstack from blocking_getaddrinfo()) with 4.2.8p3 on SUSE, but with a slightly different behaviour:
The error in realloc() only happens when using ntpq to add a server to a running ntpd that does not have any servers yet. When a server is given on the command line or in ntp.conf, ntpd starts fine and more servers can be added at runtime.
I can confirm that disabling mlockall() as suggested in comment 13 prevents the call.
Applying the patch from comment 13 makes it even worse: Now the error also happens when a server is specified at startup on the command line or in ntp.conf.
I think I ran into the same issue (realloc() returning an error when being asked for 32 bytes somewhere down the callstack from blocking_ getaddrinfo( )) with 4.2.8p3 on SUSE, but with a slightly different behaviour:
The error in realloc() only happens when using ntpq to add a server to a running ntpd that does not have any servers yet. When a server is given on the command line or in ntp.conf, ntpd starts fine and more servers can be added at runtime.
I can confirm that disabling mlockall() as suggested in comment 13 prevents the call.
Applying the patch from comment 13 makes it even worse: Now the error also happens when a server is specified at startup on the command line or in ntp.conf.