zathizh / rcf-cpp

Automatically exported from code.google.com/p/rcf-cpp
0 stars 0 forks source link

Stack Overflow in Windows using ping-back #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Establish a connection with ping-backs
2. Make a remote call to a long-running method
3. Wait

What is the expected output? What do you see instead?

Instead of running to completion, runaway recursion causes a stack overflow to 
occur long into waiting.

What version of the product are you using? On what operating system?

RCF 1.3 (I believe 1.2 had some ping-back issues so I'm not using 1.3)
This only occurred for me on Windows (Vista, MSVC 2008); maybe Linux (Ubuntu 
9.04) just allocated a larger stack though.

Please provide any additional information below.

See the attached source which I ran to produce the issue.  It's based off the 
ping-back demo snippets given in the user guide with some slight embellishments 
which reflect my actual application more closely (but shouldn't affect the 
issue).

Original issue reported on code.google.com by msleg...@llminc.com on 5 Jan 2011 at 4:39

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for reporting this - it's now fixed. The attached patch can be applied 
to RCF 1.3, and will prevent the stack recursion.

Original comment by jarl.lin...@gmail.com on 7 Jan 2011 at 12:20

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the quick turnaround!  This patch did the trick.  Keep up the good 
work :)

Original comment by msleg...@llminc.com on 7 Jan 2011 at 4:44