-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
The Websocket server segfaults if a websocket connection is opened and closed in quick succession.
Steps to reproduce
- Start a simulation with the websocket server enabled. (My specific tests were performed using Cloudsim.)
- Quickly connect and disconnect from the simulation.
Stack trace
Stack trace (most recent call last) in thread 65:
#13 Object "", at 0xffffffffffffffff, in
#12 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f326a152a3e, in clone
#11 Object "/lib/x86_64-linux-gnu/libpthread.so.0", at 0x7f3269e196da, in start_thread
#10 Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f32670b96de, in std::error_code::default_error_condition() const
#9 Object "/usr/lib/x86_64-linux-gnu/ign-launch-1/plugins/libignition-launch-websocket-server.so", at 0x7f3265faac87, in ignition::launch::WebsocketServer::Run()
#8 Object "/usr/lib/x86_64-linux-gnu/libwebsockets.so.8", at 0x7f3265d8b55a, in lws_SHA1
#7 Object "/usr/lib/x86_64-linux-gnu/libwebsockets.so.8", at 0x7f3265d80015, in lws_service_fd_tsi
#6 Object "/usr/lib/x86_64-linux-gnu/libwebsockets.so.8", at 0x7f3265d7cd41, in lws_read
#5 Object "/usr/lib/x86_64-linux-gnu/libwebsockets.so.8", at 0x7f3265d8ea29, in lws_serve_http_file
#4 Object "/usr/lib/x86_64-linux-gnu/libwebsockets.so.8", at 0x7f3265d83d9e, in lws_frame_is_binary
#3 Object "/usr/lib/x86_64-linux-gnu/libwebsockets.so.8", at 0x7f3265d7e7e6, in lws_close_reason
#2 Object "/usr/lib/x86_64-linux-gnu/ign-launch-1/plugins/libignition-launch-websocket-server.so", at 0x7f3265faefcc, in rootCallback(lws*, lws_callback_reasons, void*, void*, unsigned long)
#1 Object "/usr/lib/x86_64-linux-gnu/ign-launch-1/plugins/libignition-launch-websocket-server.so", at 0x7f3265fae6e1, in ignition::launch::WebsocketServer::OnMessage(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#0 Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f326a1bbfde, in __nss_passwd_lookup
Segmentation fault (Address not mapped to object [0xa6d3000])
./run_sim.bash: line 16: 54 Segmentation fault (core dumped) ign launch -v 4 $@
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed