[Dnsmasq-discuss] segv using 2.75 with dnssec

Simon Kelley simon at thekelleys.org.uk
Tue Dec 8 16:33:36 GMT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Staring at the code some more, I'm less sure I've found the problem.

If it breaks again, running a backtrace (bt command) would be useful.


Cheers,

Simon.


On 08/12/15 07:48, Andre Heider wrote:
> Hi Simon,
> 
> On Tue, Dec 8, 2015 at 12:08 AM, Simon Kelley
> <simon at thekelleys.org.uk> wrote:
>> I think the problem may be the code-path in get_new_frec() which
>> frees old frecs. Warping the time will make all the records
>> suddenly old, and they'll get freed by the loop. The problem is
>> that some will be freed by the recursive calls to free_frec
>> within the loop and then free'd again by the loop.
>> 
>> I think the solution is to add
>> 
>> if (f->sentto == NULL) return;
>> 
>> at the very start of free_frec()
>> 
>> Are you in a position to try that?
> 
> I am, and I'll try just that, thanks.
> 
> Regards, Andre
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBCAAGBQJWZwZgAAoJEBXN2mrhkTWiGZsP/0pEVKunT5RfZawHQudtz4wf
cRxvbD6XV1cvMmzzKqvGWoxIhftt3eO2LNIlHI8FgqvQa1/i+LtgbZCfd+8vWfNJ
468rZEvugsGOAgn9E98a+heIVXJpSjihQU7S+Jj4l4ujd801J5TuG7XPhLlrQXJm
eTWjYY7BInFR3chyO78+VBsqNXp7B4eGriBQZHDMMNxGMcBqVOyR5V4OzIBhhzYU
FkEjt7y/YyzgKvLU2is3Mfb1AoS8YsSNzZydY5hNmVM0kHP4S+7s1f75BFJylgtI
oF9/D74yJ5gRwtOtH/chnoIKuVkvbA+caPEyUAkaUDqG9mVz1B0jAQVH5vy+BpU9
Em3rFM17k6gf7iwUEOFeRdpow6yiYiiMsQlyWFQfhD9T94GjceCHO3g+Z3PLjkZZ
TVbmYwFFsEzAA0o0k2+yU20flrqGG4m/14ssoEMEyyR0+qDrdsFyJoxyHmfQJKI2
iTTIzC+qwf5jMbA+52hac3h9Ob9Br/4TgdPMnEdJwlClLp1/23KnqZejiUs8i4GY
jLYzI+s4BI0epQGn+tU4QBWZ4EZ/wsah0OM0TojM2P2gZfnOPY3bWj1kxwqPBF1o
nMnQcH1iemoBH0i0PqvjOQGPN6moXnmlmMhDOgCO1nEPAnMinuWSx1rhXIJ9eykk
36iOtsldBdGmsws/lABd
=WVbh
-----END PGP SIGNATURE-----



More information about the Dnsmasq-discuss mailing list