Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: lib/srv.(*Server).handleDirectTCPIPRequest: invalid memory address or nil pointer dereference #1479

Closed
pierrre opened this issue Nov 27, 2017 · 2 comments
Labels

Comments

@pierrre
Copy link

pierrre commented Nov 27, 2017

Error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x4640df]

goroutine 220300 [running]:
io.copyBuffer(0x1842620, 0xc42040a4d0, 0x0, 0x0, 0xc420136000, 0x8000, 0x8000, 0xc4203545c8, 0xc42040a4d0, 0xf486a0)
        /opt/go/src/io/io.go:390 +0xdf
io.Copy(0x1842620, 0xc42040a4d0, 0x0, 0x0, 0x0, 0x0, 0xc4202e5620)
        /opt/go/src/io/io.go:360 +0x68
net.genericReadFrom(0x183fbe0, 0xc420478b18, 0x0, 0x0, 0x0, 0x0, 0x0)
        /opt/go/src/net/net.go:608 +0x8d
net.(*TCPConn).readFrom(0xc420478b18, 0x0, 0x0, 0xc, 0xc4203b5ae0, 0xc420354688)
        /opt/go/src/net/tcpsock_posix.go:51 +0xa5
net.(*TCPConn).ReadFrom(0xc420478b18, 0x0, 0x0, 0x7fe3a40b8a40, 0xc420478b18, 0x2a61de92101)
        /opt/go/src/net/tcpsock.go:88 +0x5f
io.copyBuffer(0x183fbe0, 0xc420478b18, 0x0, 0x0, 0x0, 0x0, 0x0, 0x103a800, 0xc420354700, 0x183fbe0)
        /opt/go/src/io/io.go:384 +0x2cb
io.Copy(0x183fbe0, 0xc420478b18, 0x0, 0x0, 0x0, 0xc4203547c0, 0x72d015)
        /opt/go/src/io/io.go:360 +0x68
github.com/gravitational/teleport/lib/srv.(*Server).handleDirectTCPIPRequest.func2(0xc42040a4c0, 0x184fe00, 0xc420478b18, 0x0, 0x0)
        /gopath/src/github.com/gravitational/teleport/lib/srv/sshserver.go:791 +0xd3
created by github.com/gravitational/teleport/lib/srv.(*Server).handleDirectTCPIPRequest
        /gopath/src/github.com/gravitational/teleport/lib/srv/sshserver.go:793 +0x928

Version: Teleport v2.2.7 git:v2.2.7-1-ge354e02b
(Yes I know it's an old version)

@klizhentas klizhentas added the bug label Nov 29, 2017
@klizhentas
Copy link
Contributor

interesting problem. I can't spot the root cause just looking at the code path:

https://github.com/gravitational/teleport/blob/v2.2.7/lib/srv/sshserver.go

can you reliably reproduce?

@pierrre
Copy link
Author

pierrre commented Dec 6, 2017

Hello,
No sorry I can't reproduce it.
It happened once on 1 server.

It looks like the code has changed a lot since v2.2.7. (the file doesn't exist anymore)
You can close the issue if you want (I think you will not support this old version).

I will ask my team to update to the latest version.

hatched pushed a commit that referenced this issue Jan 11, 2023
* Group all modal stories under ModalsHost

* Fix type of DialogClusterConnect, rename DialogBase to DialogNone
hatched pushed a commit that referenced this issue Jan 30, 2023
* Group all modal stories under ModalsHost

* Fix type of DialogClusterConnect, rename DialogBase to DialogNone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants