Skip to content

Null pointer dereference :) #28

Description

@bkchr
panic: runtime error: invalid memory address or nil pointer dereference
  [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x16343b0]

  goroutine 82 [running]:
  crypto/internal/fips140/nistec.(*P384Point).Add(0xc000902000, 0x0, 0xc0004d24f0)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/internal/fips140/nistec/p384.go:219 +0x50
  crypto/internal/fips140/nistec.(*P384Point).generatorTable.func1()
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/internal/fips140/nistec/p384.go:399 +0x3e5
  sync.(*Once).doSlow(0x20?, 0xc0004d15d8?)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/sync/once.go:78 +0xab
  sync.(*Once).Do(...)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/sync/once.go:69
  crypto/internal/fips140/nistec.(*P384Point).generatorTable(0x5c15204a5f0b2258?)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/internal/fips140/nistec/p384.go:393 +0x2c
  crypto/internal/fips140/nistec.(*P384Point).ScalarBaseMult(0xc000797c08, {0xc0007da1e0, 0xc0007a6a60?, 0xc0006f7fb0?})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/internal/fips140/nistec/p384.go:416 +0x45
  crypto/internal/fips140/ecdsa.verifyGeneric[...](0xc0007a0b80, 0xc0007cd1d0, {0xc0006f7fb0, 0x30, 0x30}, 0xc0004d2dc8)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/internal/fips140/ecdsa/ecdsa.go:479 +0x402
  crypto/internal/fips140/ecdsa.verify[...](...)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/internal/fips140/ecdsa/ecdsa_noasm.go:14
  crypto/internal/fips140/ecdsa.Verify[...](0xc0007a0b80, 0xc0007cd1d0, {0xc0006f7fb0, 0x30, 0x30}, 0xc0004d2dc8)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/internal/fips140/ecdsa/ecdsa.go:445 +0xc8
  crypto/ecdsa.verifyFIPS[...](0xc0007a0b80, 0xc0007a6a40, {0xc0006f7fb0, 0x30, 0x30}, {0xc0006a1af3, 0x30?, 0x30?})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/ecdsa/ecdsa.go:361 +0x14b
  crypto/ecdsa.VerifyASN1(0xc0007a6a40, {0xc0006f7fb0, 0x30, 0x30}, {0xc0006a1af3, 0x66, 0x48d})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/ecdsa/ecdsa.go:344 +0x209
  crypto/x509.checkSignature(0xb?, {0xc0006a18bb?, 0x229?, 0x4?}, {0xc0006a1af3?, 0x66?, 0x48d?}, {0x1a2d580?, 0xc0007a6a40?}, 0x0)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/x509/x509.go:1011 +0x2d4
  crypto/x509.(*Certificate).CheckSignatureFrom(0xc0007d8608?, 0xc0007c8700?)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/x509/x509.go:930 +0xd1
  crypto/x509.(*Certificate).buildChains.func1(0x2, {0xc0007d8608?, 0x0?})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/x509/verify.go:978 +0x196
  crypto/x509.(*Certificate).buildChains(0xc00045d808, {0xc0007c8700?, 0xc0001848b0?, 0xc0001848b0?}, 0xc000403840, 0xc0004d35b0)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/x509/verify.go:1016 +0x138
  crypto/x509.(*Certificate).buildChains.func1(0x1, {0xc00045d808?, 0x0?})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/x509/verify.go:1010 +0x53a
  crypto/x509.(*Certificate).buildChains(0xc00045d208, {0xc0001848b0?, 0xc0004d3460?, 0xe0980516?}, 0xc000403840, 0xc0004d35b0)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/x509/verify.go:1019 +0x18b
  crypto/x509.(*Certificate).Verify(0xc00045d208, {{0xc00005a500, 0x16}, 0xc00068bad0, 0xc00068bb90, {0xc25d563d61d7f300, 0x56d0c67, 0x2ce3340}, {0x0, 0x0, ...}, ...})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/x509/verify.go:838 +0x31f
  crypto/tls.(*Conn).verifyServerCertificate(0xc00004e388, {0xc0001170e0, 0x3, 0x4})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/tls/handshake_client.go:1145 +0xa9d
  crypto/tls.(*clientHandshakeStateTLS13).readServerCertificate(0xc0004d3c48)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/tls/handshake_client_tls13.go:658 +0x26f
  crypto/tls.(*clientHandshakeStateTLS13).handshake(0xc0004d3c48)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/tls/handshake_client_tls13.go:136 +0x74c
  crypto/tls.(*Conn).clientHandshake(0xc00004e388, {0x1e22068, 0xc000154320})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/tls/handshake_client.go:379 +0x810
  crypto/tls.(*Conn).handshakeContext(0xc00004e388, {0x1e22068, 0xc0003fc5f0})
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/tls/conn.go:1568 +0x39a
  crypto/tls.(*Conn).HandshakeContext(...)
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/crypto/tls/conn.go:1508
  net/http.(*persistConn).addTLS.func2()
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/net/http/transport.go:1703 +0x6e
  created by net/http.(*persistConn).addTLS in goroutine 38
  	/home/runner/go/pkg/mod/golang.org/toolchain@v0.0.1-go1.24.7.linux-amd64/src/net/http/transport.go:1699 +0x309
  error: could not compile `keccak` (lib)

https://github.com/paritytech/polkadot-sdk/actions/runs/22116648795/job/63926618028?pr=11096

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions