[Bug 289485] Spitting out "Invalid argument" while accessing directories prevents "debootstrap" and "linux-brave" to work properly...

[email protected]
Newsgroups gmane.os.freebsd.devel.emulation
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289485

--- Comment #8 from Nils Beyer <[email protected]> ---
Just to point out the impact on "linux-brave", here the relevant console
messages during the startup of "linux-brave":

-------------------------------------- SNIP
--------------------------------------
#brave-browser
(...)
[0912/205229.416235:ERROR:third_party/crashpad/crashpad/util/file/directory_reader_posix.cc:56]
readdir : Invalid argument (22)
(...)
[94622:261560:0912/205231.257616:ERROR:net/disk_cache/simple/simple_file_enumerator.cc:43]
readdir /home/user/.cache/BraveSoftware/Brave-Browser/Default/Code Cache/wasm:
Invalid argument (22)
[94622:261560:0912/205231.257707:ERROR:net/disk_cache/simple/simple_index_file.cc:621]
Could not reconstruct index from disk
(...)
[94639:261577:0912/205231.301138:ERROR:net/disk_cache/simple/simple_file_enumerator.cc:43]
readdir /home/user/.config/BraveSoftware/Brave-Browser/Default/Shared
Dictionary/cache: Invalid argument (22)
[94639:261577:0912/205231.301202:ERROR:net/disk_cache/simple/simple_index_file.cc:621]
Could not reconstruct index from disk
(...)
readdir /home/user/.config/BraveSoftware/Brave-Browser/Default/Service
Worker/ScriptCache: Invalid argument (22)
[94622:261538:0912/205231.906076:ERROR:net/disk_cache/simple/simple_index_file.cc:621]
Could not reconstruct index from disk
(...)
[94622:261538:0912/205232.359759:ERROR:components/services/storage/service_worker/service_worker_storage.cc:1809]
Failed to delete the database: Database IO error
(...)
readdir /home/user/.cache/BraveSoftware/Brave-Browser/Default/Cache/Cache_Data:
Invalid argument (22)
[94639:261576:0912/205232.452597:ERROR:net/disk_cache/simple/simple_index_file.cc:621]
Could not reconstruct index from disk
(...)
[94622:261536:0912/205233.984245:ERROR:content/browser/indexed_db/instance/leveldb/backing_store.cc:223]
Failed to open LevelDB database from
/home/user/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_www.google.com_443.indexeddb.leveldb,IO
error:
/home/user/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_www.google.com_443.indexeddb.leveldb:
Could not open/read directory (ChromeMethodBFE: 20::GetChildren::1)
[94622:261536:0912/205233.984834:ERROR:content/browser/indexed_db/instance/leveldb/backing_store.cc:223]
Failed to open LevelDB database from
/home/user/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_www.google.com_443.indexeddb.leveldb,IO
error:
/home/user/.config/BraveSoftware/Brave-Browser/Default/IndexedDB/https_www.google.com_443.indexeddb.leveldb:
Could not open/read directory (ChromeMethodBFE: 20::GetChildren::1)
-------------------------------------- SNIP
--------------------------------------


And here the impact on "debootstrap":
-------------------------------------- SNIP
--------------------------------------
(...)
I: Installing core packages...
W: Failure trying to run: chroot "/compat/ubuntu" dpkg --force-depends
--install /var/cache/apt/archives/base-passwd_3.5.47_amd64.deb
W: See /compat/ubuntu/debootstrap/debootstrap.log for details
linux-browser-installer: Error: debootstrap failed

#tail /compat/ubuntu/debootstrap/debootstrap.log
2025-09-12 20:58:02
URL:http://archive.ubuntu.com/ubuntu/pool/main/n/newt/whiptail_0.52.21-4ubuntu2_amd64.deb
[16960/16960] ->
"/compat/ubuntu//var/cache/apt/archives/partial/whiptail_0.52.21-4ubuntu2_amd64.deb"
[1]
2025-09-12 20:58:02
URL:http://archive.ubuntu.com/ubuntu/pool/main/x/xdg-user-dirs/xdg-user-dirs_0.17-2ubuntu1_amd64.deb
[48284/48284] ->
"/compat/ubuntu//var/cache/apt/archives/partial/xdg-user-dirs_0.17-2ubuntu1_amd64.deb"
[1]
2025-09-12 20:58:03
URL:http://archive.ubuntu.com/ubuntu/pool/main/x/xkeyboard-config/xkb-data_2.29-2_all.deb
[348648/348648] ->
"/compat/ubuntu//var/cache/apt/archives/partial/xkb-data_2.29-2_all.deb" [1]
2025-09-12 20:58:03
URL:http://archive.ubuntu.com/ubuntu/pool/main/v/vim/xxd_8.1.2269-1ubuntu5_amd64.deb
[50116/50116] ->
"/compat/ubuntu//var/cache/apt/archives/partial/xxd_2%3a8.1.2269-1ubuntu5_amd64.deb"
[1]
2025-09-12 20:58:03
URL:http://archive.ubuntu.com/ubuntu/pool/main/x/xz-utils/xz-utils_5.2.4-1_amd64.deb
[82468/82468] ->
"/compat/ubuntu//var/cache/apt/archives/partial/xz-utils_5.2.4-1_amd64.deb" [1]
2025-09-12 20:58:03
URL:http://archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib1g_1.2.11.dfsg-2ubuntu1_amd64.deb
[53700/53700] ->
"/compat/ubuntu//var/cache/apt/archives/partial/zlib1g_1%3a1.2.11.dfsg-2ubuntu1_amd64.deb"
[1]
rm: traversal failed: /tmp/dpkg-deb.Xas6pU: Invalid argument
dpkg-deb: error while cleaning up:
 rm command for cleanup subprocess returned error exit status 1
dpkg: error: error opening configuration directory '/etc/dpkg/dpkg.cfg.d':
Invalid argument

#truss chroot "/compat/ubuntu" dpkg --force-depends --install
(...)
umask(0x12)                                      = 18 (0x12)
linux_openat(0xffffff9c,0x12f2a90,0x90800,0x0)   = 3 (0x3)
linux_newfstat(3,0x7fffffffb930)                 = 0 (0x0)
linux_getdents64(0x3,0x12f2ae0,0x20000)          = 48 (0x30)
linux_getdents64(0x3,0x12f2ae0,0x20000)          ERR#-22 'Invalid argument'
close(3)                                         = 0 (0x0)
linux_ioctl(0x1,0x5401,0x7fffffffb690)           ERR#-25 'Inappropriate ioctl
for device'
dpkg: error: error opening configuration directory '/etc/dpkg/dpkg.cfg.d':
Invalid argument
linux_write(0x2,0x7fffffff9090,0x5c)             = 92 (0x5c)
linux_exit_group(0x2)
process exit, rval = 2
-------------------------------------- SNIP
--------------------------------------

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.