agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
520 stars 407 forks source link

Pulseaudio stack smashing error when starting #1362

Open farias-automac opened 2 weeks ago

farias-automac commented 2 weeks ago

Hello, I have an error when launching pulseaudio service. I'm building the image (32 bits) for a CM4, Scarthgap branch. It's a fresh test image with just Alsa, Pulseaudio, Systemd and Dbus. This is the error message:

D: [pulseaudio] alsa-util.c: start_threshold : -1 D: [pulseaudio] alsa-util.c: stop_threshold : 1073741824 D: [pulseaudio] alsa-util.c: silence_threshold: 0 D: [pulseaudio] alsa-util.c: silence_size : 0 D: [pulseaudio] alsa-util.c: boundary : 1073741824 D: [pulseaudio] alsa-util.c: appl_ptr : 0 D: [pulseaudio] alsa-util.c: hw_ptr : 0 D: [alsa-sink-MAI PCM i2s-hifi-0] alsa-sink.c: Thread starting up D: [alsa-sink-MAI PCM i2s-hifi-0] util.c: SCHED_RR|SCHED_RESET_ON_FORK worked. I: [alsa-sink-MAI PCM i2s-hifi-0] util.c: Successfully enabled SCHED_RR scheduling for thread, with priority 5. D: [pulseaudio] sink.c: alsa_output.platform-fef00700.hdmi.hdmi-stereo: state: INIT -> IDLE I: [alsa-sink-MAI PCM i2s-hifi-0] alsa-sink.c: Starting playback. stack smashing detected : terminated Aborted (core dumped) root@raspberrypi4:~# stack smashing detected

Please help, I have been struggling with this for several days.

kraj commented 2 weeks ago

Can you try /etc/asound.conf from say https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/raspberry-pi-usage#create-asound-dot-conf-file-3170879 and see if it helps ?

farias-automac commented 2 weeks ago

Hi kraj, thanks for your reply

I tried with your suggested conf file, but without luck. I'm getting the same error.

It is worth clarifying that things were going well with the Kirkstone branch. But when I switched to scarthgap pulseaudio no longer wants to start.

kraj commented 2 weeks ago

Perhaps try to compile pulseaudio with -fsanitize=address added to cflags and then run it. It should give move information during runtime about memory errors.

farias-automac commented 2 weeks ago

Sorry, I don't know how to do that.