#5576 closed defect (fixed)

CtrlAgentCommandMgrTest freeze from time to time on various systems

Reported by: wlodekwencel Owned by: marcin
Priority: low Milestone: Kea1.4-final
Component: Unclassified Version: git
Keywords: Cc:
CVSS Scoring: Parent Tickets:
Sensitive: no Defect Severity: N/A
Sub-Project: DHCP Feature Depending on Ticket:
Estimated Difficulty: 0 Add Hours to Ticket: 0
Total Hours: 0 Internal?: no

Description

Two tests sometimes hang: CtrlAgentCommandMgrTest?.forwardToDHCPv6Server and CtrlAgentCommandMgrTest?.forwardToBothDHCPServers

[----------] 11 tests from CtrlAgentCommandMgrTest
[ RUN      ] CtrlAgentCommandMgrTest.bogus
[       OK ] CtrlAgentCommandMgrTest.bogus (0 ms)
[ RUN      ] CtrlAgentCommandMgrTest.listCommands
[       OK ] CtrlAgentCommandMgrTest.listCommands (0 ms)
[ RUN      ] CtrlAgentCommandMgrTest.forwardToDHCPv4Server
[       OK ] CtrlAgentCommandMgrTest.forwardToDHCPv4Server (2 ms)
[ RUN      ] CtrlAgentCommandMgrTest.forwardToDHCPv6Server
Build was aborted

I had to aport build on jenkins on various systems.

  • March 15:

FreeBSD 10.3 and 11:
https://jenkins.isc.org/job/Kea-multiconfig-build/BOOST=boost158,WERROR=--with-werror=no,slaves=freebsd11-64/363/console
https://jenkins.isc.org/job/Kea-multiconfig-build/BOOST=boost,WERROR=--with-werror=no,slaves=freebsd104-64/363/console

  • March 1:

Fedora25
https://jenkins.isc.org/job/Kea-multiconfig-build/359/BOOST=boost158,WERROR=--with-werror=no,slaves=fedora25-i686-1/console

  • February 1:

Fedora27
https://jenkins.isc.org/job/Kea-multiconfig-build/355/BOOST=boost,WERROR=--with-werror=no,slaves=fedora27-32-1/console

  • January 24:

Freebsd11
https://jenkins.isc.org/job/Kea-multiconfig-build/348/BOOST=boost158,WERROR=--with-werror=no,slaves=freebsd11-64/console

Subtickets

Change History (16)

comment:1 Changed 15 months ago by wlodekwencel

Also we had seg fault:

[----------] 11 tests from CtrlAgentCommandMgrTest
[ RUN      ] CtrlAgentCommandMgrTest.bogus
[       OK ] CtrlAgentCommandMgrTest.bogus (0 ms)
[ RUN      ] CtrlAgentCommandMgrTest.listCommands
[       OK ] CtrlAgentCommandMgrTest.listCommands (0 ms)
[ RUN      ] CtrlAgentCommandMgrTest.forwardToDHCPv4Server
[       OK ] CtrlAgentCommandMgrTest.forwardToDHCPv4Server (2 ms)
[ RUN      ] CtrlAgentCommandMgrTest.forwardToDHCPv6Server
[       OK ] CtrlAgentCommandMgrTest.forwardToDHCPv6Server (1 ms)
[ RUN      ] CtrlAgentCommandMgrTest.forwardToBothDHCPServers
/bin/sh: line 5: 30366 Segmentation fault      (core dumped) /bin/sh ../../../../libtool --mode=execute ${dir}$tst
FAIL: ca_unittests

https://jenkins.isc.org/job/Kea-multiconfig-build/BOOST=boost158,WERROR=--with-werror=no,slaves=fedora27-32-1/364/parsed_console/

comment:2 Changed 15 months ago by fdupont

I opened a ticket about this kind of crashes (so you can also add macOS to the list).

comment:4 Changed 15 months ago by tomek

  • Milestone changed from Kea-proposed to Kea1.4
  • Priority changed from medium to low

As discussed on 2018-03-29 call, accepting in 1.4 as low.

comment:9 Changed 14 months ago by tomek

  • Milestone changed from Kea1.4 to Kea1.4-final

As discussed on 2018-04-26 call, moving low and some med priority tickets to 1.4-final.

comment:12 Changed 13 months ago by marcin

  • Owner set to marcin
  • Status changed from new to accepted

comment:13 Changed 13 months ago by marcin

  • Owner changed from marcin to UnAssigned
  • Status changed from accepted to reviewing

I was able to reproduce those hangs on Fedora 27 by running the forward tests in the loop multiple times. I now applied several fixes which improved the situation. The tests being run in the loop do not hang anymore.

Proposed ChangeLog entry:

14XX.	[bug]		marcin
	Fixed multiple hanging Control Agent unittests.
	(Trac #5576, git cafe)

comment:15 Changed 13 months ago by fdupont

  • Owner changed from UnAssigned to marcin

Code seems good. Still work on my macOS... IMHO we should merge this and if we get new problems reopen it or create a new one.

comment:16 Changed 13 months ago by marcin

  • Resolution set to fixed
  • Status changed from reviewing to closed

Merged with commit 310af68101cba74220652ec2b403520fc5666dc0

Note: See TracTickets for help on using tickets.