Bug 1849389 - pulseaudio segfaults when I connect usb audio devices
Summary: pulseaudio segfaults when I connect usb audio devices
Keywords:
Status: CLOSED DUPLICATE of bug 1846742
Alias: None
Product: Fedora
Classification: Fedora
Component: pulseaudio
Version: 32
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-21 09:35 UTC by Torbjørn Lindahl
Modified: 2020-06-21 16:09 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-06-21 16:09:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Torbjørn Lindahl 2020-06-21 09:35:17 UTC
Description of problem:

When I connect a usb sound output device (a DAC I suppose), I have tried two different brands, a running instance of pulseaudio stops working (most likely dies)

If I try to start it again, running pulseaudio on the command line as a regular user, it segfaults. If I disconnect the usb sound devices, pulseaudio starts just fine.

Version-Release number of selected component (if applicable):

pulseaudio-13.99.1-4.fc32.x86_64

How reproducible:

Always

Steps to Reproduce:
1. Connect a usb audio device
2. Observe no functional sound output
3.

Actual results:


Expected results:


Additional info:

Comment 1 Torbjørn Lindahl 2020-06-21 12:29:41 UTC
This is what shows up in dmesg when I try to tun pulseaudio:

20625.386498] pulseaudio[23293]: segfault at 9 ip 00007fd4b5350c0c sp 00007ffd98ea17b0 error 4 in libc-2.31.so[7fd4b52ed000+150000]
[20625.386512] Code: 43 28 00 00 00 00 48 8b 54 24 08 48 89 ef 48 89 43 10 48 83 cf 01 48 89 7b 08 48 89 53 18 48 89 2c 2b 48 85 c9 74 87 48 89 cb <48> 8b 43 08 89 c1 c1 e9 04 83 e9 02 49 8d 4c cc 10 49 39 cd 0f 85
[20627.813446] pulseaudio[23361]: segfault at 9 ip 00007f1e08328c0c sp 00007ffd9e767540 error 4 in libc-2.31.so[7f1e082c5000+150000]
[20627.813500] Code: 43 28 00 00 00 00 48 8b 54 24 08 48 89 ef 48 89 43 10 48 83 cf 01 48 89 7b 08 48 89 53 18 48 89 2c 2b 48 85 c9 74 87 48 89 cb <48> 8b 43 08 89 c1 c1 e9 04 83 e9 02 49 8d 4c cc 10 49 39 cd 0f 85
[20629.305652] pulseaudio[23381]: segfault at 9 ip 00007f3a0d5a8c0c sp 00007ffc32d6c280 error 4 in libc-2.31.so[7f3a0d545000+150000]
[20629.305668] Code: 43 28 00 00 00 00 48 8b 54 24 08 48 89 ef 48 89 43 10 48 83 cf 01 48 89 7b 08 48 89 53 18 48 89 2c 2b 48 85 c9 74 87 48 89 cb <48> 8b 43 08 89 c1 c1 e9 04 83 e9 02 49 8d 4c cc 10 49 39 cd 0f 85
[20630.715217] pulseaudio[23442]: segfault at 9 ip 00007f67213b8c0c sp 00007ffe6f8a6400 error 4 in libc-2.31.so[7f6721355000+150000]
[20630.715231] Code: 43 28 00 00 00 00 48 8b 54 24 08 48 89 ef 48 89 43 10 48 83 cf 01 48 89 7b 08 48 89 53 18 48 89 2c 2b 48 85 c9 74 87 48 89 cb <48> 8b 43 08 89 c1 c1 e9 04 83 e9 02 49 8d 4c cc 10 49 39 cd 0f 85

Comment 2 Torbjørn Lindahl 2020-06-21 12:35:19 UTC
journalctl says the following:

