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

Jiri Daněk commented on PROTON-2271:
------------------------------------

And also, this. I turned on debug outputs by editing the test source for this 
run

{noformat}
threaderciser start: threads=8, time=1, actions=[listen, close-listen, connect, 
close-connect, wake, timeout, cancel-timeout]
(4e2ab80) [0x4e2e220] listen
(5a2c700) user_thread start
(5a2c700) [0x4e2d140] timeout
(622d700) proactor_thread start
(622d700) [0x4e2e220] listening on 0.0.0.0:36185
(622d700) [0x4e2fd90] connect
(5a2c700) [0x4e2fd90] wake
(6a2e700) user_thread start
(6a2e700) [0x4e2d140] cancel-timeout
(7a30700) user_thread start
(5a2c700) [0x4e2d140] timeout
(722f700) proactor_thread start
(7a30700) [0x4e39120] connect
(722f700) [0x4e3a590] listen
(6a2e700) [0x4e383c0] connect
(8231700) proactor_thread start
(5a2c700) [0x4e2d140] timeout
(722f700) [0x4e2d140] timeout
(8a32700) user_thread start
(5a2c700) [0x4e2e220] close-listen
(8231700) [0x4e3a590] listening on 0.0.0.0:43255
(7a30700) [0x4e4aa60] listen
==112964== Thread 8:
==112964== Invalid read of size 8
==112964==    at 0x4854D53: pn_listener_proactor (epoll.c:1970)
==112964==    by 0x4854E23: listener_begin_close (epoll.c:1784)
==112964==    by 0x485526C: pn_listener_close (epoll.c:1794)
==112964==    by 0x10AA95: lpool_close (threaderciser.c:313)
==112964==    by 0x10ACF3: global_do_stuff (threaderciser.c:381)
==112964==    by 0x10B009: user_thread (threaderciser.c:398)
==112964==    by 0x48D881E: start_thread (pthread_create.c:477)
==112964==    by 0x4A1D962: clone (in /usr/lib64/haswell/libc-2.31.so)
==112964==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==112964== 
==112964== 
==112964== Process terminating with default action of signal 11 (SIGSEGV): 
dumping core
==112964==  Access not within mapped region at address 0x0
==112964==    at 0x4854D53: pn_listener_proactor (epoll.c:1970)
==112964==    by 0x4854E23: listener_begin_close (epoll.c:1784)
==112964==    by 0x485526C: pn_listener_close (epoll.c:1794)
==112964==    by 0x10AA95: lpool_close (threaderciser.c:313)
==112964==    by 0x10ACF3: global_do_stuff (threaderciser.c:381)
==112964==    by 0x10B009: user_thread (threaderciser.c:398)
==112964==    by 0x48D881E: start_thread (pthread_create.c:477)
==112964==    by 0x4A1D962: clone (in /usr/lib64/haswell/libc-2.31.so)
==112964==  If you believe this happened as a result of a stack
==112964==  overflow in your program's main thread (unlikely but
==112964==  possible), you can try to increase the size of the
==112964==  main thread stack using the --main-stacksize= flag.
==112964==  The main thread stack size used in this run was 8388608.
{noformat}

> Valgrind failure in c_threaderciser test
> ----------------------------------------
>
>                 Key: PROTON-2271
>                 URL: https://issues.apache.org/jira/browse/PROTON-2271
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: build
>    Affects Versions: proton-c-0.31.0
>         Environment: Fedora 31
>            Reporter: Charles E. Rolke
>            Priority: Major
>
> From PROTON-2270 research
> {code:java}
> 7: Test timeout computed to be: 6000
> 7: threaderciser start: threads=8, time=1, actions=[listen, close-listen, 
> connect, close-connect, wake, timeout, cancel-timeout]
> 7: ==7576== 2,320 (1,408 direct, 912 indirect) bytes in 1 blocks are 
> definitely lost in loss record 148 of 156
> 7: ==7576==    at 0x483BB1A: calloc (vg_replace_malloc.c:760)
> 7: ==7576==    by 0x4854315: pn_listener (epoll.c:1617)
> 7: ==7576==    by 0x402C9C: listener_ctx_new (threaderciser.c:264)
> 7: ==7576==    by 0x402C9C: lpool_listen.part.0 (threaderciser.c:282)
> 7: ==7576==    by 0x40338B: lpool_listen (threaderciser.c:379)
> 7: ==7576==    by 0x40338B: global_do_stuff (threaderciser.c:379)
> 7: ==7576==    by 0x40360F: handle (threaderciser.c:414)
> 7: ==7576==    by 0x40360F: proactor_thread (threaderciser.c:476)
> 7: ==7576==    by 0x48D34E1: start_thread (pthread_create.c:479)
> 7: ==7576==    by 0x49ED6C2: clone (clone.S:95)
> 7: ==7576== 
> 7: ==7576== 95,957 (1,128 direct, 94,829 indirect) bytes in 1 blocks are 
> definitely lost in loss record 156 of 156
> 7: ==7576==    at 0x483980B: malloc (vg_replace_malloc.c:307)
> 7: ==7576==    by 0x402C94: listener_ctx_new (threaderciser.c:263)
> 7: ==7576==    by 0x402C94: lpool_listen.part.0 (threaderciser.c:282)
> 7: ==7576==    by 0x40338B: lpool_listen (threaderciser.c:379)
> 7: ==7576==    by 0x40338B: global_do_stuff (threaderciser.c:379)
> 7: ==7576==    by 0x40368F: user_thread (threaderciser.c:397)
> 7: ==7576==    by 0x48D34E1: start_thread (pthread_create.c:479)
> 7: ==7576==    by 0x49ED6C2: clone (clone.S:95)
> 7: ==7576== 
> 1/1 Test #7: c-threaderciser ..................***Failed    5.75 sec
> 0% tests passed, 1 tests failed out of 1
> Total Test time (real) =   5.76 sec
> The following tests FAILED:
>         7 - c-threaderciser (Failed)
> Errors while running CTest{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to