[ 
https://issues.apache.org/jira/browse/MINIFI-378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16130357#comment-16130357
 ] 

marco polo commented on MINIFI-378:
-----------------------------------

commit 8693fcf432a87439cb6dcfaee9e2469612b8be84
Author: Marc Parisi <[email protected]>
Date:   Thu Aug 17 08:36:03 2017 -0400

    MINIFI-378: Resolve issues with shutdown. Took the approach to call 
notifyStop at the destructor to avoid larger changes

> 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)

Reply via email to