#355 Failed test 'getaddrinfo' in regress_util.c:972

For_2.0
open
nobody
solaris (1)
5
2015-09-22
2015-05-07
No

I am currently building libevent 2.0.22 on Solaris 10 Sparc with Sun Studio 12 and get the following failing test:

gmake[4]: Entering directory '/home/dam/mgar/pkg/libevent2/trunk/work/solaris10-sparc/build-isa-sparcv8plus/libevent-2.0.22-stable/test'
Running tests:
EVPORT
 test-eof: OKAY
 test-weof: OKAY
 test-time: OKAY
 test-changelist: OKAY
 regress: 
  NOTE regress.c:2363: evport can't pass this in 2.0; skipping
util/getaddrinfo: 
  FAIL regress_util.c:972: assert(a)
  [getaddrinfo FAILED]
1/177 TESTS FAILED. (2 skipped)
FAILED
KQUEUE
Skipping test
EPOLL
Skipping test
EPOLL (changelist)
Skipping test
DEVPOLL
 test-eof: OKAY
 test-weof: OKAY
 test-time: OKAY
 test-changelist: OKAY
 regress: util/getaddrinfo: 
  FAIL regress_util.c:972: assert(a)
  [getaddrinfo FAILED]
1/178 TESTS FAILED. (1 skipped)
FAILED
POLL
 test-eof: OKAY
 test-weof: OKAY
 test-time: OKAY
 test-changelist: OKAY
 regress: util/getaddrinfo: 
  FAIL regress_util.c:972: assert(a)
  [getaddrinfo FAILED]
1/178 TESTS FAILED. (1 skipped)
FAILED
SELECT
 test-eof: OKAY
 test-weof: OKAY
 test-time: OKAY
 test-changelist: OKAY
 regress: util/getaddrinfo: 
  FAIL regress_util.c:972: assert(a)
  [getaddrinfo FAILED]
1/178 TESTS FAILED. (1 skipped)
FAILED
WIN32
Skipping test
FAIL: test-script.sh

Discussion

  • Richard PALO

    Richard PALO - 2015-06-07

    FWIW - I get the same error on recent illumos(under omnios) with gcc (using 4.9.2 on pkgsrc).

     
  • Richard PALO

    Richard PALO - 2015-06-07

    just for info, if I patch regress_util.c with:

    @@ -969,7 +968,7 @@ test_evutil_getaddrinfo(void *arg)
        hints.ai_flags = EVUTIL_AI_NUMERICHOST;
        r = evutil_getaddrinfo("1.2.3.4", NULL, &hints, &ai);
        tt_int_op(r, ==, 0);
    -   a = ai_find_by_protocol(ai, IPPROTO_TCP);
    +   a = ai_find_by_protocol(ai, IPPROTO_IP);
        tt_assert(a);
        test_ai_eq(a, "1.2.3.4", SOCK_STREAM, IPPROTO_TCP);
        a = ai_find_by_protocol(ai, IPPROTO_UDP);
    

    regress will provide some more info:

    util/getaddrinfo: [forking] 
      FAIL regress_util.c:777: assert(ai->ai_socktype == socktype): 0 vs 2
      FAIL regress_util.c:819: Test failed on line 973
      [getaddrinfo FAILED]
    

    is it possible that the test program is making improper assumptions,
    or even valid ones that solaris isn't correctly providing...

     
  • Richard PALO

    Richard PALO - 2015-09-19
     
    Last edit: Richard PALO 2015-09-19
  • Dagobert Michelsen

    There have been 3 attachments from Richard which are now gone (?!?):

    Here are my lastest patches for this issue on 2.0.22
    patch-config.h.in (386 Bytes; application/octet-stream)
    patch-configure (709 Bytes; application/octet-stream)
    patch-evutil__rand.c (391 Bytes; text/x-csrc)

    Is there a way we can get these back so I can test them?

    Best regards -- Dago

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks