Summary: | TP_Reactor -- Closed handle resumed leading to crashes | ||
---|---|---|---|
Product: | ACE | Reporter: | Nanbor Wang <bala> |
Component: | ACE Core | Assignee: | DOC Center Support List (internal) <tao-support> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | steve.vranyes |
Priority: | P3 | ||
Version: | 5.2.5 | ||
Hardware: | All | ||
OS: | All | ||
Bug Depends on: | |||
Bug Blocks: | 1277 | ||
Attachments: | Patches |
Description
Nanbor Wang
2002-11-12 06:23:21 CST
Created attachment 161 [details]
Patches
Patches in http://deuce.doc.wustl.edu/bugzilla/showattachment.cgi?attach_id=161 help TAO a lot. ACE should also benefit. But the following use case for ACE will choke - A dispatch, say handle_input () is called on a handler - The call retuned -1 and the remove_handler () is expected to remove only the READ_MASK for that handle without destroying the handler. For the above case the handle will not be resumed. Not sure how to come up with a more cleaner fix. For TAO, this isnt a problem since remove_handler () invariably removes all the masks from the reactor. Further, TAO resumes the handler on its own and hence this problem wouldnt show up. Forgot to add this. The above patches will not help an ACE application if the application decides to call remove_handler () from another thread. Added the patch to the main trunk.Here is the relevant ChangeLog entry Tue Nov 12 14:12:59 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu> I am leaving the bug wide open for future reference. Accept it for tao-support This should now hopefully be fixed. Here is the relevant ChangeLog entry Wed Nov 27 22:38:15 2002 Balachandran Natarajan <bala@isis-server.isis.vanderb ilt.edu> |