================================================================= ==17260==ERROR: AddressSanitizer: heap-use-after-free on address 0x6100000696e0 at pc 0x7f6f38d6e0b2 bp 0x7ffe52399ce0 sp 0x7ffe52399cd8 READ of size 8 at 0x6100000696e0 thread T0 #0 0x7f6f38d6e0b1 in std::_Rb_tree<uWS::Subscriber*, uWS::Subscriber*, std::_IdentityuWS::Subscriber*, std::lessuWS::Subscriber*, std::allocatoruWS::Subscriber* >::_M_begin() (/home/a/projects/bb/bbs/node_modules/uWebSockets.js/uws_linux_x64_64.node+0x1910b1) #1 0x7f6f38da2106 in std::_Rb_tree<uWS::Subscriber*, uWS::Subscriber*, std::_IdentityuWS::Subscriber*, std::lessuWS::Subscriber*, std::allocatoruWS::Subscriber* >::equal_range(uWS::Subscriber* const&) (/home/a/projects/bb/bbs/node_modules/uWebSockets.js/uws_linux_x64_64.node+0x1c5106) #2 0x7f6f38da1ee7 in std::_Rb_tree, std::less, std::allocator >::erase(uWS::Subscriber* const&) (/home/
=================================================================
==16741==ERROR: AddressSanitizer: heap-use-after-free on address 0x61000004d1e0 at pc 0x7f5c8ca3b0b2 bp 0x7fff96079340 sp 0x7fff96079338
READ of size 8 at 0x61000004d1e0 thread T0
#0 0x7f5c8ca3b0b1 in std::_Rb_tree<uWS::Subscriber*, uWS::Subscriber*, std::_Identity<uWS::Subscriber*>, std::less<uWS::Subscriber*>, std::allocator<uWS::Subscriber*> >::_M_begin() (/home/a/projects/bb/bbs/node_modules/uWebSockets.js/uws_linux_x64_64.node+0x1910b1)
#1 0x7f5c8ca6f106 in std::_Rb_tree<uWS::Subscriber*, uWS::Subscriber*, std::_Identity<uWS::Subscriber*>, std::less<uWS::Subscriber*>, std::allocator<uWS::Subscriber*> >::equal_range(uWS::Subscriber* const&) (/home/a/projects/bb/bbs/node_modules/uWebSockets.js/uws_linux_x64_64.node+0x1c5106)
#2 0x7f5c8ca6eee7 in std::_Rb_tree<uWS::Subscriber*, uWS::Subscriber*, std::_Identity<uWS::Subscriber*>, std::less<uWS::Subscriber*>, std::allocator<uWS::Subscriber*> >::erase(uWS::Subscriber* const&) (/h
ws Closing... +21s
ws WebSocket closed, sockets open: 2 +1ms
=================================================================
==9235==ERROR: AddressSanitizer: heap-use-after-free on address 0x610000062fe0 at pc 0x7f46f61ca96a bp 0x7ffe0a45fdc0 sp 0x7ffe0a45fdb8
READ of size 8 at 0x610000062fe0 thread T0
#0 0x7f46f61ca969 (/home/a/projects/bb/bbs/node_modules/uWebSockets.js/uws_linux_x64_64.node+0xcc969)
#1 0x7f46f61ccf0b (/home/a/projects/bb/bbs/node_modules/uWebSockets.js/uws_linux_x64_64.node+0xcef0b)
#2 0x7f46f61f722e (/home/a/projects/bb/bbs/node_modules/uWebSockets.js/uws_linux_x64_64.node+0xf922e)
#3 0x7f46f61f2cae (/home/a/projects/bb/bbs/node_modules/uWebSockets.js/uws_linux_x64_64.node+0xf4cae)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default class WebSocketClient { | |
constructor(url) { | |
this.number = 0; // Message number | |
this.autoReconnectInterval = 12*1000; // ms | |
this.url = url; | |
this.open(); | |
} | |
open (url){ |
# Remove java 7
sudo yum remove -y java
# Install basic packages
sudo yum install -y git
# Download and install java 8
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz"
# Remove java 7
sudo yum remove -y java
# Install basic packages
sudo yum install -y git
# Download and install java 8
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz"