-
-
Notifications
You must be signed in to change notification settings - Fork 330
Open
Description
segmentation fault. Unsure, but it seems to do with empty SSL directory. I'll keep testing.
STEPS to repeat
- build (below)
- run (see run command below)
commit info
❯ git log -5
4289daa - (HEAD -> main, tag: v2.21.1, origin/main, origin/HEAD) Add support for ghcr.io (5 days ago) <Antonio Mika>
8eefd53 - (tag: v2.21.0) chore: ssh cert docs gha (#358) (5 days ago) <Eric Bower>
# build
GOOS=linux GOARCH=amd64 go build -o sish main.go
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xf842aa]
goroutine 1 [running]:
github.com/antoniomika/sish/utils.loadKeys.func2({0x12503b4, 0xf}, {0x0, 0x0}, {0x14677a0, 0xc000246360})
/home/tonymet/src/sish/utils/utils.go:421 +0x4a
path/filepath.WalkDir({0x12503b4, 0xf}, 0xc000171a40)
/usr/local/go/src/path/filepath/path.go:398 +0x96
github.com/antoniomika/sish/utils.loadKeys()
/home/tonymet/src/sish/utils/utils.go:420 +0x9b
github.com/antoniomika/sish/utils.WatchKeys()
/home/tonymet/src/sish/utils/utils.go:352 +0x17
github.com/antoniomika/sish/sshmuxer.Start()
/home/tonymet/src/sish/sshmuxer/sshmuxer.go:70 +0x3d4
github.com/antoniomika/sish/cmd.runCommand(0xc00012ca00?, {0x1247a6d?, 0x7?, 0x123dfd4?})
/home/tonymet/src/sish/cmd/sish.go:233 +0xf
github.com/spf13/cobra.(*Command).execute(0x20bee40, {0xc00012c010, 0xf, 0xf})
/home/tonymet/go/pkg/mod/github.com/spf13/cobra@v1.10.2/command.go:1019 +0xae7
github.com/spf13/cobra.(*Command).ExecuteC(0x20bee40)
/home/tonymet/go/pkg/mod/github.com/spf13/cobra@v1.10.2/command.go:1148 +0x465
github.com/spf13/cobra.(*Command).Execute(...)
/home/tonymet/go/pkg/mod/github.com/spf13/cobra@v1.10.2/command.go:1071
github.com/antoniomika/sish/cmd.Execute(...)
/home/tonymet/src/sish/cmd/sish.go:228
main.main()
/home/tonymet/src/sish/main.go:12 +0x1f
Run Command
./sish \
--domain="tun.tonym.us" \
--ssh-address=":2222" \
--http-address=":80" \
--https-address=":443" \
--https=true \
--https-ondemand-certificate=true \
--https-ondemand-certificate-accept-terms=true \
--https-ondemand-certificate-email="xxxx" \
--https-certificate-directory="/home/ext_anthony_metzidis_gmail_com/sishd/ssl" \
--authentication=false \
--admin-console=true \
--admin-console-token="xxxxx" \
--force-requested-subdomains=true \
--log-to-stdout=true \
--bind-random-subdomains=false
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels