Pulseaudio doesn't start correctly unless I run it with straceMonitor com port with straceHow does PulseAudio...
How can the mourner remarry within one month, if he has to wait two regalim?
Did Terry Pratchett ever explain the inspiration behind the Luggage?
How are Aircraft Noses Designed?
Why do military jets sometimes have elevators in a depressed position when parked?
2000's spooky show with a group of teens telling spooky stories in the woods
Fat Cantor Set with large complement???
How can I seal 8 inch round holes in my siding?
Encountering former, abusive advisor at a conference
Car as a good investment
How can I make a smooth transition from being a Black-Box Tester to an expert Automation Engineer?
Why doesn't hot charcoal glow blue?
What is the "5th Edition Adventures" book series?
Sum of all digits in a string
On notice period - coworker I need to train is giving me the silent treatment
Replace spaces with comma but not in the whole line
How can a stock trade for a fraction of a cent?
Why is こんばんみ used as a response to こんばんは?
What fantasy book has twins (except one's blue) and a cloaked ice bear on the cover?
Is it possible for a country to develop the equivalent of a Second Industrial Revolution while under a war of attrition?
When was the famous "sudo warning" introduced? Under what background? By whom?
Charges from Dollar General have never shown up on my debit card. How can I resolve this?
Word for 'most late'
What actually is "unallocated space"?
Why were germanium diodes so fast and germanium transisters so slow?
Pulseaudio doesn't start correctly unless I run it with strace
Monitor com port with straceHow does PulseAudio start?Can not start pulseaudioCheck whether Built-In Audio is active from different user loginHow to prevent Pulseaudio to crash when I start a virtual machine from VirtualBox?Not sure what starts this systemd unit fileOn-demand SSH Socks proxy through systemd user units with socket-activation doesn't restart as wishedstrace -p with number of lines of context/historyPulseAudio fails to launch in system mode in CentOS 7Latency doesn't work with PulseAudio on linux
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{
margin-bottom:0;
}
So here's a weird problem that I've been experiencing.
I've been using PulseAudio to create a fake loopback interface on a Virtual Machine for music streaming purposes. A few days ago the server rebooted unexpectedly, and suddenly, the PulseAudio daemon stopped being able to bind to its socket (running as root, I'm aware this is not recommended, but this is a VM whose only purpose is to do this). It's running as root, so it should theoretically have EVERY permission to do this, so I suspected something else was happening.
Now, the PA daemon starts from a systemd
unit. It seemed to work great from the root account running the exact same command, so I decided to try to strace
the systemd unit to see what it was doing. However, I did this and the pulseaudio daemon bound correctly! It started up and began working as expected! So as a stopgap measure, I currently run the following command in the unit to get it working:
/bin/strace -e '!all' /bin/pulseaudio --start --daemonize=no
My question is why on earth would running strace in front of a program change it's behavior? I think It might have something to do with environment variables, but I can't seem to figure out if strace loads them.
Edit: I should note that this VM is intentionally headless, and doesn't have a display manager. I'm using Xvfb with a 1x1 display to get dbus to work. The whole thing is a hack of sorts, but it has worked until this weekend.
systemd pulseaudio strace headless
add a comment
|
So here's a weird problem that I've been experiencing.
I've been using PulseAudio to create a fake loopback interface on a Virtual Machine for music streaming purposes. A few days ago the server rebooted unexpectedly, and suddenly, the PulseAudio daemon stopped being able to bind to its socket (running as root, I'm aware this is not recommended, but this is a VM whose only purpose is to do this). It's running as root, so it should theoretically have EVERY permission to do this, so I suspected something else was happening.
Now, the PA daemon starts from a systemd
unit. It seemed to work great from the root account running the exact same command, so I decided to try to strace
the systemd unit to see what it was doing. However, I did this and the pulseaudio daemon bound correctly! It started up and began working as expected! So as a stopgap measure, I currently run the following command in the unit to get it working:
/bin/strace -e '!all' /bin/pulseaudio --start --daemonize=no
My question is why on earth would running strace in front of a program change it's behavior? I think It might have something to do with environment variables, but I can't seem to figure out if strace loads them.
Edit: I should note that this VM is intentionally headless, and doesn't have a display manager. I'm using Xvfb with a 1x1 display to get dbus to work. The whole thing is a hack of sorts, but it has worked until this weekend.
systemd pulseaudio strace headless
add a comment
|
So here's a weird problem that I've been experiencing.
I've been using PulseAudio to create a fake loopback interface on a Virtual Machine for music streaming purposes. A few days ago the server rebooted unexpectedly, and suddenly, the PulseAudio daemon stopped being able to bind to its socket (running as root, I'm aware this is not recommended, but this is a VM whose only purpose is to do this). It's running as root, so it should theoretically have EVERY permission to do this, so I suspected something else was happening.
Now, the PA daemon starts from a systemd
unit. It seemed to work great from the root account running the exact same command, so I decided to try to strace
the systemd unit to see what it was doing. However, I did this and the pulseaudio daemon bound correctly! It started up and began working as expected! So as a stopgap measure, I currently run the following command in the unit to get it working:
/bin/strace -e '!all' /bin/pulseaudio --start --daemonize=no
My question is why on earth would running strace in front of a program change it's behavior? I think It might have something to do with environment variables, but I can't seem to figure out if strace loads them.
Edit: I should note that this VM is intentionally headless, and doesn't have a display manager. I'm using Xvfb with a 1x1 display to get dbus to work. The whole thing is a hack of sorts, but it has worked until this weekend.
systemd pulseaudio strace headless
So here's a weird problem that I've been experiencing.
I've been using PulseAudio to create a fake loopback interface on a Virtual Machine for music streaming purposes. A few days ago the server rebooted unexpectedly, and suddenly, the PulseAudio daemon stopped being able to bind to its socket (running as root, I'm aware this is not recommended, but this is a VM whose only purpose is to do this). It's running as root, so it should theoretically have EVERY permission to do this, so I suspected something else was happening.
Now, the PA daemon starts from a systemd
unit. It seemed to work great from the root account running the exact same command, so I decided to try to strace
the systemd unit to see what it was doing. However, I did this and the pulseaudio daemon bound correctly! It started up and began working as expected! So as a stopgap measure, I currently run the following command in the unit to get it working:
/bin/strace -e '!all' /bin/pulseaudio --start --daemonize=no
My question is why on earth would running strace in front of a program change it's behavior? I think It might have something to do with environment variables, but I can't seem to figure out if strace loads them.
Edit: I should note that this VM is intentionally headless, and doesn't have a display manager. I'm using Xvfb with a 1x1 display to get dbus to work. The whole thing is a hack of sorts, but it has worked until this weekend.
systemd pulseaudio strace headless
systemd pulseaudio strace headless
asked 1 hour ago
duper51duper51
1041 bronze badge
1041 bronze badge
add a comment
|
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f546237%2fpulseaudio-doesnt-start-correctly-unless-i-run-it-with-strace%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f546237%2fpulseaudio-doesnt-start-correctly-unless-i-run-it-with-strace%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown