Folks,

I’ll look at these issues. It would be helpful if people would contribute 
patches, or at least write Jira tickets. If we don’t know it’s broken, it won’t 
get fixed...

To level-set: the DNS name resolver has been lightly used. Nothing would 
surprise me at this point.

D.

From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of 
anoopnairh...@gmail.com
Sent: Thursday, August 15, 2019 1:07 PM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] Crash when using dns_name_server

Hi Carlio,
    I had faced a similar crash with DNS module while resolving names.

The dns_cache_lock is in locked state after initialization. Because of this the 
first worker thread which attempts to take this lock will find it in "locked" 
state and spin forever. So the main thread panics when it tries for barrier 
sync.  Attached the patch which solved my problem

I could find couple of other issues in the DNS module and the patch has the fix 
for them as well.
    - DNS lock is not released while processing dns request -> causes deadlock
    - resolve a name from VAT when there is no server configured  -> crash due 
to a NULL pointer deference
    - delete_random_entry() is invoked while holding DNS lock -> a potential 
deadlock

Please check if it helps you.

thanks
Anoop
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#13753): https://lists.fd.io/g/vpp-dev/message/13753
Mute This Topic: https://lists.fd.io/mt/32881233/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to