You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build dpctl with code coverage turned on using python setup.py develop --coverage=1 and that leads to a hang (at least on my system) when running the DPCTLQueueMemberFuncTests/TestDPCTLQueueMemberFunctions.CheckMemOpsNullPtr tests.
I see the following error message printed :
NULL pointer argument in memory copy operation. -30 (CL_INVALID_VALUE)
The error seems to be similar to what is happening with the coverage action in our CI.
@oleksandr-pavlyk The CheckMemOpsNullPtr test is not correct. It is triggering the hang. The issue is that p2 (source) is not initialized and that causes an exception inside memcpy.
NULL pointer argument in memory copy operation. -30 (CL_INVALID_VALUE)
The reason it is not caught is that the check ASSERT_FALSE(bool(ERef)); is not right. It should be ASSERT_TRUE(bool(ERef)); or better still ASSERT_FALSE(ERef != nullptr);.
Activity
diptorupd commentedon Sep 29, 2021
The errant test that causes the hang (and my PC to almost melt) is this one:
diptorupd commentedon Sep 30, 2021
@oleksandr-pavlyk The
CheckMemOpsNullPtrtest is not correct. It is triggering the hang. The issue is thatp2(source) is not initialized and that causes an exception insidememcpy.The reason it is not caught is that the check
ASSERT_FALSE(bool(ERef));is not right. It should beASSERT_TRUE(bool(ERef));or better stillASSERT_FALSE(ERef != nullptr);.oleksandr-pavlyk commentedon Sep 30, 2021
I am expecting EREf to come back a
nullptr.I thought DPCTLQueue_Memcpy checks the pointers, or wraps
sycl::queue::memcpyin a try/catch clause.diptorupd commentedon Oct 4, 2021
fixed by #612