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

Crash at http_server.cc:264 when we stop the http server #36

Closed
zieckey opened this issue Apr 19, 2017 · 0 comments
Closed

Crash at http_server.cc:264 when we stop the http server #36

zieckey opened this issue Apr 19, 2017 · 0 comments
Labels

Comments

@zieckey
Copy link
Collaborator

zieckey commented Apr 19, 2017

evpp::http::Server::__lambda3::operator() (__closure=0x7fdfb8001290) at /home/weizili/git/evpp/evpp/http/http_server.cc:264

When we are stopping the http server:

  1. Accept a new http request
  2. Dispatch the request to a IO event loop
  3. Stopping http server
  4. Listening http service and thread has stopped. This will delete the evhttp_ and free all the http connections.
  5. IO event loop begin to process the request at step 2, that will crash because the http request pointer is a wild pointer
@zieckey zieckey added the bug label Apr 19, 2017
@zieckey zieckey changed the title Crash at http_server.cc:264 Crash at http_server.cc:264 when we stop the http server Apr 19, 2017
zieckey added a commit that referenced this issue Apr 20, 2017
…s status.

We can check the status of a http server when we are dispatching a request
to a working thread.

Fix issue36 : #36
@zieckey zieckey closed this as completed Apr 23, 2017
zieckey added a commit that referenced this issue Apr 27, 2017
…s status.

We can check the status of a http server when we are dispatching a request
to a working thread.

Fix issue36 : #36
zieckey added a commit that referenced this issue May 20, 2017
…s status.

We can check the status of a http server when we are dispatching a request
to a working thread.

Fix issue36 : #36
zieckey added a commit that referenced this issue May 20, 2017
…s status.

We can check the status of a http server when we are dispatching a request
to a working thread.

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

No branches or pull requests

1 participant