-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rr does not work with ALSA (blocks access to /usr/share/alsa/alsa.conf) #2873
Comments
FTR, in case it's something with kernel I tried to reproduce that on another laptop, but stumbled upon a separate issue #2872 |
We're disabling access to You could try removing that, but then rr might not work. I don't know how ALSA communicates with userspace. If it involves kernel writes to memory shared with userspace, that won't work. |
Thanks!
I'm not quite clear from the commit: why is that?
So, if I was to debug an app using iouring, that would not work? |
I don't know exactly. Presumably at the time we just wanted to get Firefox working in rr and it wasn't working with ALSA for some reason. It might possibly work now (but I doubt it). Currently we don't support |
@rocallahan I just tried and rr still doesn't work with a binary that uses ALSA. Would it be difficult to solve this limitation? |
You can try this patch:
But my understanding is that ALSA uses shared memory mappings shared between the kernel and userspace. Handling that with rr is a lot of work. I'm not that motivated to do it. If someone else is feeling ambitious, I could talk them through it. |
Stumbled upon it while trying to debug
pipewire
.Steps to reproduce
Expected
The output of the second run of the
head
app would be the same as of the first run.Actual
The second run of the
head
app, which is underrr record
, prints an error that it couldn't openalsa.conf
file.Additional information
Recording
ls
the same way works fine:The directory in question doesn't have any special mount (mount output attached below), and I have no problem under
rr record
with reading for example/etc/fstab
which is located on the same filesystem.Version
Tested on older rr
5.4.0.r107.gf7c3d17b-1
as well as yesterday git5.4.0.r187.ge613d1a9-1
Lunux kernel:
5.12.4-arch1-1
(with v2 of multi-LRU patches, hopefully it doesn't matter).mount
The text was updated successfully, but these errors were encountered: