Return-Path: X-Original-To: apmail-ignite-issues-archive@minotaur.apache.org Delivered-To: apmail-ignite-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6266718F29 for ; Tue, 10 Nov 2015 16:36:11 +0000 (UTC) Received: (qmail 10863 invoked by uid 500); 10 Nov 2015 16:36:11 -0000 Delivered-To: apmail-ignite-issues-archive@ignite.apache.org Received: (qmail 10770 invoked by uid 500); 10 Nov 2015 16:36:11 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 10738 invoked by uid 99); 10 Nov 2015 16:36:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2015 16:36:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 08F642C1F5A for ; Tue, 10 Nov 2015 16:36:11 +0000 (UTC) Date: Tue, 10 Nov 2015 16:36:11 +0000 (UTC) From: "Pavel Tupitsyn (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-1884) .Net: JNI local ref can't be accessed from another thread MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Pavel Tupitsyn created IGNITE-1884: --------------------------------------- Summary: .Net: JNI local ref can't be accessed from another thread Key: IGNITE-1884 URL: https://issues.apache.org/jira/browse/IGNITE-1884 Project: Ignite Issue Type: Bug Components: interop Affects Versions: 1.1.4 Reporter: Pavel Tupitsyn Assignee: Pavel Tupitsyn Fix For: 1.5 Documentation: https://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/design.html {code} Local references are only valid in the thread in which they are created. The native code must not pass local references from one thread to another. {code} We have two places where we DO pass local JNI reference to another thread: * CacheParallelLoadStoreAdapter * CacheTestStore.LoadCache For some reason it has worked for us before. But renamings in IGNITE-1881 have caused test execution order to change, and these store tests cause process crash. To reproduce, BinaryBuilderSelfTest (former PortableApiSelfTest) has to be executed before store tests. All other tests can be excluded. 100% repro rate: "FATAL ERROR in native method: Bad global or local ref passed to JNI". -- This message was sent by Atlassian JIRA (v6.3.4#6332)