xiaojie19852006 commented on issue #9023:
URL: 
https://github.com/apache/incubator-gluten/issues/9023#issuecomment-2728515408

   The same package does not exhibit similar issues in an x86 environment. 
Through investigation, we located the core dump to the jStringToCString method 
in cpp/core/jni/JniCommon.h, which is called by the 
Java_org_apache_gluten_utils_VeloxFileSystemValidationJniWrapper_allSupportedByRegisteredFileSystems
 method in ./cpp/velox/jni/VeloxJniWrapper.cc. The problem appears to stem from 
the failure of memory allocation for the buffer array in jStringToCString, 
which does not throw an exception but causes a core dump. After replacing the 
fixed-size array with a std::vector, the program runs normally. It seems there 
is a memory risk with the original array implementation. We recommend fixing it 
by switching to std::vector or exploring alternative solutions from the 
community. Are there other approaches suggested by the community?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to