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

Tun on windows(gost v3.0.0-nightly.20240426): panic: runtime error: invalid memory address or nil pointer dereference #482

Open
zoghal opened this issue May 24, 2024 · 0 comments

Comments

@zoghal
Copy link

zoghal commented May 24, 2024

Hi Dear

On Windows by running this command line:

gost -L "tun://:0/SERVER_IP:8421?net=192.168.10.101"  -F relay+wss://SERVER_IP:8444

I get this error

{"handler":"tun","kind":"service","level":"info","listener":"tun","msg":"listening on :0/udp","service":"service-0","time":"2024-05-24T06:17:09.547+03:30"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x20 pc=0xc716b7]

goroutine 6 [running]:
golang.org/x/sys/windows.UTF16PtrToString(0x232b650?)
        /home/runner/go/pkg/mod/golang.org/x/[email protected]/windows/syscall_windows.go:119 +0x17
golang.zx2c4.com/wintun.logMessage(0x0?, 0x77a1fd8c0, 0x20)
        /home/runner/go/pkg/mod/golang.zx2c4.com/[email protected]/wintun.go:51 +0x11b
syscall.SyscallN(0x7ffb29503fb0?, {0xc000493a20?, 0x3?, 0xc000493a38?})
        /opt/hostedtoolcache/go/1.22.2/x64/src/runtime/syscall_windows.go:544 +0x107
syscall.Syscall(0x233bce0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /opt/hostedtoolcache/go/1.22.2/x64/src/runtime/syscall_windows.go:482 +0x35
golang.zx2c4.com/wintun.CreateAdapter({0x181df15?, 0x0?}, {0x18251e8, 0x9}, 0x0)
        /home/runner/go/pkg/mod/golang.zx2c4.com/[email protected]/wintun.go:92 +0xd4
golang.zx2c4.com/wireguard/tun.CreateTUNWithRequestedGUID({0x181df15, 0x6}, 0x0?, 0x546)
        /home/runner/go/pkg/mod/golang.zx2c4.com/[email protected]/tun/tun_windows.go:73 +0x45
golang.zx2c4.com/wireguard/tun.CreateTUN(...)
        /home/runner/go/pkg/mod/golang.zx2c4.com/[email protected]/tun/tun_windows.go:65
github.com/go-gost/x/listener/tun.(*tunListener).createTunDevice(0xc0000d0200)
        /home/runner/go/pkg/mod/github.com/go-gost/[email protected]/listener/tun/tun.go:53 +0x35
github.com/go-gost/x/listener/tun.(*tunListener).createTun(0xc0000d0200)
        /home/runner/go/pkg/mod/github.com/go-gost/[email protected]/listener/tun/tun_windows.go:19 +0x5f
github.com/go-gost/x/listener/tun.(*tunListener).listenLoop.func1(0xc0000d0200, 0xc00029a000)
        /home/runner/go/pkg/mod/github.com/go-gost/[email protected]/listener/tun/listener.go:70 +0x32
github.com/go-gost/x/listener/tun.(*tunListener).listenLoop(0xc0000d0200)
        /home/runner/go/pkg/mod/github.com/go-gost/[email protected]/listener/tun/listener.go:104 +0x5e
created by github.com/go-gost/x/listener/tun.(*tunListener).Init in goroutine 1
        /home/runner/go/pkg/mod/github.com/go-gost/[email protected]/listener/tun/listener.go:61 +0x185
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant