xumingming commented on issue #6534: URL: https://github.com/apache/incubator-gluten/issues/6534#issuecomment-2242959306
After some digging, it seems that `ObjectStore::stores` are initialized twice: https://github.com/apache/incubator-gluten/blob/23af01dfaa5e72d72c4f5d4d0851a72ce9723013/cpp/core/utils/ObjectStore.h#L76-L79 this `static ResourceMap<ObjectStore*> stores` is defined in header file, it will be linked by two DLLs(libgluten, libvelox), each DDLs will get its copy of static variable, then each initialize it. See [1] for information. [1]. https://stackoverflow.com/questions/11962918/local-static-variable-is-instantiated-multiple-times-why -- 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]
