Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 647168

Summary: net-dns/rbldnsd-0.998-r2 : [TEST] ERROR: test_exclusion (test_ip4trie.TestIp4TrieDataset)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Michael Orlitzky <mjo>
Status: RESOLVED FIXED    
Severity: normal Keywords: TESTFAILURE
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/spamhaus/rbldnsd/issues/5
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-dns:rbldnsd-0.998-r2:20180209-130322.log
temp.tbz2

Description Toralf Förster gentoo-dev 2018-02-09 20:18:56 UTC
======================================================================
ERROR: test_exclusion (test_ip4trie.TestIp4TrieDataset)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/net-dns/rbldnsd-0.998-r2/work/rbldnsd-0.998/test_ip4trie.py", line 25, in test_exclusion

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-systemd_abi32+64-test_20180203-182621

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)

java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv net-dns/rbldnsd
[ebuild  N    ] net-dns/rbldnsd-0.998-r2  USE="ipv6 zlib {-test}"
Comment 1 Toralf Förster gentoo-dev 2018-02-09 20:19:00 UTC
Created attachment 518856 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-09 20:19:03 UTC
Created attachment 518858 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-02-09 20:19:06 UTC
Created attachment 518860 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-02-09 20:19:09 UTC
Created attachment 518862 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-02-09 20:19:12 UTC
Created attachment 518864 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-02-09 20:19:16 UTC
Created attachment 518866 [details]
net-dns:rbldnsd-0.998-r2:20180209-130322.log
Comment 7 Toralf Förster gentoo-dev 2018-02-09 20:19:19 UTC
Created attachment 518868 [details]
temp.tbz2
Comment 8 Michael Orlitzky gentoo-dev 2018-02-09 21:14:36 UTC
Hmmm the real error is here:

  OK
  =============================================================
  Running tests.py
  ....rbldnsd: unknown address family (10)

I think that's INET6. Was your python-2.7 built with IPv6? How about your kernel?
Comment 9 Michael Orlitzky gentoo-dev 2018-02-09 22:12:47 UTC
Strange, I've built both python and a kernel without ipv6 and things seem to work as intended. The error comes from this code:

  static inline int sockaddr_equal(const struct sockaddr *addr1,
                                   const struct sockaddr *addr2)
  {
    if (addr1->sa_family != addr2->sa_family)
      return 0;
    switch (addr1->sa_family) {
    case AF_INET:
      return sockaddr_in_equal((const struct sockaddr_in *)addr1,
                               (const struct sockaddr_in *)addr2);
  #ifndef NO_IPv6
      return sockaddr_in6_equal((const struct sockaddr_in6 *)addr1,
                                (const struct sockaddr_in6 *)addr2);
  #endif
      default:
        error(0, "unknown address family (%d)", addr1->sa_family);
    }
  }

and it looks to me like there's a missing "case AF_INET6" there. I'll ping upstream. Thanks!
Comment 10 Michael Orlitzky gentoo-dev 2018-05-17 12:36:31 UTC
I still can't reproduce this, so we're guessing, but... maybe this fixes it?

https://github.com/spamhaus/rbldnsd/commit/61683f48b2216ed61a69b98a7e5f765a2c0966b3
Comment 11 Michael Orlitzky gentoo-dev 2018-08-09 00:18:05 UTC
Does this still happen when you try to build rbldnsd? If so, can you try it with the patch in Comment 10?

I did find something weird, and upstream fixed it, but neither of us were able to reproduce the original failure so we can't tell if it's really gone.
Comment 12 Toralf Förster gentoo-dev 2018-08-12 08:58:41 UTC
(In reply to Michael Orlitzky from comment #11)
seems to bbe fixed in the mean while
Comment 13 Michael Orlitzky gentoo-dev 2018-08-12 12:11:12 UTC
(In reply to Toralf Förster from comment #12)
> (In reply to Michael Orlitzky from comment #11)
> seems to bbe fixed in the mean while

Ok, thanks. If it ever pops up again, we'll have a patch ready to test =)