<div dir="ltr">Looks like something has incorrectly written to the amqp_pool_t memory pool (probably contained in the amqp_connection_state_t object). Without further information about the program I cannot help you much further.<div>
<br></div><div>-Alan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 30, 2014 at 2:16 AM, 椰风 <span dir="ltr"><<a href="mailto:1006798382@qq.com" target="_blank">1006798382@qq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span style="line-height:1.5">It looks like the pool </span><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">num_blocks (=</span><span style="background-color:rgb(247,247,247);font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">1342177400) <span style="line-height:0px"></span></span><span style="line-height:1.5">and blocklist(</span><span style="background-color:rgb(247,247,247);font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">0x7fb850000bb0) members of pages<span style="line-height:0px"></span></span><span style="line-height:1.5"> is incorrect.</span></div>
<div><span style="line-height:1.5">refer to,</span></div><div><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">$7 = {pagesize = 132577, pages = {num_blocks = 1342177400, blocklist = 0x7fb850000bb0}, large_blocks = {num_blocks = 0, blocklist = 0x0}, next_page = 0, alloc_block = 0x0, alloc_used = 0}<span style="line-height:0px"></span></span></div>
<div><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)"><br></span></div><div><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">platform: Centos 6.3 x86_64bits</span></div>
<div><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)"><br></span></div><div><span style="line-height:1.5">std output:</span></div><div><div><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">[push@zwjf-jpush-conn09-247115 conn_v1]</span><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">$ *** glibc detected *** /opt/push/bin/conn/conn_v1/tcp_interface_srv_v1: free(): invalid pointer: 0x00007fb8500214f8 ***</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">======= Backtrace: =========</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px"><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">/lib64/libc.so.6</span><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">[0x35dd676166]</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">/opt/push/lib64/librabbitmq.so.1(+0xf45d)</span><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">[0x7fb8804a145d]</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">/opt/push/lib64/librabbitmq.so.1(empty_amqp_pool+0x28)</span><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">[0x7fb8804a150a]</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">/opt/push/lib64/librabbitmq.so.1(amqp_destroy_connection+0x53)</span><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px">[0x7fb8804a082f]<span style="line-height:0px"></span></span></div>
<div><br></div><div>more detail:<br><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">#4 0x00007fb8804a145d in empty_blocklist (x=0x7fb850000e20) at /home/push/source/jim/jpush-server/server/external/src/rabbitmq-c-0.5.0/librabbitmq/amqp_mem.c:79</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">79 free(x->blocklist</span><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">[i]</span><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">);</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">(gdb) l</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">74 static void empty_blocklist(amqp_pool_blocklist_t *x)</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">75 {</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">76 int i;</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">77 </span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">78 for (i = 0; i < x->num_blocks; i++) { 79 free(x->blocklist[i]); 80 }</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">81 if (x->blocklist != NULL) { 82 free(x->blocklist); 83 }</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">(gdb) p *x</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">$5 = {num_blocks = 1342177400, blocklist = 0x7fb850000bb0}</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">(gdb) f 5</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">#5 0x00007fb8804a150a in empty_amqp_pool (pool=0x7fb850000e18) at /home/push/source/jim/jpush-server/server/external/src/rabbitmq-c-0.5.0/librabbitmq/amqp_mem.c:99</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">99 empty_blocklist(&pool->pages);</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">(gdb) l</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">94 }</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">95 </span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">96 void empty_amqp_pool(amqp_pool_t *pool)</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">97 { 98 recycle_amqp_pool(pool); 99 empty_blocklist(&pool->pages); 100 }</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">101 </span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">102 /* Returns 1 on success, 0 on failure */</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">103 static int record_pool_block(amqp_pool_blocklist_t *x, void *block)</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">(gdb) p pool->pages</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">$6 = {num_blocks = 1342177400, blocklist = 0x7fb850000bb0}</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">(gdb) p *pool</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">$7 = {pagesize = 132577, pages = {num_blocks = 1342177400, blocklist = 0x7fb850000bb0}, large_blocks = {num_blocks = 0, blocklist = 0x0}, next_page = 0, alloc_block = 0x0, alloc_used = 0}</span><br style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">
<span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)">(gdb)<span style="line-height:0px"></span></span></div><div><span style="font-family:arial,FreeSans,Helvetica,sans-serif;line-height:20px;background-color:rgb(247,247,247)"><br>
</span></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0"><br></div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list has moved to <a href="https://groups.google.com/forum/#!forum/rabbitmq-users" target="_blank">https://groups.google.com/forum/#!forum/rabbitmq-users</a>,<br>
please subscribe to the new list!<br>
<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>