zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piyush Kansal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-2928) pthread_join hang at zookeeper_close
Date Mon, 02 Apr 2018 21:12:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-2928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16423146#comment-16423146
] 

Piyush Kansal commented on ZOOKEEPER-2928:
------------------------------------------

I am also hitting the exact same issue on 3.4.8 via python client. Here is the stack trace:
{code:java}
$ sudo strace -p 30368
sudo: unable to resolve host ip-10-3-76-130
strace: Process 30368 attached
futex(0x7fd7516b69d0, FUTEX_WAIT, 30375, NULL{code}
{code:java}
(gdb) attach 30368
Attaching to process 30368
[New LWP 30373]
[New LWP 30375]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007fd75736d98d in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0
(gdb) bt
#0 0x00007fd75736d98d in pthread_join () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007fd753681cec in adaptor_finish (zh=0x2f1d920) at src/mt_adaptor.c:293
#2 0x00007fd75367cf0c in zookeeper_close (zh=0x2f1d920) at src/zookeeper.c:2514
#3 0x00007fd753670c27 in pyzoo_close (self=<optimized out>, args=<optimized out>)
at src/c/zookeeper.c:1293
#4 0x00000000004c45fa in PyEval_EvalFrameEx ()
#5 0x00000000004c9d7f in PyEval_EvalFrameEx ()
#6 0x00000000004c9d7f in PyEval_EvalFrameEx ()
#7 0x00000000004c9d7f in PyEval_EvalFrameEx ()
#8 0x00000000004c9d7f in PyEval_EvalFrameEx ()
#9 0x00000000004c9d7f in PyEval_EvalFrameEx ()
#10 0x00000000004c2705 in PyEval_EvalCodeEx ()
#11 0x00000000004c24a9 in PyEval_EvalCode ()
#12 0x00000000004f19ef in ?? ()
#13 0x00000000004ec372 in PyRun_FileExFlags ()
#14 0x00000000004eaaf1 in PyRun_SimpleFileExFlags ()
#15 0x000000000049e208 in Py_Main ()
#16 0x00007fd756fbb830 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#17 0x000000000049da59 in _start ()
{code}

> pthread_join  hang at zookeeper_close
> -------------------------------------
>
>                 Key: ZOOKEEPER-2928
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2928
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.4.6
>            Reporter: xiaomingzhongguo
>            Priority: Critical
>
> when call zookeeper_close 
> thread hang at pthread_join ,  do_io thread not exist , and do_completion not exit 
> #0  0x00002b8e38b6b725 in pthread_join () from /lib64/libpthread.so.0
> #1  0x0000000000cc6b86 in adaptor_finish (zh=0x2aaaaae05240) at src/mt_adaptor.c:285
> #2  0x0000000000cc21f3 in zookeeper_close (zh=0x2aaaaae05240) at src/zookeeper.c:2493
> #3  0x00000000008eeb04 in ZkAPI::ZkClose ()
> #4  0x00000000009270b1 in AgentInfo::zkCloseConnection ()
> #5  0x0000000000929e02 in AgentInfo::timeSyncHandler ()
> #6  0x00000000010f0585 in event_base_loop (base=0x1679d00, flags=0) at event.c:1350
> #7  0x0000000000924f31 in AgentInfo::run ()
> #8  0x00000000008998bf in gseThread::run_helper ()
> #9  0x0000000000922956 in tos::util_thread_start ()
> #10 0x00002b8e38b6a193 in start_thread () from /lib64/libpthread.so.0
> #11 0x00002b8e3929ff0d in clone () from /lib64/libc.so.6
> #0  0x00002b8e38b6e326 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
> #1  0x0000000000cc70be in do_completion (v=0x2aaaaae05240) at src/mt_adaptor.c:463
> #2  0x00002b8e38b6a193 in start_thread () from /lib64/libpthread.so.0
> #3  0x00002b8e3929ff0d in clone () from /lib64/libc.so.6
> #4  0x0000000000000000 in ?? ()



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message