Opened 11 years ago

Last modified 11 years ago

#5815 new Bugs

booast asio crash in io_service run

Reported by: mileandrei@… 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)

http_connection.cpp (5.8 KB ) - added by mileandrei@… 11 years ago.
http_connection.h (2.4 KB ) - added by mileandrei@… 11 years ago.
http_server.h (630 bytes ) - added by mileandrei@… 11 years ago.
http_server.cpp (1.5 KB ) - added by mileandrei@… 11 years ago.
trace.txt (3.5 KB ) - added by mileandrei@… 11 years ago.

Download all attachments as: .zip

Change History (7)

by mileandrei@…, 11 years ago

Attachment: http_connection.cpp added

by mileandrei@…, 11 years ago

Attachment: http_connection.h added

by mileandrei@…, 11 years ago

Attachment: http_server.h added

by mileandrei@…, 11 years ago

Attachment: http_server.cpp added

by mileandrei@…, 11 years ago

Attachment: trace.txt added

comment:1 by mileandrei@…, 11 years ago

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

comment:2 by Steven Watanabe, 11 years ago

Component: Noneasio
Owner: set to chris_kohlhoff
Note: See TracTickets for help on using tickets.