-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Etcd exits without a trace #5431
Comments
Alternatively, if this isn't the case, something weird is happening, and I broke golang! |
Are you running with systemd? |
Nope, I'm running interactively on the cli, although this is a build where I've called NewServer in my code since I'm embedding etcd server. |
Then I am not sure. All I can think of is a logging issue. Go should always panic with tracing. |
@purpleidea What's your OS? Or can you share that code to reproduce this? |
On Mon, May 23, 2016 at 2:26 PM, Gyu-Ho Lee notifications@github.com
Fedora GNU/Linux 23, with stock distro golang. After my patch is finished, |
@purpleidea We don't silence any runtime panics, as far as I know. Please share the logs whenever it's ready. Thanks! |
I seem to have found a reproducer, although I have experienced this with different code before. Doing the following:
where response is a
which is returned when an watch event comes in. I don't have a trimmed down code example of this at the moment, but it should be fairly straightforward to throw together if someone is interested in confirming this. FWIW I'm using:
Cheers |
This cannot happen unless Even if
|
@purpleidea I don't think it's go bug either. Please re-open this when you can reliably reproduce. I think there must be something related in your project. We had never seen this in etcd before :0 Thanks! |
On Sun, May 29, 2016 at 6:14 PM, Gyu-Ho Lee notifications@github.com
Fair enough! Sorry for the noise. |
Np! Please feel free to ask anything! |
On Sun, May 29, 2016 at 6:24 PM, Gyu-Ho Lee notifications@github.com
You all have been immensely helpful during my etcd hacking. Let me know if |
I'm hacking on #5430
I've added a method to etcdmain, and for fun, I imported it and tested it. It compiles and runs, but I knew that I was lazy and was calling a method on a nil variable, and was expecting a panic... My program runs, and dies, but no trace is seen!
Indeed the program seems to be dying when it calls a method on the nil variable, but how come I don't get a trace? I'm assuming etcd has somewhere hidden some "runtime" hack to disable this.
Could point me to where this is happening, it's making hacking on etcd painful!
The text was updated successfully, but these errors were encountered: