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]: Docker image in trunk cannot find libpython.so #14991

Open
1 task done
maobaolong opened this issue Mar 18, 2025 · 3 comments
Open
1 task done

[Bug]: Docker image in trunk cannot find libpython.so #14991

maobaolong opened this issue Mar 18, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@maobaolong
Copy link
Contributor

Your current environment

The output of `python collect_env.py`

INFO 03-18 01:32:43 [__init__.py:256] Automatically detected platform cuda.
Collecting environment information...
PyTorch version: 2.5.1+cu124
Is debug build: False
CUDA used to build PyTorch: 12.4
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.5 LTS (x86_64)
GCC version: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Clang version: Could not collect
CMake version: version 3.31.6
Libc version: glibc-2.35

Python version: 3.12.9 (main, Mar 11 2025, 17:26:57) [Clang 20.1.0 ] (64-bit runtime)
Python platform: Linux-5.4.32-1-tlinux4-0001-x86_64-with-glibc2.35
Is CUDA available: True
CUDA runtime version: 12.8.61
CUDA_MODULE_LOADING set to: LAZY
GPU models and configuration: GPU 0: Tesla T4
Nvidia driver version: 550.144.03
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True

CPU:
Architecture:                    x86_64
CPU op-mode(s):                  32-bit, 64-bit
Address sizes:                   46 bits physical, 48 bits virtual
Byte Order:                      Little Endian
CPU(s):                          20
On-line CPU(s) list:             0-19
Vendor ID:                       GenuineIntel
BIOS Vendor ID:                  Smdbmds
Model name:                      Intel(R) Xeon(R) Platinum 8255C CPU @ 2.50GHz
BIOS Model name:                 3.0
CPU family:                      6
Model:                           85
Thread(s) per core:              1
Core(s) per socket:              20
Socket(s):                       1
Stepping:                        5
BogoMIPS:                        4988.28
Flags:                           fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat avx512_vnni
Hypervisor vendor:               KVM
Virtualization type:             full
L1d cache:                       640 KiB (20 instances)
L1i cache:                       640 KiB (20 instances)
L2 cache:                        80 MiB (20 instances)
L3 cache:                        35.8 MiB (1 instance)
NUMA node(s):                    1
NUMA node0 CPU(s):               0-19
Vulnerability Itlb multihit:     KVM: Vulnerable
Vulnerability L1tf:              Mitigation; PTE Inversion
Vulnerability Mds:               Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown
Vulnerability Meltdown:          Mitigation; PTI
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1:        Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:        Vulnerable, STIBP: disabled
Vulnerability Tsx async abort:   Vulnerable: Clear CPU buffers attempted, no microcode; SMT Host state unknown

Versions of relevant libraries:
[pip3] flashinfer-python==0.2.1.post1+cu124torch2.5
[pip3] numpy==1.26.4
[pip3] nvidia-cublas-cu12==12.4.5.8
[pip3] nvidia-cuda-cupti-cu12==12.4.127
[pip3] nvidia-cuda-nvrtc-cu12==12.4.127
[pip3] nvidia-cuda-runtime-cu12==12.4.127
[pip3] nvidia-cudnn-cu12==9.1.0.70
[pip3] nvidia-cufft-cu12==11.2.1.3
[pip3] nvidia-curand-cu12==10.3.5.147
[pip3] nvidia-cusolver-cu12==11.6.1.9
[pip3] nvidia-cusparse-cu12==12.3.1.170
[pip3] nvidia-nccl-cu12==2.21.5
[pip3] nvidia-nvjitlink-cu12==12.4.127
[pip3] nvidia-nvtx-cu12==12.4.127
[pip3] pyzmq==26.3.0
[pip3] torch==2.5.1
[pip3] torchaudio==2.5.1
[pip3] torchvision==0.20.1
[pip3] transformers==4.49.0
[pip3] triton==3.1.0
[conda] Could not collect
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.7.4.dev359+gab7501f1
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
GPU Topology:
GPU0    CPU Affinity    NUMA Affinity   GPU NUMA ID
GPU0     X      0-19    0               N/A

Legend:

  X    = Self
  SYS  = Connection traversing PCIe as well as the SMP interconnect between NUMA nodes (e.g., QPI/UPI)
  NODE = Connection traversing PCIe as well as the interconnect between PCIe Host Bridges within a NUMA node
  PHB  = Connection traversing PCIe as well as a PCIe Host Bridge (typically the CPU)
  PXB  = Connection traversing multiple PCIe bridges (without traversing the PCIe Host Bridge)
  PIX  = Connection traversing at most a single PCIe bridge
  NV#  = Connection traversing a bonded set of # NVLinks

NVIDIA_VISIBLE_DEVICES=all
NVIDIA_REQUIRE_CUDA=cuda>=12.8 brand=unknown,driver>=470,driver<471 brand=grid,driver>=470,driver<471 brand=tesla,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=vapps,driver>=470,driver<471 brand=vpc,driver>=470,driver<471 brand=vcs,driver>=470,driver<471 brand=vws,driver>=470,driver<471 brand=cloudgaming,driver>=470,driver<471 brand=unknown,driver>=535,driver<536 brand=grid,driver>=535,driver<536 brand=tesla,driver>=535,driver<536 brand=nvidia,driver>=535,driver<536 brand=quadro,driver>=535,driver<536 brand=quadrortx,driver>=535,driver<536 brand=nvidiartx,driver>=535,driver<536 brand=vapps,driver>=535,driver<536 brand=vpc,driver>=535,driver<536 brand=vcs,driver>=535,driver<536 brand=vws,driver>=535,driver<536 brand=cloudgaming,driver>=535,driver<536 brand=unknown,driver>=550,driver<551 brand=grid,driver>=550,driver<551 brand=tesla,driver>=550,driver<551 brand=nvidia,driver>=550,driver<551 brand=quadro,driver>=550,driver<551 brand=quadrortx,driver>=550,driver<551 brand=nvidiartx,driver>=550,driver<551 brand=vapps,driver>=550,driver<551 brand=vpc,driver>=550,driver<551 brand=vcs,driver>=550,driver<551 brand=vws,driver>=550,driver<551 brand=cloudgaming,driver>=550,driver<551 brand=unknown,driver>=560,driver<561 brand=grid,driver>=560,driver<561 brand=tesla,driver>=560,driver<561 brand=nvidia,driver>=560,driver<561 brand=quadro,driver>=560,driver<561 brand=quadrortx,driver>=560,driver<561 brand=nvidiartx,driver>=560,driver<561 brand=vapps,driver>=560,driver<561 brand=vpc,driver>=560,driver<561 brand=vcs,driver>=560,driver<561 brand=vws,driver>=560,driver<561 brand=cloudgaming,driver>=560,driver<561 brand=unknown,driver>=565,driver<566 brand=grid,driver>=565,driver<566 brand=tesla,driver>=565,driver<566 brand=nvidia,driver>=565,driver<566 brand=quadro,driver>=565,driver<566 brand=quadrortx,driver>=565,driver<566 brand=nvidiartx,driver>=565,driver<566 brand=vapps,driver>=565,driver<566 brand=vpc,driver>=565,driver<566 brand=vcs,driver>=565,driver<566 brand=vws,driver>=565,driver<566 brand=cloudgaming,driver>=565,driver<566
NCCL_VERSION=2.25.1-1
NVIDIA_DRIVER_CAPABILITIES=compute,utility
NVIDIA_PRODUCT_NAME=CUDA
VLLM_USAGE_SOURCE=production-docker-image
CUDA_VERSION=12.8.0
LD_LIBRARY_PATH=/opt/venv/lib/python3.12/site-packages/cv2/../../lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
NCCL_CUMEM_ENABLE=0
TORCHINDUCTOR_COMPILE_THREADS=1
CUDA_MODULE_LOADING=LAZY

🐛 Describe the bug

py-spy dump -p 30 
Error: Failed to find python version from target process

/vllm-workspace# ldd /opt/venv/bin/python3
        linux-vdso.so.1 (0x00007fffa436e000)
        /opt/venv/bin/../lib/libpython3.12.so.1.0 => not found
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f551ffd1000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f551ffcc000)
        libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f551ffc7000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f551fee0000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f551fed9000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f551fcb0000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f551ffe0000)

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@maobaolong maobaolong added the bug Something isn't working label Mar 18, 2025
@yankay
Copy link

