[ace-bugs] [ACE]: [calling purge_pending_notifications() before notify() leads to dead-lock]

Phil Mesnier mesnierp at ociweb.com
Mon Nov 28 06:07:51 CST 2016


Hi Jack,

Thank you for this analysis. Since you have gone so far to research the cause, do you have a recommended solution? If so, please submit a pull request to https://github.com/DOCGroup/ACE_TAO <https://github.com/DOCGroup/ACE_TAO>

Given the apparent urgency of your request, I suggest you investigate commercial support. Take a look at http://www.cs.wustl.edu/~schmidt/commercial-support.html <http://www.cs.wustl.edu/~schmidt/commercial-support.html> for a list of vendors.

Finally, I suggest you create a bug report in bugzilla: http://bugzilla.dre.vanderbilt.edu/ <http://bugzilla.dre.vanderbilt.edu/>

It would be helpful if you can prepare a runnable test that demonstrates the problem and submit that with your pull request and / or the bugzilla entry. Take a look at any of the ACE/tests as an example. Also, be sure to say what platforms are affected, windows, linux, etc.

The bugzilla entry is particularly important if you are unable to provide a fix or fund the development of one. In that case, it may take a while for someone to come up with an acceptable solution gratis.

Best Regards,
Phil

> On Nov 28, 2016, at 2:12 AM, Jack Wong <pandawkx at 163.com> wrote:
> 
> ACE VERSION: 6.3.0
> (this bug still exists in version 6.4.0)
> 
> Our test codes looks like this:
> 
> 1:while (true)
> 2:{
> 3:    reactor()->purge_pending_notifications(xxx);
> 4:    reactor()->notify(xxx);
> 5:}
> 
> after a while , we found dead-lock occurs at  line 4.
> 
> -------------------------
> 
> I check the code and found that :
> 
> purge_pending_notifications can only purge message in notify queue
> 
> messages in pipe can not be purged
> 
> so calling notify() after purge_pending_notifications() can always leads one message be write to pipe
> 
> So when I keep calling like this , soon buffer of pipe will full and notify() will be blocked , then dead-lock occurs
> 
> -------------------------
> 
> we are using this two interfaces building important functions of our application
> 
> we will appreciate it if this bug being fixed soon
> 
> -------------------------
> 
> poor English, sorry!
> 
> 
>  
> _______________________________________________
> ace-bugs mailing list
> ace-bugs at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/ace-bugs

--
Phil Mesnier
Principal Engineer & Partner

OCI | WE ARE SOFTWARE ENGINEERS.
tel  +1.314.579.0066 x225
ociweb.com <http://ociweb.com/>





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/ace-bugs/attachments/20161128/3c2dcf46/attachment.html>


More information about the ace-bugs mailing list