Skip to content
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

Crash when replaying a trace of Mixxx (part 2) #3672

Open
napaalm opened this issue Dec 26, 2023 · 7 comments
Open

Crash when replaying a trace of Mixxx (part 2) #3672

napaalm opened this issue Dec 26, 2023 · 7 comments

Comments

@napaalm
Copy link

napaalm commented Dec 26, 2023

I just tried to debug Mixxx with rr built from master (at 285e117) after I saw that @rocallahan closed #3667.
Unfortunately, it still crashes.

Here are the logs @khuey asked me last time:

@GitMensch
Copy link
Contributor

Do all the tests pass using a current git checkout?

@khuey
Copy link
Collaborator

khuey commented Dec 27, 2023

The crash just indicates a generic divergence, this won't be as easy to figure out as the last one unfortunately.

Are you running on Intel hardware? If so, you could try this https://github.com/rr-debugger/rr/wiki/Debugging-divergence#intel-pt

@napaalm
Copy link
Author

napaalm commented Dec 29, 2023

@khuey I'm on AMD, but I might have found something interesting. In the page you linked there's also the following

In a failed replay, try following the emergency debugger instructions to get a stack. Are you somewhere suspicious, e.g. that might be manipulating memory shared outside the trace?

So, I tried and I got

loop_iterate_cancel (object=0x55980e7ed308, timeout=<optimized out>) at ../pipewire/spa/plugins/support/loop.c:438
438			spa_assert(s->loop == &impl->loop);
(gdb) bt
#0  loop_iterate_cancel (object=0x55980e7ed308, timeout=<optimized out>) at ../pipewire/spa/plugins/support/loop.c:438
#1  0x00007fae39761db2 in do_loop (user_data=0x55980e7c0040) at ../pipewire/src/pipewire/data-loop.c:65
#2  0x00007fae468aa9eb in start_thread (arg=<optimized out>) at pthread_create.c:444
#3  0x00007fae4692e654 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100

Does Pipewire use shared memory, like ALSA? (See #2873)

@napaalm
Copy link
Author

napaalm commented Dec 29, 2023

I confirm that I'm able to get past the point where it used to crash simply by stopping pipewire (systemctl --user stop pipewire.service pipewire.socket) before running rr record.

Unfortunately now I encountered another crash, so should I open another issue for that and leave this open to discuss the pipewire situation?

@khuey
Copy link
Collaborator

khuey commented Dec 29, 2023

Yeah, open (yet) another issue for that.

@napaalm
Copy link
Author

napaalm commented Dec 29, 2023

I would add that here Mixxx is trying to use JACK, but I installed pipewire-jack. I don't know if other jack implementations also cause divergence, nor if native pipewire does.

@khuey
Copy link
Collaborator

khuey commented Dec 29, 2023

We saw issues with pipewire and Firefox a while back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants