You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@zookeeper.apache.org by 蒋明江 <mi...@aliyun-inc.com> on 2013/12/09 03:53:41 UTC

答复:i has a bug to report, it will core dump in zookeeper 3.3.3

I have see the source code, in zookeeper.c 2056~2079:
if sc->u.str.str_len is 0, then '\0' will not be set. so when deallocate_CreateResponse(&res) (this function will free the string sc->u.str.str) it will core.I think it is a bug.
------------------------------------------------------------------
发件人:蒋明江 <mi...@aliyun-inc.com>
发送时间:2013年12月9日(星期一) 09:42
收件人:user <us...@zookeeper.apache.org>
主 题:答复: i has a bug to report, it will core dump in zookeeper 3.3.3


font-family: simsun;panose-1: 2 1 6 0 3 1 1 1 1 1;font-family: cambria math;panose-1: 2 4 5 3 5 4 6 3 2 4;font-family: calibri;panose-1: 2 15 5 2 2 2 4 3 2 4;font-family: simsun;panose-1: 2 1 6 0 3 1 1 1 1 1;p.msonormal, li.msonormal, div.msonormal {margin: 0.0cm;margin-bottom: 1.0E-4pt;text-align: justify;text-justify: inter-ideograph;font-size: 10.5pt;font-family: calibri , sans-serif;}
a:link, span.msohyperlink {mso-style-priority: 99;color: blue;text-decoration: underline;}
a:visited, span.msohyperlinkfollowed {mso-style-priority: 99;color: purple;text-decoration: underline;}
span.emailstyle17 {mso-style-type: personal;font-family: calibri , sans-serif;color: windowtext;}
span.emailstyle18 {mso-style-type: personal;font-family: calibri , sans-serif;color: #1f497d;}
span.emailstyle19 {mso-style-type: personal-reply;font-family: calibri , sans-serif;color: #1f497d;}
*.msochpdefault {mso-style-type: export-only;font-size: 10.0pt;}
size: 612.0pt 792.0pt;margin: 72.0pt 90.0pt 72.0pt 90.0pt;div.wordsection1 {page: wordsection1;}
Is anybody can help to solve it.Thanks very much! 发件人: mingjiang.jiangmj [mailto:mingjiang.jiangmj@aliyun-inc.com] 
发送时间: 2013年12月6日 20:09
收件人: 'mingjiang.jiangmj'; user@zookeeper.apache.org
主题: i has a bug to report, it will core dump in zookeeper 3.3.3  The stack is:#0  0x0000003a43030265 in raise () from /lib64/libc.so.6(gdb) bt#0  0x0000003a43030265 in raise () from /lib64/libc.so.6#1  0x0000003a43031d10 in abort () from /lib64/libc.so.6#2  0x0000003a4306a84b in __libc_message () from /lib64/libc.so.6#3  0x0000003a43072856 in free () from /lib64/libc.so.6#4  0x00002b519707dea1 in deallocate_String () from /home/admin/swift_mainse_pre/depends/run/usr/lib64/libzookeeper_mt.so.2#5  0x00002b519707d204 in zookeeper_process () from /home/admin/swift_mainse_pre/depends/run/usr/lib64/libzookeeper_mt.so.2#6  0x00002b51970833bf in ?? () from /home/admin/swift_mainse_pre/depends/run/usr/lib64/libzookeeper_mt.so.2#7  0x0000003a43c064a7 in start_thread () from /lib64/libpthread.so.0#8  0x0000003a430d3c2d in clone () from /lib64/libc.so.6 Before there is a lot of error log:2013-09-15 17:36:10,521:20186(0x57e36940):ZOO_INFO@log_env@671: Client environment:os.version=#1 SMP Tue Aug 18 15:51:48 EDT 20092013-09-15 17:36:10,521:20186(0x57e36940):ZOO_INFO@log_env@679: Client environment:user.name=(null)2013-09-15 17:36:10,521:20186(0x57e36940):ZOO_INFO@log_env@687: Client environment:user.home=/home/admin2013-09-15 17:36:10,521:20186(0x57e36940):ZOO_INFO@log_env@699: Client environment:user.dir=/home/admin/swift_mainse_pre/worker/broker2013-09-15 17:36:10,521:20186(0x57e36940):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=10.246.2.166:12181,10.246.2.167:12181,10.246.2.168:12181,10.2\46.2.169:12181 sessionTimeout=10000 watcher=0x2b5195a723f0 sessionId=0 sessionPasswd=<null> context=0xe99a470 flags=02013-09-15 17:36:10,521:20186(0x56d37940):ZOO_INFO@check_events@1587: initiated connection to server [10.246.2.166:12181]2013-09-15 17:36:10,522:20186(0x56d37940):ZOO_WARN@recv_buffer@1039: Recv returns 0, error:2013-09-15 17:36:10,522:20186(0x56d37940):ZOO_ERROR@handle_socket_error_msg@1605: Socket [10.246.2.166:12181] zk retcode=-4, errno=112(Host is down): failed while rece\iving a server response2013-09-15 17:36:10,522:20186(0x56d37940):ZOO_INFO@check_events@1587: initiated connection to server [10.246.2.168:12181]2013-09-15 17:36:10,524:20186(0x56d37940):ZOO_WARN@recv_buffer@1039: Recv returns 0, error:2013-09-15 17:36:10,524:20186(0x56d37940):ZOO_ERROR@handle_socket_error_msg@1605: Socket [10.246.2.168:12181] zk retcode=-4, errno=112(Host is down): failed while rece\iving a server response2013-09-15 17:36:10,524:20186(0x56d37940):ZOO_INFO@check_events@1587: initiated connection to server [10.246.2.167:12181]2013-09-15 17:36:10,525:20186(0x56d37940):ZOO_WARN@recv_buffer@1039: Recv returns 0, error:2013-09-15 17:36:10,525:20186(0x56d37940):ZOO_ERROR@handle_socket_error_msg@1605: Socket [10.246.2.167:12181] zk retcode=-4, errno=112(Host is down): failed while rece\iving a server response2013-09-15 17:36:10,525:20186(0x56d37940):ZOO_INFO@check_events@1587: initiated connection to server [10.246.2.169:12181]2013-09-15 17:36:10,526:20186(0x56d37940):ZOO_WARN@recv_buffer@1039: Recv returns 0, error:2013-09-15 17:36:10,526:20186(0x56d37940):ZOO_ERROR@handle_socket_error_msg@1605: Socket [10.246.2.169:12181] zk retcode=-4, errno=112(Host is down): failed while rece\iving a server response2013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@zookeeper_close@2338: Freeing zookeeper resources for sessionId=0 2013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@log_env@658: Client environment:zookeeper.version=zookeeper C client 3.3.52013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@log_env@662: Client environment:host.name=s008002.cm62013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@log_env@669: Client environment:os.name=Linux2013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@log_env@670: Client environment:os.arch=2.6.18-164.el52013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@log_env@671: Client environment:os.version=#1 SMP Tue Aug 18 15:51:48 EDT 20092013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@log_env@679: Client environment:user.name=(null)2013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@log_env@687: Client environment:user.home=/home/admin2013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@log_env@699: Client environment:user.dir=/home/admin/swift_mainse_pre/worker/broker2013-09-15 17:36:10,606:20186(0x2b5198c71740):ZOO_INFO@zookeeper_init@727: Initiating client connection, host=10.246.2.166:12181,10.246.2.167:12181,10.246.2.168:12181,\10.246.2.169:12181 sessionTimeout=10000 watcher=0x2b5195a723f0 sessionId=0 sessionPasswd=<null> context=0x7fff936196e0 flags=02013-09-15 17:36:10,606:20186(0x59238940):ZOO_INFO@check_events@1587: initiated connection to server [10.246.2.169:12181]2013-09-15 17:36:10,608:20186(0x59238940):ZOO_INFO@check_events@1634: session establishment complete on server [10.246.2.169:12181], sessionId=0x94120fa34ac0005, negot\iated timeout=10000*** glibc detected *** /home/admin/swift_mainse_pre/binary/bin/swift_broker: munmap_chunk(): invalid pointer: 0x0000003a43c0a9f0 ***