You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Adel Boutros <Ad...@live.com> on 2016/11/03 09:55:07 UTC

[Proton-c] [0.14.0] [Visual Studio 2013] Exception when destroying the container_impl after using the event_loop

Hello,


On Windows using Visual Studio 2013, I am trying to use the proton::thread_safe::event_loop() to inject some user events and trigger actions on the messaging_handler.

It seems that when the proton::container_impl is being destroyed, I have an error in the pn_error_free method.


PS: I am using the patch provided by Cliff which changed a bit how pn_io_finalize works on Windows (https://issues.apache.org/jira/browse/PROTON-1336)


Error:

- error 0x000000000041af70 {text=0xbaadf00dbaadf00d <Error reading characters of string.> root=0xbaadf00dbaadf00d {...} ...}
- text 0xbaadf00dbaadf00d <Error reading characters of string.>
<Unable to read memory>


Stack trace:

  ntdll.dll!0000000076efba81() Unknown
  ntdll.dll!0000000076eaa249() Unknown
  ntdll.dll!0000000076f165e9() Unknown
  ntdll.dll!0000000076ee0a3b() Unknown
  kernel32.dll!0000000076d51a7a() Unknown
  msvcr120.dll!000007fef73569d8() Unknown
> qpid-proton.dll!pn_error_free(pn_error_t * error) Line 52 C++
  qpid-proton.dll!pn_io_finalize(void * obj) Line 99 C++
  qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void * object) Line 98 C++
  qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void * object) Line 98 C++
  qpid-proton-cpp.dll!proton::container_impl::~container_impl() Line 160 C++

Regards,

Adel

Re: [Proton-c] [0.14.0] [Visual Studio 2013] Exception when destroying the container_impl after using the event_loop

Posted by Alan Conway <ac...@redhat.com>.
On Tue, 2016-11-08 at 17:11 +0000, Adel Boutros wrote:
> Hello guys,
> 
> Is anyone checking this issue?

No but there will be soon, sorry for the long silence. I have my head
down on a C "proactor" that will greatly simplify portable C multi-
threaded work in general, and the C++ binding implementation in
particular (no change to the interface)

I am about to lift my head and will make that JIRA a priority. The
ability to "wake" a connection efficiently is part of the proactor but
whether that fixes your problem needs to be specifically tested, since
I thought the original C++ impl would be efficient ;) Thanks for
putting so much investigative work into it while I've been hiding.

> 
> Regards,
> Adel
> 
> 
> 
> On Thu, Nov 3, 2016 at 2:57 PM +0100, "Adel Boutros" <Adelboutros@liv
> e.com<ma...@live.com>> wrote:
> 
> Jira issue created: https://issues.apache.org/jira/browse/PROTON-1340
> 
> 
> Adel
> 
> ________________________________
> From: Adel Boutros <Ad...@live.com>
> Sent: Thursday, November 3, 2016 10:55:07 AM
> To: users@qpid.apache.org
> Subject: [Proton-c] [0.14.0] [Visual Studio 2013] Exception when
> destroying the container_impl after using the event_loop
> 
> Hello,
> 
> 
> On Windows using Visual Studio 2013, I am trying to use the
> proton::thread_safe::event_loop() to inject some user events and
> trigger actions on the messaging_handler.
> 
> It seems that when the proton::container_impl is being destroyed, I
> have an error in the pn_error_free method.
> 
> 
> PS: I am using the patch provided by Cliff which changed a bit how
> pn_io_finalize works on Windows (https://issues.apache.org/jira/brows
> e/PROTON-1336)
> 
> 
> Error:
> 
> - error 0x000000000041af70 {text=0xbaadf00dbaadf00d <Error reading
> characters of string.> root=0xbaadf00dbaadf00d {...} ...}
> - text 0xbaadf00dbaadf00d <Error reading characters of string.>
> <Unable to read memory>
> 
> 
> Stack trace:
> 
> � ntdll.dll!0000000076efba81() Unknown
> � ntdll.dll!0000000076eaa249() Unknown
> � ntdll.dll!0000000076f165e9() Unknown
> � ntdll.dll!0000000076ee0a3b() Unknown
> � kernel32.dll!0000000076d51a7a() Unknown
> � msvcr120.dll!000007fef73569d8() Unknown
> > 
> > qpid-proton.dll!pn_error_free(pn_error_t * error) Line 52 C++
> � qpid-proton.dll!pn_io_finalize(void * obj) Line 99 C++
> � qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void *
> object) Line 98 C++
> � qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void *
> object) Line 98 C++
> � qpid-proton-cpp.dll!proton::container_impl::~container_impl() Line
> 160 C++
> 
> Regards,
> 
> Adel


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


Re: [Proton-c] [0.14.0] [Visual Studio 2013] Exception when destroying the container_impl after using the event_loop

Posted by Cliff Jansen <cl...@gmail.com>.
Yes, this is being actively worked. Please see the latest comment in
PROTON-1340 and the intended Windows proacter implementation. The C++
injector should work the same on all platforms in that case.

On Tuesday, 8 November 2016, Adel Boutros <ad...@live.com> wrote:

> Hello guys,
>
> Is anyone checking this issue?
>
> Regards,
> Adel
>
>
>
> On Thu, Nov 3, 2016 at 2:57 PM +0100, "Adel Boutros" <Adelboutros@live.com
> <javascript:;><mailto:Adelboutros@live.com <javascript:;>>> wrote:
>
> Jira issue created: https://issues.apache.org/jira/browse/PROTON-1340
>
>
> Adel
>
> ________________________________
> From: Adel Boutros <Adelboutros@live.com <javascript:;>>
> Sent: Thursday, November 3, 2016 10:55:07 AM
> To: users@qpid.apache.org <javascript:;>
> Subject: [Proton-c] [0.14.0] [Visual Studio 2013] Exception when
> destroying the container_impl after using the event_loop
>
> Hello,
>
>
> On Windows using Visual Studio 2013, I am trying to use the
> proton::thread_safe::event_loop() to inject some user events and trigger
> actions on the messaging_handler.
>
> It seems that when the proton::container_impl is being destroyed, I have
> an error in the pn_error_free method.
>
>
> PS: I am using the patch provided by Cliff which changed a bit how
> pn_io_finalize works on Windows (https://issues.apache.org/
> jira/browse/PROTON-1336)
>
>
> Error:
>
> - error 0x000000000041af70 {text=0xbaadf00dbaadf00d <Error reading
> characters of string.> root=0xbaadf00dbaadf00d {...} ...}
> - text 0xbaadf00dbaadf00d <Error reading characters of string.>
> <Unable to read memory>
>
>
> Stack trace:
>
>   ntdll.dll!0000000076efba81() Unknown
>   ntdll.dll!0000000076eaa249() Unknown
>   ntdll.dll!0000000076f165e9() Unknown
>   ntdll.dll!0000000076ee0a3b() Unknown
>   kernel32.dll!0000000076d51a7a() Unknown
>   msvcr120.dll!000007fef73569d8() Unknown
> > qpid-proton.dll!pn_error_free(pn_error_t * error) Line 52 C++
>   qpid-proton.dll!pn_io_finalize(void * obj) Line 99 C++
>   qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void *
> object) Line 98 C++
>   qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void *
> object) Line 98 C++
>   qpid-proton-cpp.dll!proton::container_impl::~container_impl() Line 160
> C++
>
> Regards,
>
> Adel
>

Re: [Proton-c] [0.14.0] [Visual Studio 2013] Exception when destroying the container_impl after using the event_loop

Posted by Adel Boutros <ad...@live.com>.
Hello guys,

Is anyone checking this issue?

Regards,
Adel



On Thu, Nov 3, 2016 at 2:57 PM +0100, "Adel Boutros" <Ad...@live.com>> wrote:

Jira issue created: https://issues.apache.org/jira/browse/PROTON-1340


Adel

________________________________
From: Adel Boutros <Ad...@live.com>
Sent: Thursday, November 3, 2016 10:55:07 AM
To: users@qpid.apache.org
Subject: [Proton-c] [0.14.0] [Visual Studio 2013] Exception when destroying the container_impl after using the event_loop

Hello,


On Windows using Visual Studio 2013, I am trying to use the proton::thread_safe::event_loop() to inject some user events and trigger actions on the messaging_handler.

It seems that when the proton::container_impl is being destroyed, I have an error in the pn_error_free method.


PS: I am using the patch provided by Cliff which changed a bit how pn_io_finalize works on Windows (https://issues.apache.org/jira/browse/PROTON-1336)


Error:

- error 0x000000000041af70 {text=0xbaadf00dbaadf00d <Error reading characters of string.> root=0xbaadf00dbaadf00d {...} ...}
- text 0xbaadf00dbaadf00d <Error reading characters of string.>
<Unable to read memory>


Stack trace:

  ntdll.dll!0000000076efba81() Unknown
  ntdll.dll!0000000076eaa249() Unknown
  ntdll.dll!0000000076f165e9() Unknown
  ntdll.dll!0000000076ee0a3b() Unknown
  kernel32.dll!0000000076d51a7a() Unknown
  msvcr120.dll!000007fef73569d8() Unknown
> qpid-proton.dll!pn_error_free(pn_error_t * error) Line 52 C++
  qpid-proton.dll!pn_io_finalize(void * obj) Line 99 C++
  qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void * object) Line 98 C++
  qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void * object) Line 98 C++
  qpid-proton-cpp.dll!proton::container_impl::~container_impl() Line 160 C++

Regards,

Adel

Re: [Proton-c] [0.14.0] [Visual Studio 2013] Exception when destroying the container_impl after using the event_loop

Posted by Adel Boutros <Ad...@live.com>.
Jira issue created: https://issues.apache.org/jira/browse/PROTON-1340


Adel

________________________________
From: Adel Boutros <Ad...@live.com>
Sent: Thursday, November 3, 2016 10:55:07 AM
To: users@qpid.apache.org
Subject: [Proton-c] [0.14.0] [Visual Studio 2013] Exception when destroying the container_impl after using the event_loop

Hello,


On Windows using Visual Studio 2013, I am trying to use the proton::thread_safe::event_loop() to inject some user events and trigger actions on the messaging_handler.

It seems that when the proton::container_impl is being destroyed, I have an error in the pn_error_free method.


PS: I am using the patch provided by Cliff which changed a bit how pn_io_finalize works on Windows (https://issues.apache.org/jira/browse/PROTON-1336)


Error:

- error 0x000000000041af70 {text=0xbaadf00dbaadf00d <Error reading characters of string.> root=0xbaadf00dbaadf00d {...} ...}
- text 0xbaadf00dbaadf00d <Error reading characters of string.>
<Unable to read memory>


Stack trace:

  ntdll.dll!0000000076efba81() Unknown
  ntdll.dll!0000000076eaa249() Unknown
  ntdll.dll!0000000076f165e9() Unknown
  ntdll.dll!0000000076ee0a3b() Unknown
  kernel32.dll!0000000076d51a7a() Unknown
  msvcr120.dll!000007fef73569d8() Unknown
> qpid-proton.dll!pn_error_free(pn_error_t * error) Line 52 C++
  qpid-proton.dll!pn_io_finalize(void * obj) Line 99 C++
  qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void * object) Line 98 C++
  qpid-proton.dll!pn_class_decref(const pn_class_t * clazz, void * object) Line 98 C++
  qpid-proton-cpp.dll!proton::container_impl::~container_impl() Line 160 C++

Regards,

Adel