Skip to content

malloc_consolidate(): unaligned fastbin chunk detected when using with youtube-dlp #660

@bakaiadam

Description

@bakaiadam

Describe the bug
It happened randomly only once. I forgot to check the version, and i removed and installed again from pip(it was installed from pip before as well) to upgrade it and possibly fix the error.

To Reproduce
Just run something like this in yt-dlp:
yt-dlp --impersonate Firefox --no-check-certificates --impersonate Firefox -gjf bestaudio[ext=m4a]/bestaudio https://www.youtube.com/watch?v=naLDkGFb-Nw

Expected behavior
no fatal python error.

Versions

  • OS: linux x64
  • curl_cffi version : i don't know

Here is the stack trace:

WARNING: [youtube] Failed to perform, curl: (35) TLS connect error: error:10000129:SSL routines:OPENSSL_internal:TLS13_DOWNGRADE. See https://curl.se/libcurl/c/libcurl-errors.html first for more details. Retrying (1/3)...
malloc_consolidate(): unaligned fastbin chunk detected
Fatal Python error: Aborted

Thread 0x00007d870d7f26c0 (most recent call first):
  File "/home/adam/.local/lib/python3.12/site-packages/curl_cffi/curl.py", line 170 in _set_error_buffer
  File "/home/adam/.local/lib/python3.12/site-packages/curl_cffi/curl.py", line 403 in reset
  File "/home/adam/.local/lib/python3.12/site-packages/curl_cffi/requests/session.py", line 623 in request
  File "/home/adam/yt-dlp/yt_dlp/networking/_curlcffi.py", line 279 in _send
  File "/home/adam/yt-dlp/yt_dlp/networking/common.py", line 359 in send
  File "/home/adam/yt-dlp/yt_dlp/networking/_helper.py", line 194 in wrapper
  File "/home/adam/yt-dlp/yt_dlp/networking/_curlcffi.py", line 218 in send
  File "/home/adam/yt-dlp/yt_dlp/networking/common.py", line 117 in send
  File "/home/adam/yt-dlp/yt_dlp/YoutubeDL.py", line 4252 in urlopen
  File "/home/adam/yt-dlp/yt_dlp/extractor/common.py", line 909 in _request_webpage
  File "/home/adam/yt-dlp/yt_dlp/extractor/youtube/_base.py", line 815 in _request_webpage
  File "/home/adam/yt-dlp/yt_dlp/extractor/common.py", line 973 in _download_webpage_handle
  File "/home/adam/yt-dlp/yt_dlp/extractor/common.py", line 1150 in download_content
  File "/home/adam/yt-dlp/yt_dlp/extractor/common.py", line 1199 in _download_webpage
  File "/home/adam/yt-dlp/yt_dlp/extractor/youtube/_base.py", line 979 in _download_webpage_with_retries
  File "/home/adam/yt-dlp/yt_dlp/extractor/youtube/_video.py", line 3517 in _download_initial_webpage
  File "/home/adam/yt-dlp/yt_dlp/extractor/youtube/_video.py", line 3575 in _initial_extract
  File "/home/adam/yt-dlp/yt_dlp/extractor/youtube/_video.py", line 3598 in _real_extract
  File "/home/adam/yt-dlp/yt_dlp/extractor/common.py", line 762 in extract
  File "/home/adam/yt-dlp/yt_dlp/YoutubeDL.py", line 1831 in __extract_info
  File "/home/adam/yt-dlp/yt_dlp/YoutubeDL.py", line 1696 in wrapper
  File "/home/adam/yt-dlp/yt_dlp/YoutubeDL.py", line 1685 in extract_info
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions