hubgurujr created an issue (kamailio/kamailio#4287)
Seeing a lot of warning messages in logs, running version: kamailio 5.8.4 (x86_64/linux) 1e6738, but I think this is false positive and should be informational, not a warning.
Jun 10 14:14:17 siprouter1-pve186 /usr/local/sbin/kamailio[8111]:WARNING: <core> [core/dns_cache.c:170]: dns_hash_put(): unlinked item 0x7fa0f9b9fcc0 Jun 10 14:14:19 siprouter1-pve186 /usr/local/sbin/kamailio[8122]:WARNING: <core> [core/dns_cache.c:185]: dns_hash_put_shm_unsafe():unlinked item 0x7fa0f9b9fcc0
This is occurring when a DNS URL changes IP but I see no processing issues with SIP Messages.
[emal-thread.txt](https://github.com/user-attachments/files/20776557/emal-thread.txt)
miconda left a comment (kamailio/kamailio#4287)
Probably makes sense to switch to INFO, but I would like to get more about the source of printing the warnings, so I pushed a commit (d79bc9b9b85f247d8b4bca37d2f84d4dcb412730) to get the file name and line. Can you test with it and paste here the printed logs in such cases?
hubgurujr left a comment (kamailio/kamailio#4287)
Hi Daniel,
I’ll work on this today and get back with you.
Thanks.
JR Richardson
From: Daniel-Constantin Mierla ***@***.***> Sent: Tuesday, June 24, 2025 1:45 PM To: kamailio/kamailio ***@***.***> Cc: hubgurujr ***@***.***>; Author ***@***.***> Subject: Re: [kamailio/kamailio] "dns_hash_put(): unlinked item" downgrade of the WARN messages to INFO (Issue #4287)
https://avatars.githubusercontent.com/u/184809?s=20&v=4 miconda left a comment (kamailio/kamailio#4287) https://github.com/kamailio/kamailio/issues/4287#issuecomment-3001521086
Probably makes sense to switch to INFO, but I would like to get more about the source of printing the warnings, so I pushed a commit ( https://github.com/kamailio/kamailio/commit/d79bc9b9b85f247d8b4bca37d2f84d4dcb412730 d79bc9b) to get the file name and line. Can you test with it and paste here the printed logs in such cases?
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4287#issuecomment-3001521086 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQET6TGGT6OGA46SJM5J4PD3FGMEFAVCNFSM6AAAAAB7QIV34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMBRGUZDCMBYGY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AQET6TDTBF47KFUJRQ2Y3KL3FGMEFA5CNFSM6AAAAAB7QIV34SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVS46J34.gif Message ID: ***@***.*** ***@***.***> >
hubgurujr left a comment (kamailio/kamailio#4287)
I can’t get that commit applied, git commit/git cherry-pick is not seeing that commit hash. Can you walk me through applying that commit?
Thanks.
JR
JR Richardson
From: Daniel-Constantin Mierla ***@***.***> Sent: Tuesday, June 24, 2025 1:45 PM To: kamailio/kamailio ***@***.***> Cc: hubgurujr ***@***.***>; Author ***@***.***> Subject: Re: [kamailio/kamailio] "dns_hash_put(): unlinked item" downgrade of the WARN messages to INFO (Issue #4287)
https://avatars.githubusercontent.com/u/184809?s=20&v=4 miconda left a comment (kamailio/kamailio#4287) https://github.com/kamailio/kamailio/issues/4287#issuecomment-3001521086
Probably makes sense to switch to INFO, but I would like to get more about the source of printing the warnings, so I pushed a commit ( https://github.com/kamailio/kamailio/commit/d79bc9b9b85f247d8b4bca37d2f84d4dcb412730 d79bc9b) to get the file name and line. Can you test with it and paste here the printed logs in such cases?
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4287#issuecomment-3001521086 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQET6TGGT6OGA46SJM5J4PD3FGMEFAVCNFSM6AAAAAB7QIV34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMBRGUZDCMBYGY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AQET6TDTBF47KFUJRQ2Y3KL3FGMEFA5CNFSM6AAAAAB7QIV34SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVS46J34.gif Message ID: ***@***.*** ***@***.***> >
miconda left a comment (kamailio/kamailio#4287)
Have you done a git pull origin before cherry-pick?
hubgurujr left a comment (kamailio/kamailio#4287)
Sure did.
***@***.***:/usr/local/src/kamailio-5.8-testing/kamailio# git pull origin
Already up to date.
***@***.***:/usr/local/src/kamailio-5.8-testing/kamailio# git cherry-pick d79bc9b
fatal: bad revision 'd79bc9b'
***@***.***:/usr/local/src/kamailio-5.8-testing/kamailio# git cherry-pick d79bc9b9b85f247d8b4bca37d2f84d4dcb412730
fatal: bad object d79bc9b9b85f247d8b4bca37d2f84d4dcb412730
JR Richardson
From: Daniel-Constantin Mierla ***@***.***> Sent: Wednesday, June 25, 2025 10:05 AM To: kamailio/kamailio ***@***.***> Cc: hubgurujr ***@***.***>; Author ***@***.***> Subject: Re: [kamailio/kamailio] "dns_hash_put(): unlinked item" downgrade of the WARN messages to INFO (Issue #4287)
https://avatars.githubusercontent.com/u/184809?s=20&v=4 miconda left a comment (kamailio/kamailio#4287) https://github.com/kamailio/kamailio/issues/4287#issuecomment-3005130178
Have you done a git pull origin before cherry-pick?
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4287#issuecomment-3005130178 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQET6TF2MQJSDCFNEGIZO6D3FK3CNAVCNFSM6AAAAAB7QIV34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMBVGEZTAMJXHA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AQET6TDRSR4YBKUP4FBV2D33FK3CNA5CNFSM6AAAAAB7QIV34SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVTD2S4E.gif Message ID: ***@***.*** ***@***.***> >
miconda left a comment (kamailio/kamailio#4287)
When you cloned the git repo, have you done it only for the branch 5.8 (ie., with `-b`)? Or for all branches?
miconda left a comment (kamailio/kamailio#4287)
You can also get only the patch/diff of the commit:
- https://github.com/kamailio/kamailio/commit/d79bc9b9b85f247d8b4bca37d2f84d4d...
And apply it with with `patch -p1 < ....`.
hubgurujr left a comment (kamailio/kamailio#4287)
OK, I’ve got the patches applied, waiting on some good log messages and will send over.
Thanks
JR Richardson
From: Daniel-Constantin Mierla ***@***.***> Sent: Wednesday, June 25, 2025 10:23 AM To: kamailio/kamailio ***@***.***> Cc: hubgurujr ***@***.***>; Author ***@***.***> Subject: Re: [kamailio/kamailio] "dns_hash_put(): unlinked item" downgrade of the WARN messages to INFO (Issue #4287)
https://avatars.githubusercontent.com/u/184809?s=20&v=4 miconda left a comment (kamailio/kamailio#4287) https://github.com/kamailio/kamailio/issues/4287#issuecomment-3005187936
You can also get only the patch/diff of the commit:
* https://github.com/kamailio/kamailio/commit/d79bc9b9b85f247d8b4bca37d2f84d4d...
And apply it with with patch -p1 < .....
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4287#issuecomment-3005187936 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQET6TFCBY42DG6KPUHA2UT3FK5FHAVCNFSM6AAAAAB7QIV34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMBVGE4DOOJTGY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AQET6TA65T6P7PXVXPQOT3T3FK5FHA5CNFSM6AAAAAB7QIV34SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVTD6DWA.gif Message ID: ***@***.*** ***@***.***> >
hubgurujr left a comment (kamailio/kamailio#4287)
After patching, here are some log messages, log times are CST.
Jun 25 17:35:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c69750 (core/dns_cache.c:493)
Jun 25 17:41:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c69a00 (core/dns_cache.c:493)
Jun 25 17:47:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c76c90 (core/dns_cache.c:493)
Jun 25 18:03:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c6bba0 (core/dns_cache.c:493)
Jun 25 18:15:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c69750 (core/dns_cache.c:493)
Jun 25 18:17:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c66260 (core/dns_cache.c:493)
Jun 25 18:23:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c686b0 (core/dns_cache.c:493)
Jun 25 18:45:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c68e80 (core/dns_cache.c:493)
Jun 26 01:47:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c6bcb0 (core/dns_cache.c:493)
Jun 26 01:53:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c73180 (core/dns_cache.c:493)
Jun 26 01:53:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c736a0 (core/dns_cache.c:493)
Jun 26 02:03:14 siprouter-sti-test /usr/local/sbin/kamailio[9047]: WARNING: <core> [core/dns_cache.c:171]: dns
_hash_put_entry(): unlinked item 0x7fbb46c736a0 (core/dns_cache.c:493)
JR Richardson
Engineering for the Masses
Chasing the Azeotrope
JRx DistillCo
1’st Place Brisket
1’st Place Chili
From: Daniel-Constantin Mierla ***@***.***> Sent: Tuesday, June 24, 2025 1:45 PM To: kamailio/kamailio ***@***.***> Cc: hubgurujr ***@***.***>; Author ***@***.***> Subject: Re: [kamailio/kamailio] "dns_hash_put(): unlinked item" downgrade of the WARN messages to INFO (Issue #4287)
https://avatars.githubusercontent.com/u/184809?s=20&v=4 miconda left a comment (kamailio/kamailio#4287) https://github.com/kamailio/kamailio/issues/4287#issuecomment-3001521086
Probably makes sense to switch to INFO, but I would like to get more about the source of printing the warnings, so I pushed a commit ( https://github.com/kamailio/kamailio/commit/d79bc9b9b85f247d8b4bca37d2f84d4dcb412730 d79bc9b) to get the file name and line. Can you test with it and paste here the printed logs in such cases?
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4287#issuecomment-3001521086 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQET6TGGT6OGA46SJM5J4PD3FGMEFAVCNFSM6AAAAAB7QIV34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMBRGUZDCMBYGY . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AQET6TDTBF47KFUJRQ2Y3KL3FGMEFA5CNFSM6AAAAAB7QIV34SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVS46J34.gif Message ID: ***@***.*** ***@***.***> >
miconda left a comment (kamailio/kamailio#4287)
Can you apply two more patches, test again and give again the logs?
- https://github.com/kamailio/kamailio/commit/7f349a69cb9dbc2f18ecc0ae22ec2133... - https://github.com/kamailio/kamailio/commit/81e9c4f965dcedccdc73f88c6b8f0c2f...
The `debug` has to e `2` to get the INFO from the second patch, or, if you need to keep it lower, then change in the second patch the `LM_INFO` to `LM_WARN`.
I want to track it a bit further, because, as it is, it might lead to memory leak.
hubgurujr left a comment (kamailio/kamailio#4287)
Sorry, was not able to get to this today, I’ll follow up Monday.Please send all support request to ***@***.*** from mobile device. Please excuse brevity or grammatical errors.On Jun 27, 2025, at 7:28 AM, Daniel-Constantin Mierla ***@***.***> wrote:miconda left a comment (kamailio/kamailio#4287) Can you apply two more patches, test again and give again the logs?
https://github.com/kamailio/kamailio/commit/7f349a69cb9dbc2f18ecc0ae22ec2133... https://github.com/kamailio/kamailio/commit/81e9c4f965dcedccdc73f88c6b8f0c2f...
The debug has to e 2 to get the INFO from the second patch, or, if you need to keep it lower, then change in the second patch the LM_INFO to LM_WARN. I want to track it a bit further, because, as it is, it might lead to memory leak.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
hubgurujr left a comment (kamailio/kamailio#4287)
Patches applied, debug level set to 4. Will follow up with new log messages.
JR Richardson
From: Daniel-Constantin Mierla ***@***.***> Sent: Friday, June 27, 2025 7:28 AM To: kamailio/kamailio ***@***.***> Cc: hubgurujr ***@***.***>; Author ***@***.***> Subject: Re: [kamailio/kamailio] "dns_hash_put(): unlinked item" downgrade of the WARN messages to INFO (Issue #4287)
https://avatars.githubusercontent.com/u/184809?s=20&v=4 miconda left a comment (kamailio/kamailio#4287) https://github.com/kamailio/kamailio/issues/4287#issuecomment-3012885513
Can you apply two more patches, test again and give again the logs?
* https://github.com/kamailio/kamailio/commit/7f349a69cb9dbc2f18ecc0ae22ec2133... * https://github.com/kamailio/kamailio/commit/81e9c4f965dcedccdc73f88c6b8f0c2f...
The debug has to e 2 to get the INFO from the second patch, or, if you need to keep it lower, then change in the second patch the LM_INFO to LM_WARN.
I want to track it a bit further, because, as it is, it might lead to memory leak.
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4287#issuecomment-3012885513 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQET6TGE6MJ7YDSO3JL5CE33FU2GVAVCNFSM6AAAAAB7QIV34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMJSHA4DKNJRGM . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AQET6TAAQDEUZUSLESLQ7G33FU2GVA5CNFSM6AAAAAB7QIV34SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVTST6AS.gif Message ID: ***@***.*** ***@***.***> >
hubgurujr left a comment (kamailio/kamailio#4287)
Not sure this is helpful but here is log snip grep for ‘dns_cache’, debug level 4, no error yet.
JR Richardson
From: Daniel-Constantin Mierla ***@***.***> Sent: Friday, June 27, 2025 7:28 AM To: kamailio/kamailio ***@***.***> Cc: hubgurujr ***@***.***>; Author ***@***.***> Subject: Re: [kamailio/kamailio] "dns_hash_put(): unlinked item" downgrade of the WARN messages to INFO (Issue #4287)
https://avatars.githubusercontent.com/u/184809?s=20&v=4 miconda left a comment (kamailio/kamailio#4287) https://github.com/kamailio/kamailio/issues/4287#issuecomment-3012885513
Can you apply two more patches, test again and give again the logs?
* https://github.com/kamailio/kamailio/commit/7f349a69cb9dbc2f18ecc0ae22ec2133... * https://github.com/kamailio/kamailio/commit/81e9c4f965dcedccdc73f88c6b8f0c2f...
The debug has to e 2 to get the INFO from the second patch, or, if you need to keep it lower, then change in the second patch the LM_INFO to LM_WARN.
I want to track it a bit further, because, as it is, it might lead to memory leak.
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4287#issuecomment-3012885513 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQET6TGE6MJ7YDSO3JL5CE33FU2GVAVCNFSM6AAAAAB7QIV34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMJSHA4DKNJRGM . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AQET6TAAQDEUZUSLESLQ7G33FU2GVA5CNFSM6AAAAAB7QIV34SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVTST6AS.gif Message ID: ***@***.*** ***@***.***> >
Jun 30 12:37:11 siprouter-sti-test /usr/local/sbin/kamailio[14319]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:37:11 siprouter-sti-test /usr/local/sbin/kamailio[14319]: DEBUG: <core> [core/dns_cache.c:1706]: dns_get_related(): (0x7f31445f8ac0 (outbound.sip.clearip.com, 1), 1, *0x7f314d3bac50) (0) Jun 30 12:37:11 siprouter-sti-test /usr/local/sbin/kamailio[14319]: DEBUG: <core> [core/dns_cache.c:1709]: dns_get_related(): record not alone: 0x7f31445f8ac0 - type: 1 Jun 30 12:37:11 siprouter-sti-test /usr/local/sbin/kamailio[14319]: DEBUG: <core> [core/dns_cache.c:755]: dns_cache_add_unsafe(): adding outbound.sip.clearip.com(24) 1 (flags=0) at 117 Jun 30 12:37:11 siprouter-sti-test /usr/local/sbin/kamailio[14319]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:37:11 siprouter-sti-test /usr/local/sbin/kamailio[14319]: DEBUG: <core> [core/dns_cache.c:1706]: dns_get_related(): (0x7f31445f9260 (inbound.sip.clearip.com, 1), 1, *0x7f314d3bac50) (0) Jun 30 12:37:11 siprouter-sti-test /usr/local/sbin/kamailio[14319]: DEBUG: <core> [core/dns_cache.c:1709]: dns_get_related(): record not alone: 0x7f31445f9260 - type: 1 Jun 30 12:37:11 siprouter-sti-test /usr/local/sbin/kamailio[14319]: DEBUG: <core> [core/dns_cache.c:755]: dns_cache_add_unsafe(): adding inbound.sip.clearip.com(23) 1 (flags=0) at 295 Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:1706]: dns_get_related(): (0x7f31445f8ac0 (outbound.sip.clearip.com, 1), 1, *0x7f314d380d70) (0) Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:1709]: dns_get_related(): record not alone: 0x7f31445f8ac0 - type: 1 Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:755]: dns_cache_add_unsafe(): adding outbound.sip.clearip.com(24) 1 (flags=0) at 117 Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:37:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:37:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:37:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2 Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:1706]: dns_get_related(): (0x7f31445f8ac0 (outbound.sip.clearip.com, 1), 1, *0x7f314d382c20) (0) Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:1709]: dns_get_related(): record not alone: 0x7f31445f8ac0 - type: 1 Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:755]: dns_cache_add_unsafe(): adding outbound.sip.clearip.com(24) 1 (flags=0) at 117 Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:38:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:38:16 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:38:16 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2 Jun 30 12:38:25 siprouter-sti-test /usr/local/sbin/kamailio[14330]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:38:25 siprouter-sti-test /usr/local/sbin/kamailio[14330]: DEBUG: <core> [core/dns_cache.c:1706]: dns_get_related(): (0x7f31445f9260 (inbound.sip.clearip.com, 1), 1, *0x7f314d384160) (0) Jun 30 12:38:25 siprouter-sti-test /usr/local/sbin/kamailio[14330]: DEBUG: <core> [core/dns_cache.c:1709]: dns_get_related(): record not alone: 0x7f31445f9260 - type: 1 Jun 30 12:38:25 siprouter-sti-test /usr/local/sbin/kamailio[14330]: DEBUG: <core> [core/dns_cache.c:755]: dns_cache_add_unsafe(): adding inbound.sip.clearip.com(23) 1 (flags=0) at 295 Jun 30 12:38:25 siprouter-sti-test /usr/local/sbin/kamailio[14330]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:38:25 siprouter-sti-test /usr/local/sbin/kamailio[14330]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:38:30 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:38:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:38:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:38:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:38:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:38:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:38:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:38:43 siprouter-sti-test /usr/local/sbin/kamailio[14325]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:38:43 siprouter-sti-test /usr/local/sbin/kamailio[14325]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:38:43 siprouter-sti-test /usr/local/sbin/kamailio[14325]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:38:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=3 Jun 30 12:38:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2 Jun 30 12:38:48 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:39:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:39:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:39:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:39:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:39:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:39:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:39:16 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:39:16 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2 Jun 30 12:39:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:39:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:39:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:39:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:39:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:39:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:39:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2 Jun 30 12:39:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:40:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:40:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:40:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:40:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:40:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:40:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:40:16 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:40:16 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2 Jun 30 12:40:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:40:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:40:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:40:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:40:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:40:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:40:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:40:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2 Jun 30 12:41:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:41:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:41:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:41:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:41:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:41:11 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:41:16 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:41:16 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2 Jun 30 12:41:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (inbound.sip.clearip.com(23), 1), h=295 Jun 30 12:41:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (inbound.sip.clearip.com, 0) returning 0 Jun 30 12:41:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (inbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:41:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:540]: _dns_hash_find(): (outbound.sip.clearip.com(24), 1), h=117 Jun 30 12:41:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:2891]: dns_a_resolve(): (outbound.sip.clearip.com, 0) returning 0 Jun 30 12:41:41 siprouter-sti-test /usr/local/sbin/kamailio[14334]: DEBUG: <core> [core/dns_cache.c:3265]: dns_srv_sip_resolve(): (outbound.sip.clearip.com, 0, 0), ip, ret=0 Jun 30 12:41:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (inbound.sip.clearip.com) ref=2 Jun 30 12:41:46 siprouter-sti-test /usr/local/sbin/kamailio[14333]: DEBUG: tm [h_table.c:207]: free_cell_helper(): branch 0 -> dns_h.srv () ref=0, dns_h.a (outbound.sip.clearip.com) ref=2
hubgurujr left a comment (kamailio/kamailio#4287)
Here is a log entry with latest patches:
Jun 30 14:58:42 siprouter-sti-test /usr/local/sbin/kamailio[14510]: INFO: <core> [core/dns_cache.c:496]: _dns_hash_remove_entry(): item 0x7f362eb590c0 with high refcnt 2 (core/dns_cache.c:551)
Jun 30 14:58:42 siprouter-sti-test /usr/local/sbin/kamailio[14510]: WARNING: <core> [core/dns_cache.c:171]: dns_hash_put_entry(): unlinked item 0x7f362eb590c0 rc 1 (core/dns_cache.c:499)
Thanks.
JR Richardson
From: Daniel-Constantin Mierla ***@***.***> Sent: Friday, June 27, 2025 7:28 AM To: kamailio/kamailio ***@***.***> Cc: hubgurujr ***@***.***>; Author ***@***.***> Subject: Re: [kamailio/kamailio] "dns_hash_put(): unlinked item" downgrade of the WARN messages to INFO (Issue #4287)
https://avatars.githubusercontent.com/u/184809?s=20&v=4 miconda left a comment (kamailio/kamailio#4287) https://github.com/kamailio/kamailio/issues/4287#issuecomment-3012885513
Can you apply two more patches, test again and give again the logs?
* https://github.com/kamailio/kamailio/commit/7f349a69cb9dbc2f18ecc0ae22ec2133... * https://github.com/kamailio/kamailio/commit/81e9c4f965dcedccdc73f88c6b8f0c2f...
The debug has to e 2 to get the INFO from the second patch, or, if you need to keep it lower, then change in the second patch the LM_INFO to LM_WARN.
I want to track it a bit further, because, as it is, it might lead to memory leak.
— Reply to this email directly, view it on GitHub https://github.com/kamailio/kamailio/issues/4287#issuecomment-3012885513 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AQET6TGE6MJ7YDSO3JL5CE33FU2GVAVCNFSM6AAAAAB7QIV34SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAMJSHA4DKNJRGM . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AQET6TAAQDEUZUSLESLQ7G33FU2GVA5CNFSM6AAAAAB7QIV34SWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVTST6AS.gif Message ID: ***@***.*** ***@***.***> >
Closed #4287 as completed.
miconda left a comment (kamailio/kamailio#4287)
Thanks for the testing and feedback! I pushed the commit to switch the warning to info, as well as to destroy the item immediately on remove. They are in git master branch, considered for backporting. I am closing this one.