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

throws SIGSEV on WSL #80

Open
sandeeprenjith opened this issue Jan 3, 2020 · 2 comments
Open

throws SIGSEV on WSL #80

sandeeprenjith opened this issue Jan 3, 2020 · 2 comments

Comments

@sandeeprenjith
Copy link

sandeeprenjith commented Jan 3, 2020

Using sampler on Windows subsystem for linux throws SIGSEV.

Below is the config file used.

╭─nd33p@trv-wl-srenjith ~
╰─$ cat test.conf
variables:
  sshconnection: ssh [email protected]
textboxes:
  - title: SSH
    pty: true
    init: $sshconnection
    sample: top

Below are the errors thrown

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x463252] goroutine 45 [running]: io.WriteString(0x0, 0x0, 0xc0005b6018, 0x5, 0x0, 0xc0005b6018, 0x5) /usr/lib/go-1.12/src/io/io.go:293 +0xc2 github.com/sqshq/sampler/data.(*PtyInteractiveShell).execute(0xc0002ea000, 0x0, 0x0, 0x0, 0x0) /home/sqshq/go/src/github.com/sqshq/sampler/data/int_pty.go:70 +0x128 github.com/sqshq/sampler/data.(*Item).nextValue(0xc0000fe180, 0xc0001c0020, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0) /home/sqshq/go/src/github.com/sqshq/sampler/data/item.go:57 +0x60 github.com/sqshq/sampler/data.(*Sampler).sample(0xc0001a6120, 0xc0000fe180, 0xc0000906c0, 0x0, 0x0, 0x0, 0x0) /home/sqshq/go/src/github.com/sqshq/sampler/data/sampler.go:59 +0x58 created by github.com/sqshq/sampler/data.NewSampler.func1 /home/sqshq/go/src/github.com/sqshq/sampler/data/sampler.go:35 +0x86

@sandeeprenjith
Copy link
Author

Also getting this in the termui window

 fork/exec /bin/sh: invalid argument

@traveling-developer
Copy link

Looks similar to: #51 (comment)

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

2 participants