-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Logging errors results in abnormal termination (abort) #3163
Comments
@ajor Is the only issue here is the calling of |
I think throwing an exception from the |
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw std::runtime_error`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: bpftrace#3163
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw std::runtime_error`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: bpftrace#3163
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw std::runtime_error`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: bpftrace#3163
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw FatalUserException`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: bpftrace#3163
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw FatalUserException`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: bpftrace#3163
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw FatalUserException`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: bpftrace#3163
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw FatalUserException`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: bpftrace#3163
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw FatalUserException`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: bpftrace#3163
Replace these with either LOG(BUG), LOG(ERROR) and exit(1) in main.cpp, or `throw FatalUserException`. This is to avoid calling `abort` for user errors and removes the confusion between `LOG(ERROR)` and `LOG(FATAL)`. Issue: #3163 Co-authored-by: Jordan Rome <[email protected]>
Since #3091, errors which trigger bpftrace to terminate do so by calling
abort()
and core-dumping. This is a bad user experience.Repro
Trigger an error:
Expected Behaviour
bpftrace should exit by returning from
main
with a non-zero error code.The text was updated successfully, but these errors were encountered: