[CRIU] [PATCH] zdtm/ptrace_sig: don't print from signal handlers

Cyrill Gorcunov gorcunov at gmail.com
Thu Jun 2 12:50:54 PDT 2016


On Thu, Jun 02, 2016 at 10:42:46PM +0300, Andrey Vagin wrote:
> It can be dead-lokced:
>  #0  0x00007fafbf49f6ac in __lll_lock_wait_private () from /lib64/libc.so.6
>  #1  0x00007fafbf44af1c in _L_lock_2460 () from /lib64/libc.so.6
>  #2  0x00007fafbf44ad57 in __tz_convert () from /lib64/libc.so.6
>  #3  0x00000000004022e2 in test_msg (format=0x404508 "Receive signal %d\n") at msg.c:51
>  #4  <signal handler called>
>  #5  0x00007fafbf3f2483 in __GI__IO_vfscanf () from /lib64/libc.so.6
>  #6  0x00007fafbf408f27 in vsscanf () from /lib64/libc.so.6
>  #7  0x00007fafbf4032f7 in sscanf () from /lib64/libc.so.6
>  #8  0x00007fafbf449ba6 in __tzset_parse_tz () from /lib64/libc.so.6
>  #9  0x00007fafbf44c4cb in __tzfile_compute () from /lib64/libc.so.6
>  #10 0x00007fafbf44ae17 in __tz_convert () from /lib64/libc.so.6
>  #11 0x00000000004022e2 in test_msg (format=format at entry=0x40458c "PASS\n") at msg.c:51
>  #12 0x0000000000401ceb in main (argc=<optimized out>, argv=<optimized out>) at ptrace_sig.c:172
> 
> https://jira.sw.ru/browse/PSBM-47772
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
Tested-by: Cyrill Gorcunov <gorcunov at openvz.org>

Thank you!


More information about the CRIU mailing list