Skip to content

安装后check_predict.sh导致 Segmentation Fault #3916

@xyttyxy

Description

@xyttyxy

问题确认 Search before asking

Bug描述 Describe the Bug

错误:
按官方安装说明安装之后,执行check_predict.sh检查,报如下错误:

...
//以上略

2025-06-09 09:11:43 [INFO]      Loading pretrained model from https://bj.bcebos.com/paddleseg/dygraph/PP_STDCNet2.tar.gz
Connecting to https://bj.bcebos.com/paddleseg/dygraph/PP_STDCNet2.tar.gz
Downloading PP_STDCNet2.tar.gz
[==================================================] 100.00%


--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
0   inflateReset2

----------------------
Error Message Summary:
----------------------
FatalError: `Segmentation fault` is detected by the operating system.
  [TimeInfo: *** Aborted at 1749474719 (unix time) try "date -d @1749474719" if you are using GNU date ***]
  [SignalInfo: *** SIGSEGV (@0x0) received by PID 2166947 (TID 0x7f22c4685740) from PID 0 ***]

tests/install/check_predict.sh: line 6: 2166947 Segmentation fault      (core dumped) python tools/predict.py --config configs/quick_start/pp_liteseg_optic_disc_512x512_1k.yml --model_path https://paddleseg.bj.bcebos.com/dygraph/optic_disc/pp_liteseg_optic_disc_512x512_1k/model.pdparams --image_path docs/images/optic_test_image.jpg --save_dir output/result

已经尝试更换CUDA/CuDNN版本,最开始尝试的是CUDA 12.9 + CuDNN 9,换成现在的CUDA 11.8 + CuDNN 8, 报一样的错误。

也尝试了更换2.8.0版本和从源码安装,报错完全一样。

复现环境 Environment

------------Environment Information-------------
platform: Linux-5.14.0-452.el9.x86_64-x86_64-with-glibc2.34
Python: 3.9.21 (main, Feb 10 2025, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-5)]
Paddle compiled with cuda: True
NVCC: Build cuda_11.8.r11.8/compiler.31833905_0
cudnn: 8.9
GPUs used: 1
CUDA_VISIBLE_DEVICES: None
GPU: ['GPU 0: NVIDIA GeForce', 'GPU 1: NVIDIA GeForce']
GCC: gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5)
PaddleSeg: 2.8.0
PaddlePaddle: 2.6.1
OpenCV: 4.5.5

安装方式:bare metal, CentOS Stream 9, RTX4080S

Bug描述确认 Bug description confirmation

  • 我确认已经提供了Bug复现步骤、代码改动说明、以及环境信息,确认问题是可以复现的。I confirm that the bug replication steps, code change instructions, and environment information have been provided, and the problem can be reproduced.

是否愿意提交PR? Are you willing to submit a PR?

  • 我愿意提交PR!I'd like to help by submitting a PR!

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions