Opened 11 years ago
Closed 10 years ago
#5926 closed Bugs (invalid)
Boost syn() seg fault
Reported by: | anonymous | Owned by: | chris_kohlhoff |
---|---|---|---|
Milestone: | To Be Determined | Component: | asio |
Version: | Boost 1.39.0 | Severity: | Problem |
Keywords: | Cc: | gourprashant@… |
Description
Program terminated with signal 11, Segmentation fault. #0 0x0000000000437b4b in boost::asio::basic_socket_streambuf<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >::close (this=0x18)
at /installs/boost/boost_1_39_0/include/boost-1_39/boost/asio/basic_socket_streambuf.hpp:144
144 sync(); (gdb) bt #0 0x0000000000437b4b in boost::asio::basic_socket_streambuf<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >::close (this=0x18)
at /installs/boost/boost_1_39_0/include/boost-1_39/boost/asio/basic_socket_streambuf.hpp:144
#1 0x0000000000437bdb in boost::asio::basic_socket_iostream<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >::close (this=0x0)
at /installs/boost/boost_1_39_0/include/boost-1_39/boost/asio/basic_socket_iostream.hpp:129
#2 0x00000000004c0679 in Service::doJob (this=0x1fec6370, serviceJob=0x1fea9270) at ../src/Service.cpp:770 #3 0x00000000004dc285 in ServiceJob::doWork (this=0x1fea9270) at ../src/ServiceJob.cpp:110 #4 0x00000000004de016 in serviceJobThread () at ../src/ServiceManager.cpp:578 #5 0x00000000004e5363 in boost::detail::thread_data<void (*)()>::run (this=0x1feb9050) at /installs/boost/boost_1_39_0/include/boost-1_39/boost/thread/detail/thread.hpp:56 #6 0x00000000004f1d80 in thread_proxy () #7 0x000000322b20673d in start_thread () from /lib64/libpthread.so.0 #8 0x000000322a6d44bd in clone () from /lib64/libc.so.6
Change History (2)
comment:1 by , 11 years ago
Component: | None → asio |
---|---|
Owner: | set to |
comment:2 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
The tcp::socket::iostream pointer is NULL in your code. I can't see how this is a problem in asio, but please reopen this ticket if you can supply a test program.
It's hard to tell what's going on without a test case.