Giter VIP home page Giter VIP logo

Comments (11)

whyrusleeping avatar whyrusleeping commented on May 26, 2024

Im glad im not crazy, i ran into this once. Havent been able to get a repro since.

from kubo.

btc avatar btc commented on May 26, 2024

I'll continue to report test failures as I discover them. I hope that collecting them will help

ps. To help with investigation, I'll also make sure to include the commit hash of the code that failed.

from kubo.

btc avatar btc commented on May 26, 2024

This one is

6f82f7b

https://travis-ci.org/jbenet/go-ipfs/jobs/35159633

from kubo.

whyrusleeping avatar whyrusleeping commented on May 26, 2024

Yeah, there's another random error I get "malformed public key" every so often.

from kubo.

whyrusleeping avatar whyrusleeping commented on May 26, 2024

This deadlock is weird. There should be two goroutines in the Handshake method (and two sets of secure I/O). Im only seeing one... One must have somehow failed, but didnt end up causing a t.Fatal to trigger. Im gonna throw some panics in and run the test until i can repro a failure.

from kubo.

btc avatar btc commented on May 26, 2024

It was on feat/bitswap-internal-notifications at 6f82f7b

from kubo.

whyrusleeping avatar whyrusleeping commented on May 26, 2024

I was also able to reproduce it once after switching to master. 20 runs later, no luck with a repro

from kubo.

btc avatar btc commented on May 26, 2024

Looks like deadlock occurs when:

  • peer a's handshake fails silently, peer b signals finished (identify.go:156) and waits on secureIn for a response(identify.go:157)

I found some spots where errors are ignored. Adding error handling. Will open a PR.

from kubo.

btc avatar btc commented on May 26, 2024

@jbenet Is there a spec for the handshake anywhere?

from kubo.

jbenet avatar jbenet commented on May 26, 2024

should have been fixed in #128

from kubo.

jbenet avatar jbenet commented on May 26, 2024

Though, see: #130

from kubo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.