You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "marco polo (JIRA)" <ji...@apache.org> on 2017/08/17 12:33:00 UTC

[jira] [Updated] (MINIFI-378) Shutdown can cause ProcessSessionFactory pointer to be deleted during use, causing page fault at shutdown

     [ https://issues.apache.org/jira/browse/MINIFI-378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

marco polo updated MINIFI-378:
------------------------------
    Summary: Shutdown can cause ProcessSessionFactory pointer to be deleted during use, causing page fault at shutdown  (was: Shutdown can cause ProcessSessionFactory pointer to be deleted causing page fault at shutdown)

> Shutdown can cause ProcessSessionFactory pointer to be deleted during use, causing page fault at shutdown
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: MINIFI-378
>                 URL: https://issues.apache.org/jira/browse/MINIFI-378
>             Project: Apache NiFi MiNiFi
>          Issue Type: Bug
>          Components: C++
>            Reporter: marco polo
>            Assignee: marco polo
>            Priority: Blocker
>
> If a thread within a processor uses the process session factory to create a session, the pointer will result in an invalid memory access, causing a seg fault. This is because the raw pointer is passed around and deleted. We should either convert this to a shared pointer or be more mindful of the variable's lifecycle given the complexity of processors will only ever increase. Further, we should not be deleting infrastructure components without ensuring all processors are finished. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)