[Unbound-users] unbound segfaults

W.C.A. Wijngaards wouter at nlnetlabs.nl
Wed Apr 3 21:26:19 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Chris,

Thanks for the heads up.  This does not affect the 1.4.20 release, as
this code is newer.

I suspect two changes of causing it (I am supposedly on holiday, so
I'll make it short).  The first is a binary API version change in
libunbound; this should likely not affect you, but if your install is
not 'clean', it could be that you now have two libunbound.so.x
versions, and if you compile with --export-all-symbols then this could
cause segfaults in the unbound daemon if it picks the wrong library
out of your libdir.

The other is a codechange, to do with private-address functionality;
are you using private-address?  This is the only real codechange in
this timeframe, and touches on a lot of pointers...  I thought it was
fine, but then you always do until you find the bug :-)

That would be this patch that then causes the issue:
svn diff http://unbound.net/svn/trunk/iterator -r2867:2868 > file
this code does fire even if you do not have private-addresses
configured, but it does not seem to fail in unit tests.
patch -r reverses the patch if you want to try that.

Best regards,
   Wouter

On 04/03/2013 07:15 PM, Chris Smith wrote:
> Unbound has started to segfault on one of my servers. It's set up
> as an iterator - cache and forwarder.
> 
> This is the error Apr  1 16:33:07 kernel: [13600580.130222]
> unbound[27581]: segfault at c ip 0806e0af sp bf86dc70 error 4 in
> unbound[8048000+a3000] Apr  3 12:49:29 kernel: [13759961.676284]
> unbound[6045]: segfault at c ip 0806e0af sp bffdbe60 error 4 in
> unbound[8048000+a3000] Apr  3 12:56:01 kernel: [13760354.457757]
> unbound[5095]: segfault at c ip 0806e0af sp bfaed910 error 4 in
> unbound[8048000+a3000]
> 
> I have probably brought this on myself as I've been running the
> SVN version (for many months) and regularly upgrading. However,
> I've never had this issue before.
> 
> Everything has been fine until the svn upgrade on 3-24, the crash 
> didn't happen until 4-1. On 4-1 I installed the latest svn and it 
> crashed today, and immediately again upon a restart; although
> after another restart it is up and running (for now).
> 
> If it helps the previous svn upgrade, the one before the 3-24 one
> that crashed was on 2-18.
> 
> Thank you,
> 
> Chris _______________________________________________ Unbound-users
> mailing list Unbound-users at unbound.net 
> http://unbound.nlnetlabs.nl/mailman/listinfo/unbound-users
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRXJ56AAoJEJ9vHC1+BF+NHi8P/2SR5gRuN9GQkr5DpPafK62t
kLedqUledNuJxDIsxGZPe/OsSBnaJuTpTsc2hn0ht2DIYgh27dnCUK/CcBsSFbFn
hVv8naPXkXsoZ15JJcyzjnDQEOl1G5RscIlNqu0Do4YQGsU2xi9BYDeXPCXRvM+F
qSeEz8cCP68CWV5XBTSD3htSxiGZod2wYcS1qvHA/1FXDCNPaTMi49ovTEzNsoBw
Pflkd6Z7etpr7oerOeDIn6SGky+1qQepz7M+Cgl6nZnOUILrujh5MyCxcHkBfSxA
dDoaoWgfSZRxH1P4bhAOfMNdzRbA7UIltrxVdcVydrPJnOQsgounYpADZ3jzFKfe
p53I+rdEPD7eOE9W00+sIA2rwlnPqcrN6/pHk438RD0Ns2z8mY7KcxCTDUrW4DV7
5/u4j6uda4PO4JcT+co4vUOfiHTmNM36MxHXG1qvLRHKePDDv/optIfWXIUoE67J
DKJblCUpjt8xv0dnSH6SihOzNEQJqlzN8po5eaWQdoJpTSObYcdkRCfdIXit+cSP
tkjJisLtb4BwlgiepTcFAB1LOLyDnTNz6fnTSwxPDDL28T5Zo7aUS/MROgwXp43K
DdOICCrqVyBZ+seo2mrydSrZCfgqVsSeaVbHEKQyjUBEv9+mHsTBJyfAYYwHKxzT
Fb2ETxcwhoTNWRl3Bi5Q
=xhwQ
-----END PGP SIGNATURE-----



More information about the Unbound-users mailing list