<div dir="ltr">Have you tried running it under a debugger to see where its segfaulting?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 2:14 AM, Rohit Patle <span dir="ltr">&lt;<a href="mailto:rohitpatle86@gmail.com" target="_blank">rohitpatle86@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Sir,<br><br>I am trying to implement &quot;amqp_basic_reject&quot; in my amqp_listen.c example.<br>
<br>My requirement is I need to reject the message if it is taking more then 10 sec from &quot;amqp_sendstring.c&quot;. I design &quot;amqp_sendstring.c&quot; in a way that, it sending two msg to listner one at less then 10 sec and anther one is more then 10 sec. first msg I am received properly as<br>

<br>It took 5 seconds to receive the data from client<br>Frame type 1, channel 1<br>Method AMQP_BASIC_DELIVER_METHOD<br>Delivery 1, exchange amq.direct routingkey test<br>Got the frame in right time ...!<br>Content-type: text/plain<br>

----<br>00000000: 43 48 49 4C 44 20 50 52 : 4F 43 45 53 53���������� CHILD PROCESS<br>0000000D:<br><br><br>But I second case:<br><br>It took 11 seconds to receive the data from client<br>Frame type 1, channel 1<br>Method AMQP_BASIC_DELIVER_METHOD<br>

Delivery 2, exchange amq.direct routingkey test<br>reject executed...!<br>Result 0<br>It took 0 seconds to receive the data from client<br>Frame type 2, channel 1<br>Method AMQP_BASIC_DELIVER_METHOD<br>Segmentation fault (core dumped)<br>

<br>Here in second case the Frame type is changing to 2. and segmentation fault is occurring. I am unable to figure out how the Frame type 2 is coming???<br><br>Please help !!<br><br clear="all"><div>Thank &amp; Regards,<br>

Rohit<br><br></div>
</div>
<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>
<br></blockquote></div><br></div>