-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pdns recursor crash on startup,The probability of crash is relatively high #11965
Comments
Thanks for the report. It's not clear to me yet what sequence of events could cause the scenario you describe. I'm also wondering why you are seeing this and others do not. Do you have backtrace perhaps? The configuration file would also be nice. Before fixing I would like to fully understand this and perhaps write a regression test for it. |
bt: describe: |
Is this a backtrace of the crash you are referring to ? At this moment I still have trouble seeing how |
I have thought a bit about this a bit more but still have trouble seeing the circumstances you describe could happen: I really would appreciate both a config file and a full backtrace (not leaving out the topmost frames) of an actual crash you observed. |
Hello @zjs604381586 , it has been a week since my questions. Do you have answers? |
I also looked at the logic, maybe my analysis is wrong, sorry |
system version: Debian 9
kernal version: Linux 4.19.117.bsk.10-amd64
pdns recursor version: 4.7.1
gcc/g++ version: 6.3.0
crash infos:
Thread 8 "pdns-r/distr" received signal SIGSEGV, Segmentation fault.
crash code postion:
problem causes:
The now variable released on the stack is sometimes used in the lambda function, because the SyncRes sr object may have been released, and the member d_now will also be released, so the now variable in the lambda function will be illegal and the program will crash
correct code:
Modify line 227 as follows:lambda function uses value copy
The text was updated successfully, but these errors were encountered: