Package: src:octave-sockets
Version: 1.5.0-1
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202606/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

Note: The bug happens randomly, but more than 50% of the time here.
If you cannot reproduce the bug please contact me privately, as I am
willing to provide ssh access to a virtual machine where this
randomness happens.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:octave-sockets, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
   dh_auto_install --destdir=debian/octave-sockets/ -O--buildsystem=octave
        octave --no-gui --no-history --silent --no-init-file --no-window-system 
/usr/share/dh-octave/install-pkg.m 
/<<PKGBUILDDIR>>/debian/octave-sockets/usr/share/octave/packages 
/<<PKGBUILDDIR>>/debian/octave-sockets/usr/lib/x86_64-linux-gnu/octave/packages
mkdir (/tmp/oct-KaocHN)
untar (/tmp//octave-sockets-1.5.0.tar.gz, /tmp/oct-KaocHN)
make[1]: Entering directory '/tmp/oct-KaocHN/octave-sockets-1.5.0/src'
/usr/bin/mkoctfile --verbose socket.cc 
g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/usr/include/octave-11.1.0/octave/.. -I/usr/include/octave-11.1.0/octave  
-pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection    socket.cc -o /tmp/oct-MLbw7X.o
Extracting tests from socket.cc ...
g++ -I/usr/include/octave-11.1.0/octave/.. -I/usr/include/octave-11.1.0/octave  
-pthread -fopenmp -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection  -o socket.oct  /tmp/oct-MLbw7X.o   
-shared -Wl,-Bsymbolic -Wl,-z,relro  -flto=auto -ffat-lto-objects -Wl,-z,relro 
make[1]: Leaving directory '/tmp/oct-KaocHN/octave-sockets-1.5.0/src'
copyfile /tmp/oct-KaocHN/octave-sockets-1.5.0/src/socket.oct 
/tmp/oct-KaocHN/octave-sockets-1.5.0/src/socket.cc-tst 
/tmp/oct-KaocHN/octave-sockets-1.5.0/inst/x86_64-pc-linux-gnu-api-v61
For information about changes from previous versions of the sockets package, 
run 'news sockets'.
Please report any issues with the sockets package at 
"https://github.com/gnu-octave/octave-sockets/issues";
rm: cannot remove 
'/<<PKGBUILDDIR>>/debian/octave-sockets/usr/share/octave/packages/sockets-1.5.0/doc':
 Is a directory
   dh_octave_check -O--buildsystem=octave
Checking package...
Run the unit tests...
Checking m files ...
Checking C++ files ...
[src/socket.cc]
>>>>> /<<PKGBUILDDIR>>/src/socket.cc
***** test
 ## Server socket
 server = socket (AF_INET, SOCK_STREAM, 0);
 assert (server >= 0);

 rc = bind (server, 9001);
 assert (rc, 0);

 rc = listen (server, 1);
 assert (rc, 0);

 ## Client socket
 client = socket (AF_INET, SOCK_STREAM, 0);
 assert (client >= 0);

 ## Create the connection and accept the connection
 server_info = struct ("addr", "127.0.0.1", "port", 9001);
 rc = connect (client, server_info);
 assert (rc, 0);

 server_data = accept (server);
 assert (server_data >= 0);

 ## Send and receive data

 ## Send as string from client
 msg = "Hello socket-land!";
 rc = send (client, msg);
 assert (rc,length (msg));

 ## Receive at server
 [msg_s, len_s] = recv (server_data, 100);
 assert (msg_s != -1);
 assert (len_s, length (msg));

 ## Send back out from server
 rc = send (server_data, msg_s);
 assert (rc, length (msg_s));

 ## Receive at client
 [msg_c, len_c] = recv (client, 100);
 assert (msg_c != -1);
 assert (len_c, length (msg));

 ## Compare original string with recv string
 assert (msg, num2str (msg_c, "%c"));

 assert (shutdown (client, SHUT_WR), 0);
 assert (shutdown (client, SHUT_RD), 0);
 assert (shutdown (client, SHUT_RDWR), 0);

 assert (disconnect (client), 0);
 assert (disconnect (server_data), 0);
 assert (disconnect (server), 0);
!!!!! test failed
socket failed with error 97 (Address family not supported by protocol)
***** test
 ## UDP
 sock = socket (AF_INET, SOCK_DGRAM, 0);
 assert (sock >= 0);

 rc = bind (sock, 9001);
 assert (rc, 0);

 msg = "Hello socket-land!";
 addrinfo = struct ("addr", "127.0.0.1", "port", 9001);
 rc = sendto (sock, msg, 0, addrinfo);
 assert (rc,length (msg));

 [msg_c, len_c, addr_c] = recvfrom (sock, 100);
 assert (msg_c != -1);
 assert (len_c, length (msg));
 assert (addr_c.port, 9001);

 assert (msg, num2str (msg_c, "%c"));

 assert (disconnect (sock), 0);
!!!!! test failed
socket failed with error 97 (Address family not supported by protocol)
***** test
 assert (SOL_SOCKET != 0)
 assert (MSG_WAITALL != 0)
 assert (MSG_PEEK != 0)
 assert (SO_REUSEADDR != 0)
 assert (SO_KEEPALIVE != 0)
 assert (SO_TYPE != 0)
 assert (SHUT_RD, 0)
 assert (SHUT_WR, 1)
 assert (SHUT_RDWR, 2)
***** test
 ## select
 sock = socket (AF_INET, SOCK_DGRAM, 0);
 assert (sock >= 0);

 rc = bind (sock, 9001);
 assert (rc, 0);

 [ret, rdfs, wdfs, edfs] = select(sock+1, [sock], [sock], [sock], 1);
 assert(ret, 1);
 assert(rdfs, []);
 # initial open
 assert(wdfs, [sock]);
 assert(edfs, []);

 msg = "Hello socket-land!";
 addrinfo = struct ("addr", "127.0.0.1", "port", 9001);
 rc = sendto (sock, msg, 0, addrinfo);
 assert (rc,length (msg));
 pause(1);

 [ret, rdfs, wdfs, edfs] = select(sock+1, [sock], [], [], .2);
 assert(ret, 1);
 assert(rdfs, [sock]);
 assert(wdfs, []);
 assert(edfs, []);

 [msg_c, len_c, addr_c] = recvfrom (sock, 100);
 assert (msg_c != -1);
 assert (len_c, length (msg));
 assert (addr_c.port, 9001);

 [ret, rdfs, wdfs, edfs] = select(sock+1, [sock], [], [], .1);
 assert(ret, 0);
 assert(rdfs, []);
 assert(wdfs, []);
 assert(edfs, []);

 assert (disconnect (sock), 0);

!!!!! test failed
socket failed with error 97 (Address family not supported by protocol)
***** xtest
 sock = socket (AF_INET, SOCK_DGRAM, 0);
 assert (sock >= 0);

 start = tic;
 [ret, rdfs, wdfs, edfs] = select(sock+1, [sock], [], [], 1);
 timeout = toc(start);
 assert(ret, 0);
 assert(rdfs, []);
 assert(wdfs, []);
 assert(edfs, []);
 assert(timeout, 1, 0.01);

 timeout = struct ("tv_sec", 2, "tv_usec", 0);
 start = tic;
 [ret, rdfs, wdfs, edfs] = select(sock+1, [sock], [], [], timeout);
 timeout = toc(start);
 assert(ret, 0);
 assert(rdfs, []);
 assert(wdfs, []);
 assert(edfs, []);
 assert(timeout, 2, 0.01);

 assert (disconnect (sock), 0);
!!!!! known failure
socket failed with error 22 (Invalid argument)
5 tests, 1 passed, 1 known failure, 0 skipped
Done running the unit tests.
Summary: 5 tests, 1 passed, 1 known failures, 0 skipped
Some tests failed.  Giving up...
make: *** [debian/rules:5: binary] Error 1
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to