[Pdns-users] [recursor] Segmentation fault at startup

bert hubert bert.hubert at netherlabs.nl
Wed May 26 08:55:47 UTC 2010

On Wed, May 26, 2010 at 10:18:43AM +0200, Stephane Bortzmeyer wrote:
> It was properly compiled but the Makefile contains a 'strip
> $(DESTDIR)/$(SBINDIR)/pdns_recursor' :-( Debugging the non-installed

For installed binaries, this is common.

> OK, the ACL parsing is not robust enough. What is strange is that,
> even without a configuration file (and therefore without ACL), it
> crashes at the same place):

This probably indicates that your version of NetBSD, compiler & linker have
problems with Thread Local Storage, which is used by variables that start
with 't_' in PowerDNS.

> Program received signal SIGSEGV, Segmentation fault.
> parseACLs () at pdns_recursor.cc:1508
> 1508      NetmaskGroup* oldAllowFrom = t_allowFrom, *allowFrom=new NetmaskGroup;

Could you split line 1508 as follows:

NetmaskGroup* oldAllowFrom = t_allowFrom;
NetmaskGroup* allowFrom = new NetmaskGroup;

? If it still crashes on 1508 (and not on 1509), this is definitely a __thread problem.


More information about the Pdns-users mailing list