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

gitup: load_file: problem reading /usr/src/contrib/llvm-project/libcxx/include/__string: Input/output error #94

Closed
grahamperrin opened this issue May 10, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@grahamperrin
Copy link
Contributor

grahamperrin commented May 10, 2023

Briefly:

  1. /usr/src might have been at 13.2.0 before the commands below
  2. gitup release -t release/13.1.0 included removal of the /usr/src/contrib/llvm-project/libcxx/include/__string directory and its contents (lines 14035 and 14036 of the attached transcript), with an invitation to rerun gitup
  3. gitup release -t release/13.1.0 failed with what might be a file-related error:
root@fuji:~ # gitup release -t release/13.1.0
# Scanning local repository...
# Host: git.freebsd.org
# Port: 443
# Repository Path: /src.git
# Target Directory: /usr/src
# Tag: release/13.1.0
# Have: 525ecfdad597980ea4cd59238e24c8530dbcd31d
# Want: fc952ac2212b121aa6eefc273f5960ec3e0a466d
# Action: pull
gitup: load_file: problem reading /usr/src/contrib/llvm-project/libcxx/include/__string: Input/output error
root@fuji:~ # 

error, __string.txt

Edge case, I suspect.

@johnmehr johnmehr self-assigned this May 12, 2023
@johnmehr johnmehr added the bug Something isn't working label May 12, 2023
@johnmehr
Copy link
Owner

When I clone 525ecfdad5 and then pull fc952ac221, it goes through without any issue.

When I clone a previous commit (such as 3b5e5ce87b) then pull 525ecfdad5 and then pull fc952ac221, I get a different list of files to repair than what you're seeing and the repair never takes so this problem seems more widespread when reverting to earlier commits. This one might take me a while to fix.

@grahamperrin
Copy link
Contributor Author

If it helps …

contrib/llvm-project/libcxx/include/__string is:

From #94 (comment):

… removal of the /usr/src/contrib/llvm-project/libcxx/include/__string directory and its contents (lines 14035 and 14036 of the attached transcript), …

Despite that, it still exists as a directory file:

root@fuji:~ # file /usr/src/contrib/llvm-project/libcxx/include/__string
/usr/src/contrib/llvm-project/libcxx/include/__string: directory
root@fuji:~ # 

johnmehr added a commit that referenced this issue Jun 19, 2023
@johnmehr
Copy link
Owner

I just committed a potential fix for this issue. When you have a chance, could you please retrace your steps and see if the problem persists? Thank you!

@grahamperrin

This comment was marked as resolved.

@johnmehr
Copy link
Owner

If you cd into cloned directory and then execute make you should be able to run the updated code via ./gitup with your test parameters. Thanks!

@grahamperrin
Copy link
Contributor Author

Sorry for taking so long.

… please retrace your steps and see if the problem persists? …

I think I retraced correctly, the problem is no longer reproducible. Thanks!

/usr/local/etc/gitup.conf temporarily edited to include these lines:

        "release" : {
                "repository" : "/src.git",
#               "branch"     : "releng/13.2",
                "branch"     : "releng/13.1",
#               "target"     : "/usr/src",
                "target"     : "/usr/home/grahamperrin/dev/freebsd/src",
                "ignores"    : [
                        "sys/amd64/conf",
                        "sys/arm64/conf",
                        "sys/i386/conf",
                        "sys/pc98/conf",
                        "sys/powerpc/conf",
                        "sys/riscv/conf",
                        "sys/sparc64/conf",
                ]
        },

Command history, condensed:

16:34   cd ~/dev/gitup
16:34   git pull --ff-only
16:34   make
16:53   cd ..
16:53   mkdir freebsd
16:53   cd freebsd
16:58   nano /usr/local/etc/gitup.conf
17:01   git clone https://git.freebsd.org/src.git
17:31   cd src
17:31   git fetch
18:10   git checkout release/13.1.0
18:12   git checkout release/13.2.0
18:15   man -P cat gitup
18:16   sudo rm -r /usr/home/grahamperrin/dev/freebsd/src/.git
18:20   sudo /usr/home/grahamperrin/dev/gitup/gitup release -t release/13.1.0

2023-09-23 success.txt

@johnmehr
Copy link
Owner

No worries!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants