Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size

Bug #1983010 reported by Vikram Vincent
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mozilla Firefox
New
Unknown
firefox (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I use Firefox Beta and launch it from the terminal. While watching Netflix on Firefox, I get the following messages on my terminal:

Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index3/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/present
Sandbox: attempt to open unexpected file /sys/devices/system/cpu
Sandbox: Unexpected EOF, op 0 flags 00 path /proc/cpuinfo

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: firefox (not installed)
ProcVersionSignature: Ubuntu 5.15.0-41.44-generic 5.15.39
Uname: Linux 5.15.0-41-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
Date: Thu Jul 28 15:01:35 2022
InstallationDate: Installed on 2022-06-21 (36 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Vikram Vincent (vincentvikram) wrote :
Revision history for this message
Olivier Tilloy (osomon) wrote :

This looks like https://bugzilla.mozilla.org/show_bug.cgi?id=1712506, but according to that upstream bug the issue should have been fixed a while ago.

Which version of firefox is currently installed? Can you share the contents of about:support ?

Changed in firefox (Ubuntu):
status: New → Incomplete
Revision history for this message
Vikram Vincent (vincentvikram) wrote : Re: [Bug 1983010] Re: Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
Download full text (28.3 KiB)

Having tried to replicate the issue with a variety of content on
Netflix, it looks like the issue arises with only specific content.

On Tue, 2 Aug 2022 at 16:35, Olivier Tilloy <email address hidden> wrote:
>
> Which version of firefox is currently installed? Can you share the
> contents of about:support ?

Application Basics

Name Firefox
Version 104.0b5
Build ID 20220802185803
Distribution ID
Update Channel beta
User Agent Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101
Firefox/104.0
OS Linux 5.15.0-43-generic #46-Ubuntu SMP Tue Jul 12 10:30:17 UTC 2022
OS Theme Breeze / Adwaita
Multiprocess Windows 1/1
Fission Windows 1/1 Enabled by default
Remote Processes 8
Enterprise Policies Inactive
Google Location Service Key Found
Google Safebrowsing Key Found
Mozilla Location Service Key Found
Safe Mode false
Memory Size (RAM) 14.5 GB
Disk Space Available 282 GB

Crash Reports for the Last 3 Days

Report ID Submitted

Firefox Features

Name Version ID
DoH <email address hidden>
Firefox <email address hidden>
Form <email address hidden>
<email address hidden>
Web Compatibility <email address hidden>
WebCompat <email address hidden>

Remote Features

Remote Processes

Type Count
Extension1
Isolated Web Content1
Isolated Service Worker1
Privileged About1
Preallocated3
Socket1

Add-ons

Name Type Version Enabled ID
Add-ons Search <email address hidden>
<email address hidden>
<email address hidden>
<email address hidden>
HTTPS <email address hidden>
Privacy Badgerextension2021.11.23.1truejid1-MnnxcxisBPnSXQ@jetpack
uBlock <email address hidden>
Wikipedia (en)<email address hidden>

Graphics

Features
CompositingWebRender
Asynchronous Pan/Zoomwheel input enabled; scrollbar drag enabled;
keyboard enabled; autoscroll enabled; smooth pinch-zoom enabled
WebGL 1 Driver WSI InfoEGL_VENDOR: Mesa Project EGL_VERSION: 1.5
EGL_EXTENSIONS: EGL_ANDROID_blob_cache EGL_ANDROID_native_fence_sync
EGL_CHROMIUM_sync_control EGL_EXT_buffer_age
EGL_EXT_create_context_robustness EGL_EXT_image_dma_buf_import
EGL_EXT_image_dma_buf_import_modifiers EGL_EXT_protected_surface
EGL_EXT_swap_buffers_with_damage EGL_KHR_cl_event2
EGL_KHR_config_attribs EGL_KHR_create_context
EGL_KHR_create_context_no_error EGL_KHR_fence_sync
EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace
EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image
EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image
EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap
EGL_KHR_no_config_context EGL_KHR_reusable_sync
EGL_KHR_surfaceless_context EGL_KHR_swap_buffers_with_damage
EGL_EXT_pixel_format_float EGL_KHR_wait_sync
EGL_MESA_configless_context EGL_MESA_drm_image
EGL_MESA_image_dma_buf_export EGL_MESA_query_driver
EGL_NOK_texture_from_pixmap EGL_WL_bind_wayland_display
EGL_EXTENSIONS(nullptr): EGL_EXT_device_base
EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base
E...

Revision history for this message
Olivier Tilloy (osomon) wrote :

It looks like you're using firefox distributed by Mozilla as a tarball. Would you mind filing an issue at https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox and sharing the link to it here?

Changed in firefox (Ubuntu):
status: Incomplete → New
Revision history for this message
In , Vikram Vincent (vincentvikram) wrote :

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Steps to reproduce:

 use Firefox Beta and launch it from the terminal. While watching
Netflix on Firefox, I get the following messages on my terminal:

Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index3/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/present
Sandbox: attempt to open unexpected file /sys/devices/system/cpu
Sandbox: Unexpected EOF, op 0 flags 00 path /proc/cpuinfo

Revision history for this message
Vikram Vincent (vincentvikram) wrote : Re: [Bug 1983010] [NEW] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size

On Thursday, 4 August 2022, Olivier Tilloy <email address hidden>
wrote:
> It looks like you're using firefox distributed by Mozilla as a tarball.
> Would you mind filing an issue at
> https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox and sharing
> the link to it here?
>
Done! https://bugzilla.mozilla.org/show_bug.cgi?id=1783163
<https://github.com/webcompat/web-bugs/issues/108493>

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks! I'm not sure why I'm not allowed to see the bug on bugzilla.mozilla.org, and I'm not sure why this was also/separately filed as a webcompat bug.

Revision history for this message
Vikram Vincent (vincentvikram) wrote :

Hello!

On Thursday, 4 August 2022, Olivier Tilloy <email address hidden>
wrote:
> Thanks! I'm not sure why I'm not allowed to see the bug on

I think this must be because I checked the box saying the bug might affect
a lot of other users(security bug). The content is the same as what is
posted on launchpad.

> bugzilla.mozilla.org, and I'm not sure why this was also/separately
> filed as a webcompat bug.
>

This was due to some confusion while trying to file the bug via the mobile
phone. I thought I was reporting a website (Netflix) messing with the web
browser.

--
Vikram Vincent, Ph.D.

Revision history for this message
In , Gpascutto (gpascutto) wrote :

Just a warning, but unexpected, so we want to have a look at some point.

Changed in firefox:
status: Unknown → New
Revision history for this message
In , Vikram Vincent (vincentvikram) wrote :

I am able to reproduce the messages by hovering over various programme titles in Netflix and then refreshing the page.
I get:

libva info: va_openDriver() returns 0
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index3/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/present
Sandbox: attempt to open unexpected file /sys/devices/system/cpu
libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
ATTENTION: default value of option mesa_glthread overridden by environment.
libva info: va_openDriver() returns 0
username@hostname:~$ libva info: VA-API version 1.14.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_14
ATTENTION: default value of option mesa_glthread overridden by environment.
libva info: va_openDriver() returns 0
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index3/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/present
Sandbox: attempt to open unexpected file /sys/devices/system/cpu
libva info: VA-API version 1.14.0

Revision history for this message
In , Jay+bz (jay+bz) wrote :

Also encountered on Firefox 102.3.0 while listening to music using Spotify's web portal ( https://open.spotify.com/ ).

```
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index3/size
Sandbox: attempt to open unexpected file /sys/devices/system/cpu/present
Sandbox: attempt to open unexpected file /sys/devices/system/cpu
Sandbox: unexpected multiple open of file /proc/cpuinfo
```

Around the same time, the browser tab became graphically unresponsive (blank contents).

Revision history for this message
In , Gpascutto (gpascutto) wrote :

>Also encountered on Firefox 102.3.0 while listening to music using Spotify's web portal

Hi James, as explained above the messages are just warnings, so something else must be going wrong. We'll need more details about your configuration, e.g. which distribution are you running? What graphics hardware and drivers do you have?

Could you try to run Firefox with ```MOZ_DISABLE_GMP_SANDBOX=1``` set in the environment and see if the issue reproduces?

Revision history for this message
In , Jay+bz (jay+bz) wrote :

Hi Gian-Carlo - this is on Debian 11 (bullseye), using the Intel i965 VA-API driver (and media.ffmpeg.vaapi.enabled=false in Firefox, if that's relevant).

I'm not super keen to attempt repro without the sandboxing in place at the moment but I'll add details if & when I do.

Revision history for this message
In , Jed Davis (jld-moz) wrote :

I've failed to reproduce this with Nightly and Debian unstable; I get the warnings about `/sys/devices/system/cpu` but nothing about `/proc/cpuinfo`. It's possible that that line is related to the error (i.e., whatever is trying to open `/proc/cpuinfo` for the second time causes media decoding to fail when it returns an error), but it could also be coincidence.

The browser tab locking up is unexpected, though — even if the media plugin process crashes or hangs, the media subsystem is pretty good about doing everything asynchronously. If try playing something and then kill the `gmplugin` process, it stops playing and I get an in-content error that “something went wrong with playback”, and then it won't play anything until I reload the tab; that's all more or less what I'd expect. If I `SIGSTOP` the process, a few seconds later the audio stops but the time in the UI keeps advancing (and if I `SIGCONT` it, it will resume playing where it left off, which is no longer where the UI says it's playing from; that's an interesting bug but it might be Spotify's and not ours). But, no sign of the content process locking up or crashing.

Revision history for this message
In , Jay+bz (jay+bz) wrote :

The tab doesn't completely lock up in this case - media continues to play audibly, and keyboard input is possible within the browser -- although invisible -- until the window and tab are visually obscured and then re-opened.

In other words: after the issue appears, switching to a separate application and back again permits a single frame of the browser contents to render, but after that point they remain visually static (until the next manual refresh occurs).

Revision history for this message
In , Jay+bz (jay+bz) wrote :

Ok, this happened to me again a few moments ago while browsing GitHub, and this time Spotify web player was not open (so my apologies for mistaking that as the possible cause).

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Release-mgmt-account-bot (release-mgmt-account-bot) wrote :

Clear a needinfo that is pending on an inactive user.

Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as `INCOMPLETE`.

For more information, please visit [BugBot documentation](https://wiki.mozilla.org/BugBot#inactive_ni_pending.py).

Revision history for this message
In , Timalsinasagar4512 (timalsinasagar4512) wrote :

I am getting this bug on manjaro on watching videos on coursera. I am using Mozilla Firefox 117.0.1 .
.[18813] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
[18813] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index3/size
[18813] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/present
[18813] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/possible

Revision history for this message
In , Aroshafer (aroshafer) wrote :

Created attachment 9381397
goamasmapou19816596.txt

Thanks from cocanaca1975.

Revision history for this message
In , O2q2tcedsh0 (o2q2tcedsh0) wrote :

I can reproduce it on the following page: https://plus.rtl.de/video-tv/shows/team-wallraff-reporter-undercover-242031/2024-4-993984/episode-1-schmutz-und-gier-undercover-in-der-reinigungsbranche-973676

Click on play(German "Abspielen").

Debian Stable Gnome Wayland with enabled Mozilla APT repository. Firefox 124.0.2.

Apr 06 17:12:09 user firefox.desktop[12712]: [12712] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
Apr 06 17:12:09 user firefox.desktop[12712]: [12712] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index3/size
Apr 06 17:12:09 user firefox.desktop[12712]: [12712] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/present
Apr 06 17:12:09 user firefox.desktop[12712]: [12712] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/possible
Apr 06 17:12:13 user firefox.desktop[12716]: [12716] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index2/size
Apr 06 17:12:13 user firefox.desktop[12716]: [12716] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/cpu0/cache/index3/size
Apr 06 17:12:13 user firefox.desktop[12716]: [12716] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/present
Apr 06 17:12:13 user firefox.desktop[12716]: [12716] Sandbox: attempt to open unexpected file /sys/devices/system/cpu/possible

No entries can be seen in the journal-logs with these parameters.
MOZ_DISABLE_GMP_SANDBOX=1 firefox -p
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
[Parent 15764, IPC I/O Parent] WARNING: waitid failed pid:16098 errno:10: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_posix.cc:244
[Parent 15764, IPC I/O Parent] WARNING: waitid failed pid:16091 errno:10: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_posix.cc:244
[Parent 15764, IPC I/O Parent] WARNING: waitid failed pid:15980 errno:10: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_posix.cc:244
[Parent 15764, IPC I/O Parent] WARNING: waitid failed pid:15954 errno:10: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_posix.cc:244

Revision history for this message
In , Marcos Alano (mhalano) wrote :

I got this error a lot on https://feedly.com. I have to close the browser and reopen so I can use Firefox again.

Revision history for this message
In , Marcos Alano (mhalano) wrote :

BTW, I'm using Firefox 125.0.2 on Ubuntu 24.04 LTS with .deb packages, not Snap.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.