Jun 21 14:30:32 sirius.pp.nett systemd[1]: Started Process Core Dump (PID 24909/UID 0).
Jun 21 14:30:32 sirius.pp.nett audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@32-24909-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jun 21 14:30:32 sirius.pp.nett systemd-coredump[24910]: Process 24902 (pulseaudio) of user 1000 dumped core.
                                                        
                                                        Stack trace of thread 24902:
                                                        #0  0x00007f852c940c0c malloc_consolidate (libc.so.6 + 0x88c0c)
                                                        #1  0x00007f852c942af5 _int_malloc (libc.so.6 + 0x8aaf5)
                                                        #2  0x00007f852c944669 malloc (libc.so.6 + 0x8c669)
                                                        #3  0x00007f852c92dfc4 _IO_file_doallocate (libc.so.6 + 0x75fc4)
                                                        #4  0x00007f852c93cd20 _IO_doallocbuf (libc.so.6 + 0x84d20)
                                                        #5  0x00007f852c93bc5c _IO_file_underflow@@GLIBC_2.2.5 (libc.so.6 + 0x83c5c)
                                                        #6  0x00007f852c93cdd6 _IO_default_uflow (libc.so.6 + 0x84dd6)
                                                        #7  0x00007f852c937048 _IO_getc (libc.so.6 + 0x7f048)
                                                        #8  0x00007f8527aa3755 get_char.part.0 (libasound.so.2 + 0x33755)
                                                        #9  0x00007f8527aa3cbd get_char_skip_comments (libasound.so.2 + 0x33cbd)
                                                        #10 0x00007f8527aa65a8 parse_defs (libasound.so.2 + 0x365a8)
                                                        #11 0x00007f8527aa6c3a _snd_config_load_with_include (libasound.so.2 + 0x36c3a)
                                                        #12 0x00007f8527aa9fef snd_config_update_r (libasound.so.2 + 0x39fef)
                                                        #13 0x00007f8527aaa67e snd_config_update_ref (libasound.so.2 + 0x3a67e)
                                                        #14 0x00007f8527ab51fa snd_ctl_open (libasound.so.2 + 0x451fa)
                                                        #15 0x00007f8527b246c0 uc_mgr_open_ctl (libasound.so.2 + 0xb46c0)
                                                        #16 0x00007f8527b258d7 get_by_card (libasound.so.2 + 0xb58d7)
                                                        #17 0x00007f8527b29153 uc_mgr_import_master_config (libasound.so.2 + 0xb9153)
                                                        #18 0x00007f8527b2dd14 snd_use_case_mgr_open (libasound.so.2 + 0xbdd14)
                                                        #19 0x00007f8527bec46f pa_alsa_ucm_query_profiles (libalsa-util.so + 0x1c46f)
                                                        #20 0x00007f8527ca5374 module_alsa_card_LTX_pa__init (module-alsa-card.so + 0x5374)
                                                        #21 0x00007f852cd4b5a1 pa_module_load (libpulsecore-13.99.so + 0x335a1)
                                                        #22 0x00007f8527cb34a3 verify_access (module-udev-detect.so + 0x34a3)
                                                        #23 0x00007f8527cb44d3 module_udev_detect_LTX_pa__init (module-udev-detect.so + 0x44d3)
                                                        #24 0x00007f852cd4b5a1 pa_module_load (libpulsecore-13.99.so + 0x335a1)
                                                        #25 0x00007f852cd37334 pa_cli_command_load (libpulsecore-13.99.so + 0x1f334)
                                                        #26 0x00007f852cd3f34a pa_cli_command_execute_line_stateful (libpulsecore-13.99.so + 0x2734a)
                                                        #27 0x00007f852cd3fb09 pa_cli_command_execute_file_stream (libpulsecore-13.99.so + 0x27b09)
                                                        #28 0x0000555782392224 main (pulseaudio + 0x8224)
                                                        #29 0x00007f852c8df042 __libc_start_main (libc.so.6 + 0x27042)
                                                        #30 0x0000555782392f9e _start (pulseaudio + 0x8f9e)
                                                        
                                                        Stack trace of thread 24906:
                                                        #0  0x00007f852c9aec6e ppoll (libc.so.6 + 0xf6c6e)
                                                        #1  0x00007f852cd552f4 pa_rtpoll_run (libpulsecore-13.99.so + 0x3d2f4)
                                                        #2  0x00007f8527c00b3d thread_func (libalsa-util.so + 0x30b3d)
                                                        #3  0x00007f852cc395cc internal_thread_func (libpulsecommon-13.99.so + 0x595cc)
                                                        #4  0x00007f852ca99432 start_thread (libpthread.so.0 + 0x9432)
                                                        #5  0x00007f852c9b99d3 __clone (libc.so.6 + 0x1019d3)
Jun 21 14:30:32 sirius.pp.nett systemd[1]: systemd-coredump: Succeeded.
Jun 21 14:30:32 sirius.pp.nett audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@32-24909-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

Comment 3 Torbjørn Lindahl 2020-06-21 12:36:25 UTC
lsusb:

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 007: ID 05ac:0221 Apple, Inc. Aluminum Keyboard (ISO)
Bus 002 Device 006: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 004: ID 08bb:2902 Texas Instruments PCM2902 Audio Codec
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 012: ID 0bda:0307 Realtek Semiconductor Corp. Card Reader
Bus 001 Device 009: ID 0451:8043 Texas Instruments, Inc. Hub
Bus 001 Device 008: ID 0451:8043 Texas Instruments, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 1af3:0001 Kingsis Peripherals ZOWIE Gaming mouse
Bus 004 Device 004: ID 27ac:1000 KEF  KEF X300A Speaker
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 013 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 012 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 011 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 010 Device 002: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 010 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Comment 4 Torbjørn Lindahl 2020-06-21 12:36:44 UTC
lspci

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD9x0/RX980 Host Bridge (rev 02)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GFX port 0)
00:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 0)
00:05.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 1)
00:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 2)
00:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 3)
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 4)
00:0a.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP Port 5)
00:0b.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD990 PCI to PCI bridge (PCI Express GFX2 port 0)
00:0d.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890/RD9x0/RX980 PCI to PCI bridge (PCI Express GPP2 Port 0)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: NVIDIA Corporation GK110 [GeForce GTX 780] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK110 High Definition Audio Controller (rev a1)
02:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)
03:00.0 Ethernet controller: Intel Corporation 82583V Gigabit Network Connection
04:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
05:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
06:00.0 USB controller: ASMedia Technology Inc. ASM1042 SuperSpeed USB Host Controller
07:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01)

Comment 5 Torbjørn Lindahl 2020-06-21 13:51:52 UTC
downgrading to alsa-lib-1.2.2-2.fc32.x86_64 caused pulseaudio not to segfault any more.

Comment 6 Jaroslav Kysela 2020-06-21 16:09:31 UTC

*** This bug has been marked as a duplicate of bug 1846742 ***


Note You need to log in before you can comment on or make changes to this bug.