yankay commented Mar 18, 2025

We can use RUST_LOG=info py-spy dump -p 1132 to get more info. like

root@eaf75b43b5b2:~# RUST_LOG=info py-spy dump -p 1441 --subprocesses
[2025-03-18T11:42:03.565477748Z INFO  py_spy::config] Command line args: ArgMatches { args: {}, subcommand: Some(SubCommand { id: [hash: B8461C91A07ADDC8], name: "dump", matches: ArgMatches { args: {[hash: CD5160AB4406C427]: MatchedArg { occurs: 1, source: Some(CommandLine), indices: [2], type_id: Some(TypeId(0x5dcf929867a4416bfcc748d023caf6f9)), vals: [[AnyValue { inner: TypeId(0x5dcf929867a4416bfcc748d023caf6f9) }]], raw_vals: [["1441"]], ignore_case: false }, [hash: 721FFA7420DEDCF]: MatchedArg { occurs: 1, source: Some(CommandLine), indices: [3], type_id: Some(TypeId(0x5dcf929867a4416bfcc748d023caf6f9)), vals: [[]], raw_vals: [[]], ignore_case: false }}, subcommand: None } }) }
[2025-03-18T11:42:03.572400470Z INFO  py_spy::python_process_info] Got virtual memory maps from pid 1441:
[2025-03-18T11:42:03.574021155Z INFO  py_spy::python_process_info] Found libpython binary @ /root/.local/share/uv/python/cpython-3.12.9-linux-x86_64-gnu/lib/libpython3.12.so.1.0
[2025-03-18T11:42:03.598018807Z INFO  py_spy::python_process_info] Getting version from python binary BSS
[2025-03-18T11:42:03.601182599Z INFO  py_spy::python_process_info] Failed to get version from BSS section: failed to find version string
[2025-03-18T11:42:03.601214158Z INFO  py_spy::python_process_info] Getting version from libpython BSS
[2025-03-18T11:42:03.601304430Z INFO  py_spy::python_process_info] Failed to get version from libpython BSS section: failed to find version string
[2025-03-18T11:42:03.601353994Z INFO  py_spy::python_process_info] Trying to get version from path: /proc/1441/exe
Error: Failed to find python version from target process

I found the libpython is can be found, but the version cannot be from it.

@maobaolong
Copy link
Contributor Author

@yankay thanks for your help, the following is my output

RUST_LOG=info py-spy dump -p 4770

[2025-03-18T15:39:39.984381480Z INFO  py_spy::config] Command line args: ArgMatches { args: {}, subcommand: Some(SubCommand { id: [hash: B8461C91A07ADDC8], name: "dump", matches: ArgMatches { args: {[hash: CD5160AB4406C427]: MatchedArg { occurs: 1, source: Some(CommandLine), indices: [2], type_id: Some(TypeId(0x5dcf929867a4416bfcc748d023caf6f9)), vals: [[AnyValue { inner: TypeId(0x5dcf929867a4416bfcc748d023caf6f9) }]], raw_vals: [["4770"]], ignore_case: false }}, subcommand: None } }) }
[2025-03-18T15:39:39.984641874Z INFO  py_spy::python_process_info] Got virtual memory maps from pid 4770:
[2025-03-18T15:39:39.985850767Z INFO  py_spy::python_process_info] Found libpython binary @ /root/.local/share/uv/python/cpython-3.12.9-linux-x86_64-gnu/lib/libpython3.12.so.1.0
[2025-03-18T15:39:40.003840435Z INFO  py_spy::python_process_info] Getting version from python binary BSS
[2025-03-18T15:39:40.006386615Z INFO  py_spy::python_process_info] Failed to get version from BSS section: failed to find version string
[2025-03-18T15:39:40.006406949Z INFO  py_spy::python_process_info] Getting version from libpython BSS
[2025-03-18T15:39:40.006495684Z INFO  py_spy::python_process_info] Failed to get version from libpython BSS section: failed to find version string
[2025-03-18T15:39:40.006517558Z INFO  py_spy::python_process_info] Trying to get version from path: /proc/4770/exe
Error: Failed to find python version from target process

@cchadowitz
Copy link

This looks like #15174

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

No branches or pull requests

3 participants