Skip to content

Current main branch is broken #53

@DenisNovac

Description

@DenisNovac

Hello! Not sure if this project is alive but anyway... It seems current main branch is broken. I've tried to generate and use those generated configs in proxies and got errors of that type (on windows client):

Byte array length needs to be 66.  Length is currently 65
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x7ff6e2633772]

goroutine 34 [running]:
math/big.(*Int).Sign(...)
        C:/Program Files/Go/src/math/big/int.go:48
crypto/elliptic.(*nistCurve[...]).pointFromAffine(0xc0002239a0?, 0x7ff6e2506205?, 0x60?)
        C:/Program Files/Go/src/crypto/elliptic/nistec.go:138 +0x12
crypto/elliptic.(*nistCurve[...]).ScalarMult(0x7ff6e27de640, 0xc000223a30, 0x7ff6e2633b44?, {0xc000210260?, 0x20, 0x20})        C:/Program Files/Go/src/crypto/elliptic/nistec.go:206 +0x34
github.com/aead/ecdh.genericCurve.ComputeSecret({{0x7ff6e27dc5b0?, 0x7ff6e29785c0?}}, {0x7ff6e271f680?, 0xc00020a0f0?}, {0x7ff6e274b380?, 0xc000226090?})
       .../go/pkg/mod/github.com/aead/[email protected]/generic.go:93 +0x128
github.com/OperatorFoundation/go-shadowsocks2/darkstar.(*DarkStarClient).generateClientConfirmationCode(0xc000214180)
       .../go/pkg/mod/github.com/!operator!foundation/[email protected]/darkstar/client.go:217 +0x8b
github.com/OperatorFoundation/go-shadowsocks2/darkstar.(*DarkStarClient).StreamConn(0xc000214180, {0x7ff6e27dcdf8, 0xc000200010})
       .../go/pkg/mod/github.com/!operator!foundation/[email protected]/darkstar/client.go:54 +0x6d
github.com/OperatorFoundation/Replicant-go/Replicant/v3/polish.(*DarkStarPolishClientConnection).Handshake(0x7ff6e29ccf60?, {0x7ff6e27dcdf8?, 0xc000200010?})
       .../go/pkg/mod/github.com/!operator!foundation/!replicant-go/!replicant/[email protected]/polish/DarkStar.go:78 +0x1f
github.com/OperatorFoundation/Replicant-go/Replicant/v3.NewClientConnection({0x7ff6e27dcdf8, 0xc000200010}, {{0xc000208078, 0x11}, {0x7ff6e27da6a0, 0xc00020c0c0}, {0x7ff6e27da6e0, 0xc00020c0e0}, {0xc000204260, 0x9}})
       .../go/pkg/mod/github.com/!operator!foundation/!replicant-go/!replicant/[email protected]/replicant.go:66 +0xbf
github.com/OperatorFoundation/Replicant-go/Replicant/v3.TransportClient.Dial({{{0xc000208078, 0x11}, {0x7ff6e27da6a0, 0xc00020c0c0}, {0x7ff6e27da6e0, 0xc00020c0e0}, {0xc000204260, 0x9}}, {0xc000208078, 0x11}, ...})
       .../go/pkg/mod/github.com/!operator!foundation/!replicant-go/!replicant/[email protected]/Optimizer.go:73 +0x87
github.com/OperatorFoundation/shapeshifter-dispatcher/modes/transparent_tcp.clientHandler({0xc00008c100, 0x9}, {0xc0001a4000, 0x149}, {0x7ff6e27dcdf8, 0xc000200008}, 0x7ff6e26ac664?, 0x0?, {0xc00008c0b0, 0x5})
       .../source/repos/OperatorFoundation/shapeshifter-dispatcher/modes/transparent_tcp/transparent_tcp.go:82 +0x1de
created by github.com/OperatorFoundation/shapeshifter-dispatcher/modes.clientAcceptLoop in goroutine 8
       .../source/repos/OperatorFoundation/shapeshifter-dispatcher/modes/tcp_common.go:83 +0x1e9

And same kind of errors on server, something like:

DarkStarServer : BlackholeConnection: The client confirmation code and the server copy of the client confirmation code are not equal
proxy  | accepted
proxy  | panic: runtime error: invalid memory address or nil pointer dereference
proxy  | [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x5be60b]

However, i was able to run it by building this commit: a12fe14

It seems, main branch was broken in fixed key generators and updated dependencies (which is makes sense considering the commit message).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions