Opened 2 years ago

Closed 13 months ago

#25791 closed defect (wontfix)

test_util_fgets_eagain fails on FreeBSD 0.2.9

Reported by: mikeperry Owned by:
Priority: Medium Milestone: Tor: unspecified
Component: Core Tor/Tor Version: Tor:
Severity: Normal Keywords: jenkins, regression, ci-fail, tor-ci-fail
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


It looks like on FreeBSD, this test is failing because fgets is returning NULL upon EAGAIN:

09:31:49 util/fgets_eagain: 
09:31:49   FAIL ../tor/src/test/test_util.c:3963: assert(retptr OP_EQ buf): 0x0 vs 0x7fffffffe404

That test block is:

  /* Send in a partial line */
  retlen = write(test_pipe[1], "A", 1);
  tt_int_op(retlen, OP_EQ, 1);
  retptr = fgets(buf, sizeof(buf), test_stream);
  tt_int_op(errno, OP_EQ, EAGAIN);
  tt_ptr_op(retptr, OP_EQ, buf);
  tt_str_op(buf, OP_EQ, "A");
  errno = 0;

This test appears absent on 0.3.3 now. I'm not sure what this failure means here. Is FreeBSD just different, or is this an actual issue?

Child Tickets

Change History (5)

comment:1 Changed 2 years ago by mikeperry

Keywords: jenkins added

comment:2 Changed 2 years ago by teor

Keywords: regression added
Milestone: Tor: 0.2.9.x-finalTor: unspecified
Version: Tor:

comment:3 Changed 13 months ago by mikeperry

Keywords: ci-fail added

comment:4 Changed 13 months ago by mikeperry

Keywords: tor-ci-fail added

comment:5 Changed 13 months ago by mikeperry

Resolution: wontfix
Status: newclosed

This is an ancient CI-specific bug that only applies to 0.2.9, and the fix is not simple.

Note: See TracTickets for help on using tickets.