Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

No stack trace in paddle, may be caused by external reasons

Open ITerydh opened this issue 4 years ago • 27 comments

bug描述 Describe the Bug

在本地环境多卡跑项目没有什么问题,换成aistudio的线上的v1004卡后,报错 如下: ··· W0507 15:07:04.933581 3904 device_context.cc:447] Please NOTE: device: 3, GPU Compute Capability: 7.0, Driver API Version: 10.1, Runtime API Version: 10.1 W0507 15:07:04.937494 3904 device_context.cc:465] device: 3, cuDNN Version: 7.6.


C++ Traceback (most recent call last):

No stack trace in paddle, may be caused by external reasons.


Error Message Summary:

FatalError: Segmentation fault is detected by the operating system. [TimeInfo: *** Aborted at 1651907225 (unix time) try "date -d @1651907225" if you are using GNU date ***] [SignalInfo: *** SIGSEGV (@0x1378) received by PID 3904 (TID 0x7f4ea96f5700) from PID 4984 ***]

···

其他补充信息 Additional Supplementary Information

希望尽快解决

ITerydh avatar May 07 '22 07:05 ITerydh

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!

paddle-bot-old avatar May 07 '22 07:05 paddle-bot-old

您好,请提供更多环境信息,本地环境和aistudio环境有什么不同,aistudio环境下以下语句是否正常运行。

import paddle
paddle.utils.run_check()
paddle.device.cuda.device_count()

如果没有请aistudio上重新安装合适版本谢谢。

nemonameless avatar May 08 '22 13:05 nemonameless


C++ Traceback (most recent call last):

No stack trace in paddle, may be caused by external reasons.


Error Message Summary:

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

段错误 (核心已转储) 相同的问题,下面是系统信息

import paddle ce.cuda.device_count()>>> paddle.utils.run_check() Running verify PaddlePaddle program ... W0520 10:13:12.896080 10157 gpu_context.cc:278] Please NOTE: device: 0, GPU Compute Capability: 6.1, Driver API Version: 11.4, Runtime API Version: 10.2 W0520 10:13:12.898541 10157 gpu_context.cc:306] device: 0, cuDNN Version: 8.1. PaddlePaddle works well on 1 GPU. PaddlePaddle works well on 1 GPUs. PaddlePaddle is installed successfully! Let's start deep learning with PaddlePaddle now. paddle.device.cuda.device_count() 1

JsutCheng avatar May 20 '22 02:05 JsutCheng

Hii, Did anyone find the solution for the issue? Kindly share.

rashmi-tiwari avatar Jun 08 '22 09:06 rashmi-tiwari

I just ran the gpu command and it gave the same error. $ python3 -m pip install paddlepaddle-gpu

After: $ python3 -m pip install paddlepaddle

The error is gone.

Rafhael369 avatar Jul 14 '22 18:07 Rafhael369

我是cuda10.2, cudnn8.0.3,centos7.3的环境,使用paddle推理,稳定报错,然后我重装了cudnn,报错解决,应该是之前装的cudnn与系统环境不匹配。

Prsaro avatar Jul 15 '22 02:07 Prsaro

paddle.disable_signal_handler() https://github.com/PaddlePaddle/Paddle/issues/36281

zhuangweiji avatar Aug 02 '22 14:08 zhuangweiji

d2lbook CI building also met the same problem, here is my pr. https://github.com/d2l-ai/d2l-zh/pull/1198

w5688414 avatar Sep 11 '22 04:09 w5688414

本地cuda11.2cudnn8.1.1nccl2.8.4正常运行 aistudio我就是用的默认的版本cuda10.2 cudnn7.6,我总不能拿四卡v100装cuda环境搞半天吧...算力掉的太快了

---Original--- From: "Feng @.> Date: Sun, May 8, 2022 21:26 PM To: @.>; Cc: @.@.>; Subject: Re: [PaddlePaddle/Paddle] No stack trace in paddle, may be caused byexternal reasons (Issue #42564)

您好,请提供更多环境信息,本地环境和aistudio环境有什么不同,aistudio环境下以下语句是否正常运行。 import paddle paddle.utils.run_check() paddle.device.cuda.device_count()
如果没有请aistudio上重新安装合适版本谢谢。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ITerydh avatar Oct 11 '22 08:10 ITerydh

Maybe you can refer to this link to adjust the paddlepaddle version (based on your cuda version) .

yechens avatar Oct 31 '22 15:10 yechens

I just ran the gpu command and it gave the same error. $ python3 -m pip install paddlepaddle-gpu

After: $ python3 -m pip install paddlepaddle

The error is gone.

" python3 -m pip install paddlepaddle" ,this is paddle CPU version

1510386060 avatar Nov 08 '22 08:11 1510386060

paddle.utils.run_check() gives:

I0117 17:32:39.043583 1218645 interpretercore.cc:277] New Executor is Running.
I0117 17:32:39.051728 1218645 interpreter_util.cc:619] Standalone Executor is Used.

0   paddle::framework::StandaloneExecutor::Run(paddle::framework::Scope*, std::vector<std::string, std::allocator<std::string > > const&, std::vector<std::string, std::allocator<std::string > > const&)
1   paddle::framework::InterpreterCore::Run(std::vector<std::string, std::allocator<std::string > > const&, bool)
2   paddle::framework::interpreter::BuildOpFuncList(phi::Place const&, paddle::framework::BlockDesc const&, std::set<std::string, std::less<std::string >, std::allocator<std::string > > const&, std::vector<paddle::framework::OpFuncNode, std::allocator<paddle::framework::OpFuncNode> >*, paddle::framework::VariableScope*, paddle::framework::interpreter::ExecutionConfig const&, bool)
3   phi::KernelImpl<void (*)(phi::CPUContext const&, phi::DenseTensor const&, phi::DenseTensor const&, phi::DenseTensor const&, bool, bool, phi::DenseTensor*, phi::DenseTensor*), &(void phi::MatmulGradKernel<float, phi::CPUContext>(phi::CPUContext const&, phi::DenseTensor const&, phi::DenseTensor const&, phi::DenseTensor const&, bool, bool, phi::DenseTensor*, phi::DenseTensor*))>::Compute(phi::KernelContext*)
4   void phi::MatmulGradKernel<float, phi::CPUContext>(phi::CPUContext const&, phi::DenseTensor const&, phi::DenseTensor const&, phi::DenseTensor const&, bool, bool, phi::DenseTensor*, phi::DenseTensor*)
5   void phi::CalcInputGrad<float, phi::CPUContext>(phi::CPUContext const&, phi::DenseTensor const&, bool, bool, phi::DenseTensor const&, bool, bool, phi::DenseTensor*, bool)

kiufta avatar Jan 17 '23 16:01 kiufta

您发给此邮箱的邮件已收到,O(∩_∩)O谢谢~~祝您每天有个好心情

1510386060 avatar Jan 17 '23 16:01 1510386060


C++ Traceback (most recent call last):

No stack trace in paddle, may be caused by external reasons.


Error Message Summary:

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

段错误

调用GPU测试pipline.py就会报这个错,cpu不会 cuda 10.1 cudnn 8.0

xumeng0410 avatar Feb 09 '23 03:02 xumeng0410

您发给此邮箱的邮件已收到,O(∩_∩)O谢谢~~祝您每天有个好心情

1510386060 avatar Feb 09 '23 03:02 1510386060

报同样的错,centos7.9 python3.9 paddle2.2.2 cuda11.2 cudnn8.1.1报错,换成cuda10.2 cudnn7.6.5还是报错,之前运行的好好的,突然就报这个错了,改cuda版本还是不行,有没有人知道怎么解决? error

lemon9707 avatar Apr 12 '23 01:04 lemon9707

您发给此邮箱的邮件已收到,O(∩_∩)O谢谢~~祝您每天有个好心情

1510386060 avatar Apr 12 '23 01:04 1510386060

Maybe you can refer to this link to adjust the paddlepaddle version (based on your cuda version) .

哈哈哈,问题解决了,开心 .完全就是cudnn版本和cuda版本不匹配的问题. 我的cuda版本是11.6, cudnn原先的版本是8.5, 一运行pphuman的跨境追踪demo的时候,用cpu运行没问题,但是gpu运行就一直报错. 根据官方文档, 切换到cudnn8.4版本后,就正常运行啦

供大家参考

lyy1988323 avatar Nov 09 '23 02:11 lyy1988323

您发给此邮箱的邮件已收到,O(∩_∩)O谢谢~~祝您每天有个好心情

1510386060 avatar Nov 09 '23 02:11 1510386060

删除或备份/usr/lib/wsl/lib中的libcuda.so与libcuda.so.1 然后建立对libcuda.so.1.1的软连接:

sudo ln -s libcuda.so.1.1 libcuda.so.1
sudo ln -s libcuda.so.1 libcuda.so

LeChaPatteImpitoyable avatar Feb 22 '24 13:02 LeChaPatteImpitoyable