Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

data layer 在输入shape 为2**32 时出core

Open zhoukunsheng opened this issue 7 years ago • 6 comments

image 上述程序在shape=2**32时出core

zhoukunsheng avatar Jun 27 '19 12:06 zhoukunsheng

请问是否是这样的core trace

*** Aborted at 1561704189 (unix time) try "date -d @1561704189" if you are using GNU date ***
PC: @                0x0 (unknown)
*** SIGSEGV (@0x7fc2182dd000) received by PID 5819 (TID 0x7fc35174e700) from PID 405655552; stack trace: ***
    @     0x7fc350f05160 (unknown)
    @     0x7fc3505769fd __memmove_ssse3_back
    @     0x7fc321cee6a9 paddle::pybind::PyCPUTensorSetFromArray<>()
    @     0x7fc321d2f017 _ZZN8pybind1112cpp_function10initializeIRPFvPN6paddle9framework6TensorENS_7array_tIbLi17EEENS2_8platform8CPUPlaceEEvIS5_S7_S9_EINS_4nameENS_9is_methodENS_7siblingEEEEvOT_PFT0_DpT1_EDpRKT2_ENUlRNS_6detail13function_callEE1_4_FUNEST_
    @     0x7fc321d0b9fc pybind11::cpp_function::dispatcher()
    @     0x7fc35121ebb8 PyEval_EvalFrameEx
    @     0x7fc3512220bd PyEval_EvalCodeEx
    @     0x7fc35121f345 PyEval_EvalFrameEx
    @     0x7fc3512220bd PyEval_EvalCodeEx
    @     0x7fc35121f345 PyEval_EvalFrameEx
    @     0x7fc3512220bd PyEval_EvalCodeEx
    @     0x7fc35121f345 PyEval_EvalFrameEx
    @     0x7fc3512220bd PyEval_EvalCodeEx
    @     0x7fc35121f345 PyEval_EvalFrameEx
    @     0x7fc3512220bd PyEval_EvalCodeEx
    @     0x7fc3512221f2 PyEval_EvalCode
    @     0x7fc35124af42 PyRun_FileExFlags
    @     0x7fc35124c2d9 PyRun_SimpleFileExFlags
    @     0x7fc35126200d Py_Main
    @     0x7fc35045fbd5 __libc_start_main
    @           0x4007a1 (unknown)
    @                0x0 (unknown)

wangguibao avatar Jun 28 '19 07:06 wangguibao

shape=(2**31,)时会提示EnforceNotMet,2**32时直接SegmentFault,没有提示任何信息

zhoukunsheng avatar Jun 28 '19 07:06 zhoukunsheng

SegmentFault时不会打印出来像我贴出来的那种call trace吗?

wangguibao avatar Jun 28 '19 07:06 wangguibao

不会

zhoukunsheng avatar Jul 01 '19 03:07 zhoukunsheng

查看了EnforceNotMet 在 231 的时候显示Variable的维度出现负数,看起来是 231, 2**32时维度在哪里被转为c++ int时数据溢出导致的负数,继续定位问题和修复中。

zhhsplendid avatar Jul 09 '19 02:07 zhhsplendid

Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。

paddle-bot-old avatar Jul 13 '20 09:07 paddle-bot-old