From nobody Fri Nov 12 02:02:59 2021 X-Original-To: chromium@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 421F6185FBA1 for ; Fri, 12 Nov 2021 02:03:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hr21009lHz3wJk for ; Fri, 12 Nov 2021 02:03:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DAC791703F for ; Fri, 12 Nov 2021 02:02:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1AC22xMY048353 for ; Fri, 12 Nov 2021 02:02:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AC22xOY048352 for chromium@FreeBSD.org; Fri, 12 Nov 2021 02:02:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f 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 Date: Fri, 12 Nov 2021 02:02:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tatsuki_makino@hotmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: chromium@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Chromium issues List-Archive: https://lists.freebsd.org/archives/freebsd-chromium List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-chromium@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258679 --- Comment #19 from Tatsuki Makino --- 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.=