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

BUG: Segmentation Fault on Submission #4

Open
p5quared opened this issue Mar 8, 2024 · 2 comments
Open

BUG: Segmentation Fault on Submission #4

p5quared opened this issue Mar 8, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@p5quared
Copy link
Owner

p5quared commented Mar 8, 2024

There appears to be a bug with submissions; not entirely sure what the cause is.

Possibly involves huh.Spinnner().

> decanter submit -c cse486-s24 -a PA2-k-DHT-Part-1-Routing -f kdht.tar -w                                                  

Submitting kdht.tar to PA2-k-DHT-Part-1-Routing...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x10 pc=0x10522661c]

goroutine 2 [running]:
github.com/p5quared/decanter/Autolab.SubmitFile(0x1400012cbd0, {0x105274b5a?, 0x0?}, {0x16ae4752b, 0xa}, {0x16ae47539, 0x18}, {0x16ae47555, 0x8})
	/Users/petervaiciulis/code/decanter/Autolab/user.go:94 +0x2fc
main.main.func1()
	/Users/petervaiciulis/code/decanter/main.go:160 +0x58
github.com/charmbracelet/huh/spinner.(*Spinner).Run.func1()
	/Users/petervaiciulis/go/pkg/mod/github.com/charmbracelet/huh/spinner@v0.0.0-20240209193029-45947515c4cf/spinner.go:148 +0x30
created by github.com/charmbracelet/huh/spinner.(*Spinner).Run in goroutine 1
	/Users/petervaiciulis/go/pkg/mod/github.com/charmbracelet/huh/spinner@v0.0.0-20240209193029-45947515c4cf/spinner.go:147 +0x104
@p5quared p5quared added the bug Something isn't working label Mar 8, 2024
@p5quared
Copy link
Owner Author

Can anyone reproduce this? If you're going to submit a bug, it is really helpful if you would share the steps to reproduce the bug as well.

@p5quared
Copy link
Owner Author

I believe it happens in this case:

  1. Auto-complete a filename in a command
  2. Modify the file elsewhere
  3. Run command

I believe it that the file before modification is somehow being referenced. I thought that files were just referenced by their name??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant