uperl / NewRelic-Agent-FFI

Perl Agent for NewRelic APM
0 stars 0 forks source link

t/newrelic_agent_ffi_procedural.t hangs on some systems #3

Open eserte opened 5 years ago

eserte commented 5 years ago

Especially on my debian/jessie smoker the test suite hangs. pstree shows the following situation:

perl,19601 t/newrelic_agent_ffi_procedural.t
  `-{perl},19617

strace shows that both process wait on a futex:

$ strace -p 19601  
Process 19601 attached
futex(0x26f1ef0, FUTEX_WAIT_PRIVATE, 2, NULL
$ strace -p 19617
Process 19617 attached
futex(0x26f1ecc, FUTEX_WAIT_PRIVATE, 3, NULL
plicease commented 5 years ago

I haven't been able to reproduce this yet. I added jessie to the CI for this distro (https://travis-ci.org/plicease/NewRelic-Agent-FFI), and it is passing. I develop in stretch and it works (stretch doesn't have the right ssl libraries, but it was upgraded from jessie, so has the jessie ssl libs in addition to the newer stretch ssl libs). There isn't an explicit fork in the .t or the .pm for this distro, (but the newrelic .so is decidedly pretty opaque admittedly) so I am not sure why there is two processes? Are there any details you can give me as to how your environment might be different from mine?