Re: qpid-proton cpp windows : Crash

2018-04-26 Thread Baptiste Robert
Update:

I opened a JIRA : https://issues.apache.org/jira/browse/PROTON-1833


2018-04-23 16:50 GMT+02:00 Alan Conway :

> On Mon, Apr 23, 2018 at 5:37 AM, Baptiste Robert <
> baptisterober...@gmail.com
> > wrote:
>
> > Hello,
> >
> > I'm encountering a crash in the proton library. What I'm doing ? Just
> > creating a proton::container, listening locally on 0.0.0.0:5672 and then
> > call stop() on the container and getting outside of the scope (object is
> > then destroy) => the crash happen.
> >
> > Where does it crash ? In *win_iocp.c*, the line in red
> >
> > void pn_proactor_free(pn_proactor_t *p) {
> >   *DeleteTimerQueueEx(p->timer_queue, INVALID_HANDLE_VALUE);*
> >   DeleteCriticalSection(>timer_lock);
> >   DeleteCriticalSection(>bind_lock);
> >   proactor_shutdown(p);
> >
> >   delete p->reaper;
> >   WSACleanup();
> >   pn_collector_free(p->collector);
> >   free(p);
> > }
> >
> >
> > Proton version : 0.21
> > Windows 7 - 64 bits
> > Visual studio 2010
> >
> > Does any one have a clue ? It remind me this issue on the dispatch
> router:
> > https://issues.apache.org/jira/browse/DISPATCH-945
> >
> >
> Sounds like a bug. Can you raise a JIRA and attach your code to reproduce?
> The dispatch issue is not quite the same (dispatch has 2 server loops, one
> for AMQP and one for HTTP) but I believe we did fix a similar issue in the
> epoll proactor a while back.
>
> --
>
> > Baptiste Robert
> >
>



-- 
Baptiste Robert


Re: qpid-proton cpp windows : Crash

2018-04-23 Thread Alan Conway
On Mon, Apr 23, 2018 at 5:37 AM, Baptiste Robert  wrote:

> Hello,
>
> I'm encountering a crash in the proton library. What I'm doing ? Just
> creating a proton::container, listening locally on 0.0.0.0:5672 and then
> call stop() on the container and getting outside of the scope (object is
> then destroy) => the crash happen.
>
> Where does it crash ? In *win_iocp.c*, the line in red
>
> void pn_proactor_free(pn_proactor_t *p) {
>   *DeleteTimerQueueEx(p->timer_queue, INVALID_HANDLE_VALUE);*
>   DeleteCriticalSection(>timer_lock);
>   DeleteCriticalSection(>bind_lock);
>   proactor_shutdown(p);
>
>   delete p->reaper;
>   WSACleanup();
>   pn_collector_free(p->collector);
>   free(p);
> }
>
>
> Proton version : 0.21
> Windows 7 - 64 bits
> Visual studio 2010
>
> Does any one have a clue ? It remind me this issue on the dispatch router:
> https://issues.apache.org/jira/browse/DISPATCH-945
>
>
Sounds like a bug. Can you raise a JIRA and attach your code to reproduce?
The dispatch issue is not quite the same (dispatch has 2 server loops, one
for AMQP and one for HTTP) but I believe we did fix a similar issue in the
epoll proactor a while back.

-- 

> Baptiste Robert
>


qpid-proton cpp windows : Crash

2018-04-23 Thread Baptiste Robert
Hello,

I'm encountering a crash in the proton library. What I'm doing ? Just
creating a proton::container, listening locally on 0.0.0.0:5672 and then
call stop() on the container and getting outside of the scope (object is
then destroy) => the crash happen.

Where does it crash ? In *win_iocp.c*, the line in red

void pn_proactor_free(pn_proactor_t *p) {
  *DeleteTimerQueueEx(p->timer_queue, INVALID_HANDLE_VALUE);*
  DeleteCriticalSection(>timer_lock);
  DeleteCriticalSection(>bind_lock);
  proactor_shutdown(p);

  delete p->reaper;
  WSACleanup();
  pn_collector_free(p->collector);
  free(p);
}


Proton version : 0.21
Windows 7 - 64 bits
Visual studio 2010

Does any one have a clue ? It remind me this issue on the dispatch router:
https://issues.apache.org/jira/browse/DISPATCH-945

-- 
Baptiste Robert