Public bug reported:

If I have two users accessing the same file, they can both see different
content.

For example, part of a script file I (User 2) am currently editing.

User 1:
        #build64
        #build32
        cd "$WINE64"
        local COMPILE="$LOW "$WINEGIT/configure" $CONFFLAGS 
--with-wine64="$WINE64ONLY"  $PREFIX"

User 2:
        build64
        build32
        cd "$WINE64"
        local COMPILE="$LOW "$WINEGIT/configure" $CONFFLAGS 
--with-wine64="$WINE64ONLY" --with-wine-tools="$WINE32" $PREFIX"

I must stress these are the SAME FILES.

I don't know if this is a caching thing, a filesystem thing, a kernel
thing, or what, but I would expect both users to have the same data.

This is not new. I have had this madness for decades.

In https://askubuntu.com/q/609828/170177 I guessed that it might be
because of the Bash hash tables, but this cannot be the case here as the
file itself has been around for years. Indeed both users have used the
script within the last few minutes. I use it regularly. But changes are
propogating to the other user incredibly slowly. This shouldn't happen.

One more time for luck.

User 1:
$ fgrep build64 ~/bin/winecompile
build64() {
        #build64
                build64

User 2:
$ fgrep build64 ~/bin/winecompile
build64() {
        build64
                build64

In this specific case it's a hardlink, but that shouldn't matter.

What's worse is I cannot reliably create this. It just happens
sometimes!

Where do I even begin?

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: bash 5.1-6ubuntu1.1
ProcVersionSignature: Ubuntu 6.8.0-38.38~22.04.1-generic 6.8.8
Uname: Linux 6.8.0-38-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82.6
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: MATE
Date: Tue May 27 21:17:31 2025
SourcePackage: bash
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ubuntu
     Importance: Undecided
         Status: Invalid


** Tags: amd64 apport-bug jammy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2111853

Title:
  Same file, two different views

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/2111853/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to