Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2021 02:02:59 +0000
From:      bugzilla-noreply@freebsd.org
To:        chromium@FreeBSD.org
Subject:   [Bug 258679] www/chromium: Unable to download files with chromium-92.0.4515.159_2
Message-ID:  <bug-258679-28929-AC4TH7GsnF@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-258679-28929@https.bugs.freebsd.org/bugzilla/>
References:  <bug-258679-28929@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258679

--- Comment #19 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
This is too exaggerated to be called an idea :) , but....

I ran chrome with truss logging.
> truss -d -o /tmp/truss.log -- chrome --incognito &

Then observe the truss log.
> less -n -+S +F -- /tmp/truss.log

In a line like the following, find the handle of the IPC? with the X server.
> 4.478558977 connect(22,{ AF_UNIX "/tmp/.X11-unix/X0" },106) =3D 0 (0x0)

This descriptor 22 produces a large amount of logging just by moving the mo=
use,
but it can all be ignored.
> 25.314379644 recvmsg(22,0x7fffffffda00,0)        ERR#35 'Resource tempora=
rily unavailable'
> 25.314406709 recvmsg(22,0x7fffffffda30,0)        ERR#35 'Resource tempora=
rily unavailable'
> 25.314437758 poll({ 5/POLLIN 21/POLLIN 22/POLLIN },3,0) =3D 0 (0x0)

You can ignore the parts of it that you don't want, but if you download the
featured file, you can easily find where it might be relevant.

> 23.004446278 open("/home/tatsuki/.local/share/.org.chromium.Chromium.0kro=
OZ",O_RDWR|O_CREAT|O_EXCL,0600) =3D 152 (0x98)
> 23.004597101 openat(AT_FDCWD,"/home/tatsuki/.local/share/.org.chromium.Ch=
romium.0kroOZ",O_RDWR,00) =3D 152 (0x98)
> 23.009780133 access("/home/tatsuki/Downloads/CHECKSUM.SHA512-FreeBSD-13.0=
-RELEASE-amd64",F_OK) ERR#2 'No such file or directory'
> 23.054732785 access("/home/tatsuki/Downloads/CHECKSUM.SHA512-FreeBSD-13.0=
-RELEASE-amd64.crdownload",F_OK) =3D 0 (0x0)
> 23.055022511 access("/home/tatsuki/Downloads/CHECKSUM.SHA512-FreeBSD-13.0=
-RELEASE-amd64 (1).crdownload",F_OK) ERR#2 'No such file or directory'
> 23.055528878 access("/home/tatsuki/Downloads/CHECKSUM.SHA512-FreeBSD-13.0=
-RELEASE-amd64 (1).crdownload",F_OK) ERR#2 'No such file or directory'
> 23.055610948 openat(AT_FDCWD,"/home/tatsuki/Downloads/CHECKSUM.SHA512-Fre=
eBSD-13.0-RELEASE-amd64 (1).crdownload",O_WRONLY|O_CREAT|O_TRUNC,0666) =3D =
151 (0x97)
> 23.055798888 fstatat(AT_FDCWD,"/home/tatsuki/Downloads/CHECKSUM.SHA512-Fr=
eeBSD-13.0-RELEASE-amd64 (1).crdownload",{ mode=3D-rw-r--r-- ,inode=3D64205=
0,size=3D0,blksize=3D32768 },0x0) =3D 0 (0x0)
> 23.055874646 fstatat(AT_FDCWD,"/home/tatsuki/Downloads/CHECKSUM.SHA512-Fr=
eeBSD-13.0-RELEASE-amd64 (1).crdownload",{ mode=3D-rw-r--r-- ,inode=3D64205=
0,size=3D0,blksize=3D32768 },0x0) =3D 0 (0x0)
> 23.055926311 fstatat(AT_FDCWD,"/home/tatsuki/.local/share/.org.chromium.C=
hromium.0kroOZ",{ mode=3D-rw------- ,inode=3D29856080,size=3D1811,blksize=
=3D32768 },0x0) =3D 0 (0x0)
> 23.056057619 rename("/home/tatsuki/.local/share/.org.chromium.Chromium.0k=
roOZ","/home/tatsuki/Downloads/CHECKSUM.SHA512-FreeBSD-13.0-RELEASE-amd64 (=
1).crdownload") ERR#18 'Cross-device link'
> 23.056209671 access("/home/tatsuki/Downloads/CHECKSUM.SHA512-FreeBSD-13.0=
-RELEASE-amd64 (1).crdownload",F_OK) =3D 0 (0x0)
> 23.056530051 fstatat(AT_FDCWD,"/home/tatsuki/Downloads/CHECKSUM.SHA512-Fr=
eeBSD-13.0-RELEASE-amd64 (1).crdownload",{ mode=3D-rw-r--r-- ,inode=3D64205=
0,size=3D0,blksize=3D32768 },AT_SYMLINK_NOFOLLOW) =3D 0 (0x0)
> 23.056931343 fstatat(AT_FDCWD,"/home/tatsuki/.local/share/.org.chromium.C=
hromium.0kroOZ",{ mode=3D-rw------- ,inode=3D29856080,size=3D1811,blksize=
=3D32768 },AT_SYMLINK_NOFOLLOW) =3D 0 (0x0)
> 23.057138161 fstatat(AT_FDCWD,"/home/tatsuki/.local/share/.org.chromium.C=
hromium.0kroOZ",{ mode=3D-rw------- ,inode=3D29856080,size=3D1811,blksize=
=3D32768 },0x0) =3D 0 (0x0)
> 23.057200189 fstatat(AT_FDCWD,"/home/tatsuki/Downloads/CHECKSUM.SHA512-Fr=
eeBSD-13.0-RELEASE-amd64 (1).crdownload",{ mode=3D-rw-r--r-- ,inode=3D64205=
0,size=3D0,blksize=3D32768 },0x0) =3D 0 (0x0)
> 23.057266794 openat(AT_FDCWD,"/home/tatsuki/.local/share/.org.chromium.Ch=
romium.0kroOZ",O_RDONLY|O_NONBLOCK,00) =3D 152 (0x98)
> 23.057442543 openat(AT_FDCWD,"/home/tatsuki/Downloads/CHECKSUM.SHA512-Fre=
eBSD-13.0-RELEASE-amd64 (1).crdownload",O_WRONLY|O_NONBLOCK|O_CREAT|O_TRUNC=
,0600) =3D 153 (0x99)
> 23.063141718 fstatat(AT_FDCWD,"/home/tatsuki/.local/share/.org.chromium.C=
hromium.0kroOZ",{ mode=3D-rw------- ,inode=3D29856080,size=3D1811,blksize=
=3D32768 },AT_SYMLINK_NOFOLLOW) =3D 0 (0x0)
> 23.063323207 unlink("/home/tatsuki/.local/share/.org.chromium.Chromium.0k=
roOZ") =3D 0 (0x0)

According to this, there seems to be a code that proceeds as follows: creat=
e a
temporary file, check for duplicate filenames, add a (1) before the last pe=
riod
because the filenames were duplicated, and start over.

The rename is also failing, but I am also concerned about this sendfile
failure.
> 23.057592727 sendfile(0x98,0x99,0x0,0x713,0x0,0x7fffd6de9f48,0x7fff000000=
00) ERR#38 'Socket operation on non-socket'

There's an even better way. Does anyone have a built chrome with the follow=
ing
settings enabled?
WITH_DEBUG=3Dyes or WITH_DEBUG_PORTS=3Dwww/chromium
www_chromium_SET=3DDEBUG

I still need more time to prepare it on my end, as I did not have enough sp=
ace
to build it on disk :)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258679-28929-AC4TH7GsnF>