make check errors for varnish 2.0.5 on Solaris 10

Jim Hayter jhayter at manta.com
Mon Dec 14 16:36:15 CET 2009


System is Solaris 10 on intel hardware.

root # uname -a
SunOS ecnext39 5.10 Generic_138889-08 i86pc i386 i86pc

I made the following change based on a fix I found for Solaris:
lib/libvarnish/tcp.c, line 245
	change AZ(setsockopt(sock, SOL_SOCKET, SO_LINGER, &lin, sizeof lin)); to setsockopt(sock, SOL_SOCKET, SO_LINGER, &lin, sizeof lin);


'make check' reports 9 of 143 tests failed.

The output for the failed tests is below.  I can provide the complete 'make check' output if it is useful.

Thanks,
Jim



#    top  TEST ././tests/b00020.vtc starting
#    TEST Check the between_bytes_timeout behaves from parameters
##   s1   Starting server
###  s1   listen on 127.0.0.1:9080 (fd 3)
##   v1   Launch
##   s1   Started on 127.0.0.1:9080
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid 
###  v1   opening CLI connection
###  v1   CLI connection fd = 5
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   CLI 200 <param.set between_bytes_timeout 1>
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 9
###  c1   rxresp
###  s1   Accepted socket fd is 4
###  s1   rxreq
###  s1   delaying 1.5 second(s)
###  s1   shutting fd 4
##   s1   Ending
---- c1   EXPECT resp.status (200) == 503 (503) failed
---- TEST FILE: ././tests/b00020.vtc
---- TEST DESCRIPTION: Check the between_bytes_timeout behaves from parameters
FAIL: ./tests/b00020.vtc
#    top  TEST ././tests/b00021.vtc starting
#    TEST Check the between_bytes_timeout behaves from vcl
##   s1   Starting server
###  s1   listen on 127.0.0.1:9080 (fd 3)
##   v1   Launch
##   s1   Started on 127.0.0.1:9080
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid 
###  v1   opening CLI connection
###  v1   CLI connection fd = 5
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 9
###  c1   rxresp
###  s1   Accepted socket fd is 4
###  s1   rxreq
###  s1   delaying 1.5 second(s)
###  s1   shutting fd 4
##   s1   Ending
---- c1   EXPECT resp.status (200) == 503 (503) failed
---- TEST FILE: ././tests/b00021.vtc
---- TEST DESCRIPTION: Check the between_bytes_timeout behaves from vcl
FAIL: ./tests/b00021.vtc
#    top  TEST ././tests/b00022.vtc starting
#    TEST Check the between_bytes_timeout behaves from backend definition
##   s1   Starting server
###  s1   listen on 127.0.0.1:9080 (fd 3)
##   v1   Launch
##   s1   Started on 127.0.0.1:9080
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid 
###  v1   opening CLI connection
###  v1   CLI connection fd = 5
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 9
###  c1   rxresp
###  s1   Accepted socket fd is 4
###  s1   rxreq
###  s1   delaying 1.5 second(s)
###  s1   shutting fd 4
##   s1   Ending
---- c1   EXPECT resp.status (200) == 503 (503) failed
---- TEST FILE: ././tests/b00022.vtc
---- TEST DESCRIPTION: Check the between_bytes_timeout behaves from backend definition
FAIL: ./tests/b00022.vtc
#    top  TEST ././tests/b00023.vtc starting
#    TEST Check that the first_byte_timeout works from parameters
##   s1   Starting server
###  s1   listen on 127.0.0.1:9080 (fd 3)
##   v1   Launch
##   s1   Started on 127.0.0.1:9080
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid 
###  v1   opening CLI connection
###  v1   CLI connection fd = 5
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   CLI 200 <param.set first_byte_timeout 1>
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 9
###  c1   rxresp
###  s1   Accepted socket fd is 4
###  s1   rxreq
###  s1   delaying 1.5 second(s)
###  s1   shutting fd 4
##   s1   Ending
---- c1   EXPECT resp.status (200) == 503 (503) failed
---- TEST FILE: ././tests/b00023.vtc
---- TEST DESCRIPTION: Check that the first_byte_timeout works from parameters
FAIL: ./tests/b00023.vtc
#    top  TEST ././tests/b00024.vtc starting
#    TEST Check that the first_byte_timeout works from vcl
##   s1   Starting server
###  s1   listen on 127.0.0.1:9080 (fd 3)
##   v1   Launch
##   s1   Started on 127.0.0.1:9080
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid 
###  v1   opening CLI connection
###  v1   CLI connection fd = 5
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 9
###  c1   rxresp
###  s1   Accepted socket fd is 4
###  s1   rxreq
###  s1   delaying 1.5 second(s)
###  s1   shutting fd 4
##   s1   Ending
---- c1   EXPECT resp.status (200) == 503 (503) failed
---- TEST FILE: ././tests/b00024.vtc
---- TEST DESCRIPTION: Check that the first_byte_timeout works from vcl
FAIL: ./tests/b00024.vtc
#    top  TEST ././tests/b00025.vtc starting
#    TEST Check that the first_byte_timeout works from backend definition
##   s1   Starting server
###  s1   listen on 127.0.0.1:9080 (fd 3)
##   v1   Launch
##   s1   Started on 127.0.0.1:9080
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid 
###  v1   opening CLI connection
###  v1   CLI connection fd = 5
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 9
###  c1   rxresp
###  s1   Accepted socket fd is 4
###  s1   rxreq
###  s1   delaying 1.5 second(s)
###  s1   shutting fd 4
##   s1   Ending
---- c1   EXPECT resp.status (200) == 503 (503) failed
---- TEST FILE: ././tests/b00025.vtc
---- TEST DESCRIPTION: Check that the first_byte_timeout works from backend definition
FAIL: ./tests/b00025.vtc
...
#    top  TEST ././tests/r00345.vtc starting
#    TEST #345, ESI waitinglist trouble
##   s1   Starting server
###  s1   listen on 127.0.0.1:9080 (fd 3)
##   v1   Launch
##   s1   Started on 127.0.0.1:9080
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid -p diag_bitmap=0x20
###  v1   opening CLI connection
###  v1   CLI connection fd = 5
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   c1   Starting client
##   c2   Starting client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
##   c2   Waiting for client
##   c2   Started
###  c2   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 9
###  c2   Connected to 127.0.0.1:9081 fd is 10
###  c1   rxresp
###  s1   Accepted socket fd is 4
###  s1   rxreq
###  s1   rxreq
###  c2   rxresp
###  s1   delaying 1 second(s)
###  s1   shutting fd 4
##   s1   Ending
###  c2   Closing fd 10
##   c2   Ending
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 4
###  c1   rxresp
###  c1   Closing fd 4
##   c1   Ending
#    top  RESETTING after ././tests/r00345.vtc
##   s1   Waiting for server
##   v1   Stop
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
---- à× HTTP rx failed (Error 0)
---- TEST FILE: ././tests/r00345.vtc
---- TEST DESCRIPTION: #345, ESI waitinglist trouble
FAIL: ./tests/r00345.vtc
...
#    top  TEST ././tests/v00009.vtc starting
#    TEST Test round robin director
##   s1   Starting server
###  s1   listen on 127.0.0.1:2000 (fd 3)
##   s2   Starting server
##   s1   Started on 127.0.0.1:2000
###  s2   listen on 127.0.0.1:3000 (fd 4)
##   s3   Starting server
##   s2   Started on 127.0.0.1:3000
###  s3   listen on 127.0.0.1:4000 (fd 6)
##   s3   Started on 127.0.0.1:4000
##   s4   Starting server
###  s4   listen on 127.0.0.1:5000 (fd 9)
##   v1   Launch
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid 
##   s4   Started on 127.0.0.1:5000
###  v1   opening CLI connection
###  v1   CLI connection fd = 10
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  c1   Connected to 127.0.0.1:9081 fd is 15
###  c1   rxresp
###  s1   Accepted socket fd is 5
###  s1   rxreq
###  s1   shutting fd 5
##   s1   Ending
###  c1   rxresp
###  s2   Accepted socket fd is 7
###  s2   rxreq
###  s2   shutting fd 7
##   s2   Ending
###  c1   rxresp
###  s3   Accepted socket fd is 8
###  s3   rxreq
###  s3   shutting fd 8
##   s3   Ending
###  c1   rxresp
###  s4   Accepted socket fd is 14
###  s4   rxreq
###  s4   shutting fd 14
##   s4   Ending
###  c1   Closing fd 15
##   c1   Ending
##   s1   Starting server
###  s1   listen on 127.0.0.1:2000 (fd 3)
##   s2   Starting server
###  s2   listen on 127.0.0.1:3000 (fd 4)
##   s1   Started on 127.0.0.1:2000
##   c2   Starting client
##   s2   Started on 127.0.0.1:3000
##   c2   Waiting for client
##   c2   Started
###  c2   Connect to 127.0.0.1:9081
###  c2   Connected to 127.0.0.1:9081 fd is 8
###  c2   rxresp
###  s2   Accepted socket fd is 7
###  s2   rxreq
###  s2   shutting fd 7
##   s2   Ending
---- c2   EXPECT resp.http.content-length (2) == 1 (1) failed
---- TEST FILE: ././tests/v00009.vtc
---- TEST DESCRIPTION: Test round robin director
FAIL: ./tests/v00009.vtc
...
#    top  TEST ././tests/v00014.vtc starting
#    TEST Check req.backend.healthy
##   s1   Starting server
###  s1   listen on 127.0.0.1:9080 (fd 3)
##   v1   Launch
##   s1   Started on 127.0.0.1:9080
###  s1   Iteration 0
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n /tmp/__v1 -a '127.0.0.1:9081' -T 127.0.0.1:9001 -P /tmp/__v1/varnishd.pid 
###  v1   opening CLI connection
###  v1   CLI connection fd = 5
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   v1   Start
###  v1   CLI STATUS 200
###  v1   CLI STATUS 200
##   c1   Starting client
##   c1   Waiting for client
##   c1   Started
###  c1   Connect to 127.0.0.1:9081
###  s1   Accepted socket fd is 4
###  s1   rxreq
Assert error in http_rxchar(), vtc_http.c line 345:
  Condition(i > 0) not true.
bash: line 5: 25119 Abort                   (core dumped) ./varnishtest ${dir}$tst
FAIL: ./tests/v00014.vtc
...
===============================================
9 of 143 tests failed
Please report to varnish-dev at projects.linpro.no
===============================================



More information about the varnish-dev mailing list