startup Crash in res_nsearch_2 or dns_res_send if chat account logs in at startup
Categories
(Thunderbird :: Instant Messaging, defect)
Tracking
(Not tracked)
People
(Reporter: unicorn.consulting, Unassigned)
References
()
Details
(Keywords: crash, Whiteboard: [startupcrash][rare])
Crash Data
User Story
Bug filed from support request in URL.
Comment 1•8 years ago
|
||
Updated•7 years ago
|
Comment 2•7 years ago
|
||
Interesting. Looks to me like this might be from our DNS SRV code. (https://dxr.mozilla.org/comm-central/source/comm/chat/modules/DNS.jsm). I wonder if there's a condition that doesn't allow multiple requests in flight at once.
Philipp, do you know if this code was written to allow for multiple in-flight requests at once? Some of the lookup code gets a bit thick for me! Unfortunately the stack doesn't seem to go into JavaScript land.
Comment 3•7 years ago
|
||
Based on http://man7.org/linux/man-pages/man3/res_nsearch.3.html it seems res_search is not threadsafe, so this could be a result of it. Maybe we could use res_nsearch instead? I'm not sure it is always available. Or we need to queue up the requests.
Comment 4•7 years ago
|
||
Hmm it seems res_nsearch is already being used under the hood, so my previous comment may be wrong. If this crash is reproducible I think we should rather check if all buffers are correctly allocated.
Comment 5•6 years ago
|
||
Hey Paul, you were looking at this code recently. Any idea what's happening here?
Comment 6•6 years ago
|
||
As I mentioned on IRC the other day, I haven't had a chance to look into this yet. Will add it to my list.
Comment 8•6 years ago
|
||
Windows uses a completely different implementation. It is possible that this bug also affects Linux, see https://dxr.mozilla.org/comm-central/rev/2a29ee0adb310b54a6a2df72034953fed8f2b043/comm/chat/modules/DNS.jsm#310-313
Updated•5 years ago
|
Updated•5 years ago
|
Comment 9•4 years ago
|
||
Matt, does this still happen when using a current version, and is it reproducible for you?
Both signatures still occur for version 91
- dns_res_send bp-8f2089fb-f96b-44ea-a9a9-3ce510211029
- res_nsearch_2 bp-18dd1a6d-d97e-4b6d-be96-844d70211109 (more frequent than the above)
| Reporter | ||
Comment 10•4 years ago
|
||
I have deleted all my chat accounts from Thunderbird, so I really can not assist with this any longer Wayne.
To resolve my issues with account ordering and other messed up layout decisions along with internet connectivity issues, I am minimising my Thunderbird accounts to only the essentials.
Comment 11•4 years ago
|
||
Both signatures occur only for older versions of Mac, so I'm going to declare this issue as resolved
Comment 12•6 months ago
|
||
res_nsearch_2 has returned in 143.0b1
Comment 13•6 months ago
|
||
(In reply to Corey Bryant from comment #12)
res_nsearch_2 has returned in 143.0b1
Returned in 142.0 with a vengeance, which strongly suggests a regression. In such cases, best to file a new bug.
And in general, even if it's not a clear regression, if there has been so much passage of time and no connection demonstrated in the stack or step to reproduce (this bug is cited as being chat specific), also better to file a new bug.
Other points:
- the stacks all have a lot of js so the trigger/cause may be totally unrelated to the signatures res_nsearch_2 and dns_res_send
- significant, we don't see crash surges for any other OS (something I normally look for)
- all versions of macOS are represented
Comment 14•6 months ago
|
||
The new crashes in 142 would be from bug 1976254.
Description
•