mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #1822] [Bug]: EFA Segmentation Fault on Loopback Test #522
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#522
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leoleoasd on GitHub (Apr 5, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/1822
Bug Report
I'm encountering seg fault when trying to run loopback write test. This is what claude code gave me from analysing the code dump:
EFA Transport LoopbackWrite segfaults in fi_cq_read due to race with fi_enable
Environment
4136d2bthrough v0.3.10.post1)Reproduction
./build/mooncake-transfer-engine/tests/efa_transport_test
The InstallTransport test passes. The LoopbackWrite test segfaults every time.
I'll be happy to share the core dump file if needed (it's 1.3GB)
Before submitting...
@stmatengss commented on GitHub (Apr 5, 2026):
Hi, @whn09, we lack experience in EFA. Could you help solve this issue?
@whn09 commented on GitHub (Apr 7, 2026):
You can try this repo: https://github.com/whn09/kimi-k2-sglang
@whn09 commented on GitHub (Apr 7, 2026):
This is an EFA driver mismatch issue, and you can use this command to run your docker:
docker run --gpus all --device=/dev/infiniband --net=host --privileged -it -v /opt/amazon/efa:/opt/amazon/efa -e LD_LIBRARY_PATH=/opt/amazon/efa/lib:$LD_LIBRARY_PATH -v /lib/x86_64-linux-gnu/libefa.so.1:/lib/x86_64-linux-gnu/libefa.so.1 -v /lib/x86_64-linux-gnu/libefa.so:/lib/x86_64-linux-gnu/libefa.so -v /lib/x86_64-linux-gnu/libibverbs.so.1:/lib/x86_64-linux-gnu/libibverbs.so.1 YOUR_DOCKER_IMAGE /bin/bash@stmatengss commented on GitHub (Apr 7, 2026):
Thanks. I will try it
@leoleoasd commented on GitHub (Apr 18, 2026):
Upgrading to the latest EFA driver helps. Thanks!