lgbo-ustc commented on issue #10797: URL: https://github.com/apache/incubator-gluten/issues/10797#issuecomment-3332089130
After the native destructor (`Java_org_apache_gluten_vectorized_ExpressionEvaluatorJniWrapper_nativeDestroyNative`) was called, ClickHouse code continued to be invoked. This access to freed resources resulted in an invalid memory access and a crash. It has been observed that after the execution of `Java_org_apache_gluten_vectorized_ExpressionEvaluatorJniWrapper_nativeDestroyNative`, the following issues persist: 1. There are still active `LocalExecutor` instances. Forcibly shutting down these `LocalExecutor` instances at this point would be an appropriate action. 2. Other JNI interfaces (e.g., `Java_org_apache_gluten_vectorized_BatchIterator_nativeFetchMetrics`) may still be invoked by the Java side. A mechanism should be implemented to ensure that `Java_org_apache_gluten_vectorized_ExpressionEvaluatorJniWrapper_nativeDestroyNative` is only executed when no other JNI interfaces are active. Concurrently, any subsequent calls to other JNI interfaces must be directly rejected. -- 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]
