-
Notifications
You must be signed in to change notification settings - Fork 496
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 serving 127.0.0.1:****: unaligned 64-bit atomic operation #1047
Comments
Here is how I installed it:
|
Thanks for the detailed report, that's very helpful! You seem to be on a 64-bit machine (x84_64) but downloaded a 32-bit build of tusd (386 architecture). Was there a particular reason why you downloaded tusd_linux_386.tar.gz and not tusd_linux_amd64.tar.gz? I found similar reports where this happened when the Go code was compiled for 32-bit architecture, e.g. https://www.couchbase.com/forums/t/go-sdk-panics-with-unaligned-64-bit-atomic-operation-on-x86-64-ubuntu-server/34124/2 The panic is caused by tusd/pkg/handler/body_reader.go Line 43 in f03aa9b
We should be able to fix this by adjusting the position of the field that is written to like they did in blevesearch/zapx#148. |
Ah right. Thanks a lot. That was a stupid mistake of mine. I am not working with linux on a daily basis. |
Describe the bug
File Upload not working on Debian Installation.
I did install the the binary from https://github.com/tus/tusd/releases/download/v2.2.1/tusd_linux_386.tar.gz on a Debian server.
Attempting to upload file I get this error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Request should work.
Setup details
Please provide following details, if applicable to your situation:
Operating System: Linux
Used tusd version: 2.2.1
Used tusd configuration: (running as root)
Used tusd data storage: local disk store
Used tus client library: curl:
The text was updated successfully, but these errors were encountered: