Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error in strcpy_from_child #7

Open
charmoniumQ opened this issue Jul 3, 2024 · 3 comments
Open

Fatal error in strcpy_from_child #7

charmoniumQ opened this issue Jul 3, 2024 · 3 comments

Comments

@charmoniumQ
Copy link

charmoniumQ commented Jul 3, 2024

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
Copy link
Contributor

sranasir commented Jul 3, 2024

Did you install a fresh copy of the Sciunit?

@charmoniumQ
Copy link
Author

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

@charmoniumQ
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants