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: WSL 2 - tcmalloc Error #7275

Open
cf-jas opened this issue Nov 17, 2024 · 2 comments
Open

🐛 BUG: WSL 2 - tcmalloc Error #7275

cf-jas opened this issue Nov 17, 2024 · 2 comments
Labels
bug Something that isn't working

Comments

@cf-jas
Copy link

cf-jas commented Nov 17, 2024

Which Cloudflare product(s) does this pertain to?

Workers Runtime

What version(s) of the tool(s) are you using?

3.87.0 [Wrangler]

What version of Node are you using?

20.16.0

What operating system and version are you using?

WSL 2

PS > wsl --version
WSL version: 2.2.4.0
Kernel version: 5.15.153.1-2
WSLg version: 1.0.61
MSRDC version: 1.2.5326
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26091.1-240325-1447.ge-release
Windows version: 10.0.22631.4460

Describe the Bug

Observed behavior

On WSL 2, when running "npx wrangler@latest dev" for the "hello world" Python example, the error happens.

Expected behavior


Steps to reproduce

Please provide the following:
On WSL1:
git clone https://github.com/cloudflare/python-workers-examples
cd python-workers-examples/01-hello
npx wrangler@latest dev

Python info: Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

⛅️ wrangler 3.87.0

▲ [WARNING] The entrypoint src/entry.py defines a Python worker, support for Python workers is currently experimental. Python workers with a requirements.txt file can only be run locally and cannot be deployed.

⎔ Starting local server...

✘ [ERROR] write EPIPE

If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
╭───────────────────────────────────────────────────────────✘ [ERROR] 2664 external/com_google_tcmalloc/tcmalloc/system-alloc.cc:771] MmapAligned() failed - unable to allocate with tag (hint=0xe10c0000000, size=1073741824, alignment=1073741824) - is something limiting address placement?

2664 external/com_google_tcmalloc/tcmalloc/arena.cc:52] CHECK in Alloc: FATAL ERROR: Out of memory
trying to allocate internal tcmalloc data (bytes=131072, object-size=640); is something preventing
mmap from succeeding (sandbox, VSS limitations)?

✘ [ERROR] 2666 external/com_google_tcmalloc/tcmalloc/system-alloc.cc:771] MmapAligned() failed - unable to allocate with tag (hint=0xf7280000000, size=1073741824, alignment=1073741824) - is something limiting address placement?

2666 external/com_google_tcmalloc/tcmalloc/arena.cc:52] CHECK in Alloc: FATAL ERROR: Out of memory
trying to allocate internal tcmalloc data (bytes=131072, object-size=640); is something preventing
mmap from succeeding (sandbox, VSS limitations)?

@cf-jas cf-jas added the bug Something that isn't working label Nov 17, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Nov 17, 2024
@cf-jas cf-jas changed the title 🐛 BUG: WSL 1 - tcmalloc Error 🐛 BUG: WSL 2 - tcmalloc Error Nov 17, 2024
@danlapid
Copy link
Contributor

Seems like your WSL VM doesn't have enough memory.
Try to increase it's allocation please.

@cf-jas
Copy link
Author

cf-jas commented Nov 18, 2024

Hi Dan. I believe I should have enough memory allocated to WSL.

Running free in WSL VM
$ free -h --giga
total used free shared buff/cache available
Mem: 32G 11G 21G 17M 223M 21G
Swap: 60G 0B 60G

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

No branches or pull requests

2 participants