depaul-dice / provenance-to-use

Other
0 stars 3 forks source link

Fatal error in strcpy_from_child #7

Open charmoniumQ opened 4 days ago

charmoniumQ commented 4 days ago

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

Then run:

ptu nginx -p nginx -c test.conf -e stderr

For which, I observe the following output:

root@22758e24e06f:/# ptu nginx -p nginx -c test.conf -e stderr
Provenance log file: /cde-package/provenance.cde-root.5.log
0x7ff1c7761060, 0x20, 0, 0x53053053, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 00x7ff1c6ffd498, 0x8, 0x1, 0x557590ad4535, 0xcccccccd, 0x2, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8, 0x557590ad4cb8Fatal error in strcpy_from_child [/provenance-to-use/strace-4.6/cde.c:2777]

Note the end of the last line: Fatal error in strcpy_from_child [/provenance-to-use/strace-4.6/cde.c:2777].

sranasir commented 4 days ago

Did you install a fresh copy of the Sciunit?

charmoniumQ commented 3 days ago

Yes. I can also reproduce with ptu, which I edited the post to reflect.

charmoniumQ commented 3 days ago

I also edited the above description to reproduce the error without using Nix.