Comments (4)
one more case
croc
,_
>' )
croc version ( ( \
|| \
/^^^^\ ||
/^^\________/0 \ ||
( `~+++,,_||__,,++~^^^^^^^
...V^V^V^V^V^V^\...............................
Enter receive code: 4-happy-diego-tribune
The specifed code is already in use by a sender.
==================
WARNING: DATA RACE
Write at 0x00c42008428a by goroutine 11:
main.(*Connection).runClient.func1()
/Users/callmeanyhow/go/src/croc/connect.go:298 +0xd86
Previous write at 0x00c42008428a by goroutine 7:
main.(*Connection).runClient.func1()
/Users/callmeanyhow/go/src/croc/connect.go:298 +0xd86
Goroutine 11 (running) created at:
main.(*Connection).runClient()
/Users/callmeanyhow/go/src/croc/connect.go:231 +0x510
main.(*Connection).Run()
/Users/callmeanyhow/go/src/croc/connect.go:206 +0x80b
main.main()
/Users/callmeanyhow/go/src/croc/main.go:66 +0x573
Goroutine 7 (finished) created at:
main.(*Connection).runClient()
/Users/callmeanyhow/go/src/croc/connect.go:231 +0x510
main.(*Connection).Run()
/Users/callmeanyhow/go/src/croc/connect.go:206 +0x80b
main.main()
/Users/callmeanyhow/go/src/croc/main.go:66 +0x573
==================
Found 1 data race(s)
from croc.
Whoa! How did you get these errors, just by go get
and then running? I've never seen errors like these before.
from croc.
Almost) I used standard golang race detector go install -race .
from croc.
Okay, thanks. The problem is how data is being shared. Namely these contain switches: https://github.com/schollz/croc/blob/master/connect.go#L224-L228. These switches can be turned off/on simultaneously by threads which causes data racing. It should be fixed now since I added a sync.RWMutex
to hold these switches.
from croc.
Related Issues (20)
- Crash on Windows 7 HOT 4
- A-Shell HOT 1
- croc_v9.6.8 ; no more .deb for Ubuntu 20.04 ? HOT 7
- Automatically set up UPnP port forwarding on the router HOT 6
- A threat (WinGo/Agent_AGen.AN was found HOT 1
- Missing releases for Windows
- Request: croc compiled against glibc 2.17 HOT 5
- windows defender antivirus reports trojan in linux 64 bit binary download v9.6.11 HOT 3
- When using the --local option to force the use of a local connection, local sending and receiving of a single host cannot be achieved. HOT 5
- No CLI output on Windows with v9.6.12 HOT 4
- Winget Release Action is broken HOT 2
- No LICENSE file in binary releases HOT 2
- Developing Apis to interact with Croc programmatically HOT 1
- Developing Apis to interact with Croc programmatically HOT 3
- avrira antivirus virus alert after 9.6.10 version HOT 1
- Croc fail to run when HOME env var is not defined HOT 1
- prevent sleeping while transferring HOT 1
- Waiting for a room
- Firefly, the easiest WireGuard VPN server
- Send/Receive --local fails, firewall issue? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from croc.