-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
call getLocalAddress should after server initializing. #27646
Comments
Sorry, Im not realizing that these comments will be visible in this page.. |
Hi, could you provide you envoy version and how to reproduce this problem? |
We are developing based on v1.24.6. This is an intermittent problem. We don't know exactly how to reproduce this , sometimes when the network not initializing well, the coredump would be generated. #0 raise (sig=) at ../sysdeps/unix/sysv/linux/raise.c:50 Failed at Here, rc.errno_ is: details = "getifaddrs error: 22" |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions. |
If you are reporting any crash or any potential security issue, do not
open an issue in this repo. Please report the issue via emailing
[email protected] where the issue will be triaged appropriately.
Title: One line description
call getLocalAddress should after server initializing.
Description:
There is a RELEASE_ASSERTION in getLocalAddress. This called before server logging initializing.
So there will get only a crash coredump without any log for this crash.
Actually it is more proper to pass a nullptr as value of local_address into Server::InstanceImpl constructor.
So that in constructor we can call getLocalAddress after initialize the file_logger_ like:
in main_common.cc line 88:
server_ = std::make_uniqueServer::InstanceImpl(
*init_manager_, options_, time_system, nullptr, listener_hooks, *restarter_,
*stats_store_, access_log_lock, component_factory, std::move(random_generator), *tls_,
platform_impl_->threadFactory(), platform_impl_->fileSystem(), std::move(process_context));
Then in server.cc line 111:
Repro steps:
Admin and Stats Output:
Config:
Logs:
Call Stack:
The text was updated successfully, but these errors were encountered: