Skip to content

Tusd Panic with Creation-With-Upload #1320

@LazydaveZ

Description

@LazydaveZ

Describe the bug
Tusd Panics randomly when using Creation-With-Upload

To Reproduce
Steps to reproduce the behavior:

  1. Run Tusd (native or in docker, in my case tested with tusproject/tusd:latest and tusd from https://github.com/tus/tusd/releases/tag/v2.8.0)
  2. Start upload in creation with upload mode :
    curl -s -X POST http://ip.ad.dr.ess/incoming/ \ -H 'Tus-Resumable: 1.0.0' \ -H "Upload-Metadata: filename $(printf %s "$(basename "$FILE")" | base64)" \ -H "Upload-Length: $(stat -c%s "$FILE")" \ -H "Content-Type: application/offset+octet-stream" \ --data-binary @"$FILE" -o /dev/null -w "%{http_code}\n"
  3. when testing a couple of 100 of uploads at some point it crashes with: fatal error: concurrent map iteration and map write. see full log attached

Expected behavior
not crashing

Setup details
Please provide following details, if applicable to your situation:

  • Operating System: [Linux, Docker]
  • Used tusd version: [Version: v2.8.0
    Commit: 0e52ad6
    Date: Wed Apr 2 07:45:39 UTC 2025
    ]
  • Used tusd data storage: [disk store]
  • Used tusd configuration: [ -upload-dir /data
    -port 1080
    -behind-proxy
    -hooks-dir /hooks
    -base-path /incoming/

tusd_panic.txt

]

  • Used tus client library: curl

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions