Opened 11 years ago
Last modified 11 years ago
#5815 new Bugs
booast asio crash in io_service run
Reported by: | Owned by: | chris_kohlhoff | |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.47.0 | Severity: | Showstopper |
Keywords: | Cc: |
Description
Boost Asio crashes on slackware linux with g++ (GCC) 4.5.2 I made a simple http server startig from the examples on the website. When I add a deadline timer to shutdown the connection, only adding it in the connection class and and initializing it with the io_service makes the program to seg fault in io_service run.
Attachments (5)
Change History (7)
by , 11 years ago
Attachment: | http_connection.cpp added |
---|
by , 11 years ago
Attachment: | http_connection.h added |
---|
by , 11 years ago
Attachment: | http_server.h added |
---|
by , 11 years ago
Attachment: | http_server.cpp added |
---|
by , 11 years ago
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Component: | None → asio |
---|---|
Owner: | set to |
Note:
See TracTickets
for help on using tickets.
you can remove the unnecessary code, the only code involved is the one with boost classes io_service, signals, deadlie_timer, socket etc. The functions in the connection.cpp are not called, the program crash happens before this, when the browser makes the first connection to the server and the io_service tries to dispatch the first task as you can see from the call stack in the trace file