kristapsdz / kcgi

minimal CGI and FastCGI library for C/C++
https://kristaps.bsd.lv/kcgi
ISC License
275 stars 40 forks source link

test fail on Arch Linux #103

Closed Un1Gfn closed 10 months ago

Un1Gfn commented 1 year ago

bmake regess and these tests fail

Rs=(
  regress/test-fcgi-bigfile
  regress/test-fcgi-file-get
  regress/test-fcgi-header
  regress/test-fcgi-header-bad
  regress/test-fcgi-path-check
  regress/test-fcgi-ping
  regress/test-fcgi-ping-double
  regress/test-fcgi-upload
)

kernel is 6.0.2-arch1-1

kcgi is 2601ac1 (aka 0.13.0)

curl is

$ curl -V
curl 7.85.0 (x86_64-pc-linux-gnu) libcurl/7.85.0 OpenSSL/1.1.1q zlib/1.2.13 brotli/1.0.9 zstd/1.5.2 libidn2/2.3.3 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.10.0 nghttp2/1.50.0
Release-Date: 2022-08-31
Protocols: dict file ftp ftps gopher gophers http https imap imaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS brotli GSS-API HSTS HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL threadsafe TLS-SRP UnixSockets zstd

details

echo
for e in "${Rs[@]}"; do
  echo "[$e]"
  "$e"
  echo
done
[regress/test-fcgi-bigfile]
ssh_sandbox_violation_control: unexpected system call (control) (arch:0xc000003e,syscall:318 @ 0x7f398acf2b75)
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN FastCGI: worker process termination
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN recvmsg: short read
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN waitpid: child failure

[regress/test-fcgi-file-get]
ssh_sandbox_violation_control: unexpected system call (control) (arch:0xc000003e,syscall:318 @ 0x7f52d231cb75)
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN recvmsg: short read
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN FastCGI: worker process termination
read: Connection reset by peer
fcgi_hdr_read: header
FastCGI script did not terminate headers
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN waitpid: child failure

[regress/test-fcgi-header]
ssh_sandbox_violation_control: unexpected system call (control) (arch:0xc000003e,syscall:318 @ 0x7feb42e8eb75)
read: Connection reset by peer
fcgi_hdr_read: header
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN recvmsg: short read
FastCGI script did not terminate headers
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN FastCGI: worker process termination
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN waitpid: child failure

[regress/test-fcgi-header-bad]
ssh_sandbox_violation_control: unexpected system call (control) (arch:0xc000003e,syscall:318 @ 0x7f20f79d0b75)
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN recvmsg: short read
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN FastCGI: worker process termination
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN waitpid: child failure

[regress/test-fcgi-path-check]
ssh_sandbox_violation_control: unexpected system call (control) (arch:0xc000003e,syscall:318 @ 0x7fbcc8ab7b75)
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN recvmsg: short read
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN FastCGI: worker process termination
read: Connection reset by peer
fcgi_hdr_read: header
FastCGI script did not terminate headers
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN waitpid: child failure

[regress/test-fcgi-ping]
ssh_sandbox_violation_control: unexpected system call (control) (arch:0xc000003e,syscall:318 @ 0x7f8f051dfb75)
read: Connection reset by peer
fcgi_hdr_read: header
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN recvmsg: short read
FastCGI script did not terminate headers
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN FastCGI: worker process termination
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN waitpid: child failure

[regress/test-fcgi-ping-double]
ssh_sandbox_violation_control: unexpected system call (control) (arch:0xc000003e,syscall:318 @ 0x7f39cb17fb75)
read: Connection reset by peer
fcgi_hdr_read: header
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN recvmsg: short read
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN FastCGI: worker process termination
FastCGI script did not terminate headers
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN waitpid: child failure

[regress/test-fcgi-upload]
*   Trying 127.0.0.1:17123...
* Connected to localhost (127.0.0.1) port 17123 (#0)
ssh_sandbox_violation_control: unexpected system call (control) (arch:0xc000003e,syscall:318 @ 0x7f86e2627b75)
> POST / HTTP/1.1
Host: localhost:17123
Accept: */*
Content-Length: 183657
Content-Type: multipart/form-data; boundary=------------------------8bc063d4fc6a8247

* We are completely uploaded and fine
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN recvmsg: short read
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN FastCGI: worker process termination
* Recv failure: Connection reset by peer
* Closing connection 0
- - [Wed, 19 Oct 2022 06:13:58 GMT] WARN waitpid: child failure