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

Attachment: vpp-19.01-dns-deadlock-fix.patch
Description: Binary data

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

View/Reply Online (#13752): https://lists.fd.io/g/vpp-dev/message/13752
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