To reproduce, run in a fresh Ubuntu VM or Ubuntu container (docker run -it --rm ubuntu:22.04). Run the following script (or copy/paste each block of commands):
set -ex
apt update
apt install -y curl git gcc cmake make nano nginx python3 python3-psutil
# Build provenance-to-use
git clone --recursive https://github.com/depaul-dice/provenance-to-use.git
cd provenance-to-use
# This patch is needed to compile provenance-to-use!
curl https://patch-diff.githubusercontent.com/raw/depaul-dice/provenance-to-use/pull/4.patch | patch --strip=1
# Note, the error occurs with or without the following patch:
# curl https://patch-diff.githubusercontent.com/raw/depaul-dice/provenance-to-use/pull/5.patch | patch --strip=1
./run.sh -r
export PATH=$PWD:$PATH
cd ..
# Make nginx directory
mkdir --parents nginx/files
echo hello world > nginx/files/test
cat <<EOF > nginx/test.conf
# See https://stackoverflow.com/a/73297125/1078199
daemon off; # run in foreground
events {}
pid $PWD/nginx/nginx.pid;
http {
access_log $PWD/nginx/access.log;
client_body_temp_path $PWD/nginx;
proxy_temp_path $PWD/nginx;
fastcgi_temp_path $PWD/nginx;
uwsgi_temp_path $PWD/nginx;
scgi_temp_path $PWD/nginx;
server {
server_name localhost;
listen 54123 default_server;
root $PWD/nginx/files;
}
}
EOF
To reproduce, run in a fresh Ubuntu VM or Ubuntu container (
docker run -it --rm ubuntu:22.04
). Run the following script (or copy/paste each block of commands):Then run:
For which, I observe the following output:
Note the end of the last line:
Fatal error in strcpy_from_child [/provenance-to-use/strace-4.6/cde.c:2777]
.