Skip to content
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

Hard crash scenario with req socket in gen_server #22

Open
gar1t opened this issue Feb 25, 2011 · 1 comment
Open

Hard crash scenario with req socket in gen_server #22

gar1t opened this issue Feb 25, 2011 · 1 comment

Comments

@gar1t
Copy link

gar1t commented Feb 25, 2011

I'm trying to use a zmq socket within a gen_server. When the gen_server process crashes (including normal gen process exits), the VM crashes. Crash behavior when running from an escript is inconsistent but includes:

  • Program hangs without exiting
  • Various assertion errors (see below)
  • segfault

Some of the assertion errors:

{"init terminating in do_boot",timeout} 
Bad file descriptor
rc != -1 (epoll.cpp:68)
Aborted

and:

{"init terminating in do_boot",stop}
Bad file descriptor
nbytes != -1 (mailbox.cpp:189)
Aborted

Please refer to these two files when trying to reproduce:

I see this behavior on the current zeromq/erlzmq master.

@dhammika
Copy link

Can you run this in gdb and get a backtrace? You'd have to modify erl script to call gdb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants