<div dir="ltr">How frequently does this happen?<div><br></div><div>Is it something you can reliably reproduce?</div><div><br></div><div>-Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Dec 23, 2013 at 12:12 AM, Haster <span dir="ltr"><<a href="mailto:haster2004@yandex.ru" target="_blank">haster2004@yandex.ru</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi there!<br>
<br>
Today I have caught a bug that my program could not stop.<br>
I used a gdb and found that application was on recv method. Call stack:<br>
<br>
#0 �0x0000003435c0dc81 in recv () from /lib64/libpthread.so.0<br>
#1 �0x00002aaaad84ead1 in ?? () from<br>
/import/home/yury.alioshinov/linux_i686/5102/lib/librabbitmq_c.so.1.1.1<br>
#2 �0x00002aaaad84be83 in ?? () from<br>
/import/home/yury.alioshinov/linux_i686/5102/lib/librabbitmq_c.so.1.1.1<br>
#3 �0x00002aaaad84c19e in ?? () from<br>
/import/home/yury.alioshinov/linux_i686/5102/lib/librabbitmq_c.so.1.1.1<br>
#4 �0x00002aaaad84c72c in amqp_simple_wait_method ()<br>
� �from<br>
/import/home/yury.alioshinov/linux_i686/5102/lib/librabbitmq_c.so.1.1.1<br>
#5 �0x00002aaaad84cab6 in ?? () from<br>
/import/home/yury.alioshinov/linux_i686/5102/lib/librabbitmq_c.so.1.1.1<br>
#6 �0x00002aaaad84ce8a in amqp_login_with_properties ()<br>
� �from<br>
/import/home/yury.alioshinov/linux_i686/5102/lib/librabbitmq_c.so.1.1.1<br>
#7 �0x00002aaaad626313 in RabbitMQ::RabbitMQConnectionImpl::connect<br>
(this=0xfaf3a00, hostName=...,<br>
� � portNumber=<value optimized out>, userName=..., userPwd=...,<br>
heartbeat=0, vhost=...)<br>
� � at rabbitmq_source/rabbitmq_connector/RabbitMQConnectionImpl.cpp:115<br>
#8 �0x00002aaaad60d900 in rabbitmq_ns::consumer_impl::execute<br>
(this=0xb4579d8) at rabbitmq_source/rabbitmq_impl.cpp:823<br>
#9 �0x00002b25bdde1aa3 in threads::thread_proc (thr_ptr=0xb4579d8) at<br>
has_common_source/source/cpp/threads.cpp:225<br>
#10 0x0000003435c0673d in start_thread () from /lib64/libpthread.so.0<br>
#11 0x00000034350d40cd in clone () from /lib64/libc.so.6<br>
<br>
So, method login_with_properties is blocked, and there is some usecase where<br>
program execute amqp_send_header in amqp_login_inner without errors but<br>
can't get data from amqp_simple_wait_method.<br>
<br>
Maybe rabbitmq_c needs nonblock login method?<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-Infinite-wait-in-login-with-properties-function-tp32275.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-Infinite-wait-in-login-with-properties-function-tp32275.html</a><br>

Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br></div>