[MacPorts] #46658: pulseaudio @5.0_1: builds but doesn't work

MacPorts noreply at macports.org
Thu Dec 15 17:12:53 CET 2016


#46658: pulseaudio @5.0_1: builds but doesn't work
-------------------------+----------------------
  Reporter:  RJVB        |      Owner:  Ionic
      Type:  defect      |     Status:  reopened
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.3.3
Resolution:              |   Keywords:
      Port:  pulseaudio  |
-------------------------+----------------------

Comment (by kencu):

 Thanks - pulseaudio seems to have the same permissions as other
 executables in there...
 {{{
 -rwxr-xr-x     1 root  admin      3971  7 Jun  2016 pth-config
 -rwxr-xr-x     1 root  admin    107484 14 Dec 15:44 pulseaudio
 -rwxr-xr-x     1 root  admin     80276 11 Oct 09:34 pwdecrypt
 }}}

 {{{
 $ ls -la libpul*
 -rwxr-xr-x  1 root  admin   39160 14 Dec 15:44 libpulse-mainloop-
 glib.0.dylib
 lrwxr-xr-x  1 root  admin      30 14 Dec 15:44 libpulse-mainloop-
 glib.dylib -> libpulse-mainloop-glib.0.dylib
 -rwxr-xr-x  1 root  admin   36696 14 Dec 15:44 libpulse-simple.0.dylib
 lrwxr-xr-x  1 root  admin      23 14 Dec 15:44 libpulse-simple.dylib ->
 libpulse-simple.0.dylib
 -rwxr-xr-x  1 root  admin  325344 14 Dec 15:44 libpulse.0.dylib
 lrwxr-xr-x  1 root  admin      16 14 Dec 15:44 libpulse.dylib ->
 libpulse.0.dylib
 }}}

 {{{

 $ file libpulse.0.dylib
 libpulse.0.dylib: Mach-O 64-bit dynamically linked shared library x86_64
 }}}
 {{{

 $ otool -L libpulse.0.dylib
 libpulse.0.dylib:
         /opt/local/lib/libpulse.0.dylib (compatibility version 21.0.0,
 current version 21.0.0)
         /opt/local/lib/pulseaudio/libpulsecommon-9.0.dylib (compatibility
 version 0.0.0, current version 0.0.0)
         /opt/local/lib/libX11-xcb.1.dylib (compatibility version 2.0.0,
 current version 2.0.0)
         /opt/local/lib/libX11.6.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /opt/local/lib/libxcb.1.dylib (compatibility version 3.0.0,
 current version 3.0.0)
         /opt/local/lib/libICE.6.dylib (compatibility version 10.0.0,
 current version 10.0.0)
         /opt/local/lib/libSM.6.dylib (compatibility version 7.0.0, current
 version 7.1.0)
         /opt/local/lib/libXtst.6.dylib (compatibility version 8.0.0,
 current version 8.0.0)
         /opt/local/lib/libintl.8.dylib (compatibility version 10.0.0,
 current version 10.5.0)
         /opt/local/lib/libjson-c.2.dylib (compatibility version 3.0.0,
 current version 3.2.0)
         /opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0,
 current version 8.1.0)
         /opt/local/lib/libsndfile.1.dylib (compatibility version 2.0.0,
 current version 2.26.0)
         /opt/local/lib/libdbus-1.3.dylib (compatibility version 18.0.0,
 current version 18.8.0)
         /opt/local/lib/libgdbm.4.dylib (compatibility version 5.0.0,
 current version 5.0.0)
 /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
 (compatibility version 1.0.0, current version 44.0.0)
 /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
 (compatibility version 150.0.0, current version 550.44.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 125.2.11)
 }}}

 dbus seems to be loaded and running
 {{{
 $ ps -a -u root | grep dbus
   500    64 ??         0:00.04 /opt/local/bin/dbus-daemon --system
 --nofork
 }}}

 I don't know much about dbus - I see it's linked against `libdbus-1.3`.
 Perhaps some kind of dbus version thingy? Maybe my dbus is loaded but not
 working correctly?

 here's the printout from
 {{{

 $ pulseaudio -vvvvvvvvvvvvvvvv
 W: [] caps.c: Normally all extra capabilities would be dropped now, but
 that's impossible because PulseAudio was built without capabilities
 support.
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 Dynamic session lookup supported but failed: Unable to find launchd socket
 when setuid
 E: [] core-util.c: Failed to connect to system bus: Not enough memory
 I: [] core-util.c: Failed to acquire high-priority scheduling:
 Input/output error
 I: [] main.c: This is PulseAudio 9.0-rebootstrapped
 D: [] main.c: Compilation host: x86_64-apple-darwin10.8.0
 D: [] main.c: Compilation CFLAGS: -pipe -Os -arch x86_64 -Wall -W -Wextra
 -Wno-long-long -Wno-overlength-strings -Wundef -Wformat=2 -Wsign-compare
 -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-
 definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement
 -Wfloat-equal -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls
 -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-
 align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math
 -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto -mmacosx-
 version-min=10.6 -isysroot /
 D: [] main.c: Running on host: Darwin i386 10.8.0 Darwin Kernel Version
 10.8.0: Tue Jun  7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386
 D: [] main.c: Found 2 CPUs.
 I: [] main.c: Page size is 4096 bytes
 D: [] main.c: Compiled with Valgrind support: no
 D: [] main.c: Running in valgrind mode: no
 D: [] main.c: Running in VM: no
 D: [] main.c: Optimized build: yes
 D: [] main.c: FASTPATH defined, only fast path asserts disabled.
 I: [] main.c: Machine ID is a6e343d28e0aa658e03380295806ccbb.
 I: [] main.c: Using runtime directory /Users/cunningh/.config/pulse
 /a6e343d28e0aa658e03380295806ccbb-runtime.
 I: [] main.c: Using state directory /Users/cunningh/.config/pulse.
 I: [] main.c: Using modules directory /opt/local/lib/pulse-9.0/modules.
 I: [] main.c: Running in system mode: no
 W: [] pid.c: Stale PID file, overwriting.
 I: [] main.c: System supports high resolution timers
 D: [] memblock.c: Using shared posix-shm memory pool with 1024 slots of
 size 64.0 KiB each, total size is 64.0 MiB, maximum usable slot size is
 65472
 I: [] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3
 I: [] svolume_mmx.c: Initialising MMX optimized volume functions.
 I: [] remap_mmx.c: Initialising MMX optimized remappers.
 I: [] svolume_sse.c: Initialising SSE2 optimized volume functions.
 I: [] remap_sse.c: Initialising SSE2 optimized remappers.
 I: [] sconv_sse.c: Initialising SSE2 optimized conversions.
 I: [] svolume_orc.c: Initialising ORC optimized volume functions.
 D: [] database-gdbm.c: Opened GDBM database '/Users/cunningh/.config/pulse
 /a6e343d28e0aa658e03380295806ccbb-device-volumes.x86_64-apple-
 darwin10.8.0.gdbm'
 I: [] module-device-restore.c: Successfully opened database file
 '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-device-
 volumes'.
 I: [] module.c: Loaded "module-device-restore" (index: #0; argument: "").
 D: [] database-gdbm.c: Opened GDBM database '/Users/cunningh/.config/pulse
 /a6e343d28e0aa658e03380295806ccbb-stream-volumes.x86_64-apple-
 darwin10.8.0.gdbm'
 I: [] module-stream-restore.c: Successfully opened database file
 '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-stream-
 volumes'.
 D: [] protocol-dbus.c: Interface org.PulseAudio.Ext.StreamRestore1 added
 for object /org/pulseaudio/stream_restore1
 I: [] module.c: Loaded "module-stream-restore" (index: #1; argument: "").
 D: [] database-gdbm.c: Opened GDBM database '/Users/cunningh/.config/pulse
 /a6e343d28e0aa658e03380295806ccbb-card-database.x86_64-apple-
 darwin10.8.0.gdbm'
 I: [] module-card-restore.c: Successfully opened database file
 '/Users/cunningh/.config/pulse/a6e343d28e0aa658e03380295806ccbb-card-
 database'.
 I: [] module.c: Loaded "module-card-restore" (index: #2; argument: "").
 I: [] module.c: Loaded "module-augment-properties" (index: #3; argument:
 "").
 I: [] module.c: Loaded "module-switch-on-port-available" (index: #4;
 argument: "").
 D: [] module.c: Checking for existence of
 '/opt/local/lib/pulse-9.0/modules/module-coreaudio-detect.so': success
 D: [] module-coreaudio-detect.c: Loading module-coreaudio-device with
 arguments 'object_id=263 record=1 playback=1'
 I: [] module-coreaudio-device.c: Initializing module for CoreAudio device
 'Built-in Microphone' (id 263)
 I: [] module-card-restore.c: Restoring port latency offsets for card
 Built-in_Microphone.
 I: [] card.c: Created 0 "Built-in_Microphone"
 D: [] module-coreaudio-device.c: Sample rate: 44100.000000
 D: [] module-coreaudio-device.c: 8 bytes per packet
 D: [] module-coreaudio-device.c: 1 frames per packet
 D: [] module-coreaudio-device.c: 8 bytes per frame
 D: [] module-coreaudio-device.c: 2 channels per frame
 D: [] module-coreaudio-device.c: 32 bits per channel
 D: [] module-coreaudio-device.c: Stream name is >Channel 1, Channel 2<
 D: [] module-device-restore.c: Database contains no data for key:
 source:Channel_1__Channel_2
 D: [] module-device-restore.c: Database contains no (or invalid) data for
 key: source:Channel_1__Channel_2:null
 I: [] source.c: Created source 0 "Channel_1__Channel_2" with sample spec
 float32le 2ch 44100Hz and channel map front-left,front-right
 I: [] source.c:     device.string = "Built-in Microphone"
 I: [] source.c:     device.product.name = "Built-in Microphone"
 I: [] source.c:     device.description = "Built-in Microphone"
 I: [] source.c:     device.access_mode = "mmap"
 I: [] source.c:     device.class = "sound"
 I: [] source.c:     device.api = "CoreAudio"
 I: [] source.c:     device.buffering.buffer_size = "4096"
 I: [] source.c:     device.vendor.name = "Apple Inc."
 I: [] source.c:     device.icon_name = "audio-card"
 D: [] module-coreaudio-device.c: 512 frames per IOProc
 D: [Built-in Microphone] module-coreaudio-device.c: Thread starting up
 D: [Built-in Microphone] core-util.c: sysctl for hw.cpufrequency:
 2330000000
 I: [Built-in Microphone] core-util.c: Successfully acquired real-time
 thread priority.
 I: [] module.c: Loaded "module-coreaudio-device" (index: #6; argument:
 "object_id=263 record=1 playback=1").
 D: [] module-coreaudio-detect.c: Loading module-coreaudio-device with
 arguments 'object_id=261 record=1 playback=1'
 I: [] module-coreaudio-device.c: Initializing module for CoreAudio device
 'Built-in Input' (id 261)
 I: [] module-card-restore.c: Restoring port latency offsets for card
 Built-in_Input.
 I: [] card.c: Created 1 "Built-in_Input"
 D: [] module-coreaudio-device.c: Sample rate: 44100.000000
 D: [] module-coreaudio-device.c: 8 bytes per packet
 D: [] module-coreaudio-device.c: 1 frames per packet
 D: [] module-coreaudio-device.c: 8 bytes per frame
 D: [] module-coreaudio-device.c: 2 channels per frame
 D: [] module-coreaudio-device.c: 32 bits per channel
 D: [] module-coreaudio-device.c: Stream name is >Channel 1, Channel 2<
 D: [] core-subscribe.c: Dropped redundant event due to change event.
 D: [] module-device-restore.c: Database contains no data for key:
 source:Channel_1__Channel_2.2
 D: [] module-device-restore.c: Database contains no (or invalid) data for
 key: source:Channel_1__Channel_2.2:null
 I: [] source.c: Created source 1 "Channel_1__Channel_2.2" with sample spec
 float32le 2ch 44100Hz and channel map front-left,front-right
 I: [] source.c:     device.string = "Built-in Input"
 I: [] source.c:     device.product.name = "Built-in Input"
 I: [] source.c:     device.description = "Built-in Input"
 I: [] source.c:     device.access_mode = "mmap"
 I: [] source.c:     device.class = "sound"
 I: [] source.c:     device.api = "CoreAudio"
 I: [] source.c:     device.buffering.buffer_size = "4096"
 I: [] source.c:     device.vendor.name = "Apple Inc."
 I: [] source.c:     device.icon_name = "audio-card"
 D: [] module-coreaudio-device.c: 512 frames per IOProc
 D: [Built-in Input] module-coreaudio-device.c: Thread starting up
 D: [Built-in Input] core-util.c: sysctl for hw.cpufrequency: 2330000000
 I: [Built-in Input] core-util.c: Successfully acquired real-time thread
 priority.
 I: [] module.c: Loaded "module-coreaudio-device" (index: #7; argument:
 "object_id=261 record=1 playback=1").
 D: [] module-coreaudio-detect.c: Loading module-coreaudio-device with
 arguments 'object_id=265 record=1 playback=1'
 I: [] module-coreaudio-device.c: Initializing module for CoreAudio device
 'Built-in Output' (id 265)
 I: [] module-card-restore.c: Restoring port latency offsets for card
 Built-in_Output.
 I: [] card.c: Created 2 "Built-in_Output"
 D: [] module-coreaudio-device.c: Sample rate: 44100.000000
 D: [] module-coreaudio-device.c: 8 bytes per packet
 D: [] module-coreaudio-device.c: 1 frames per packet
 D: [] module-coreaudio-device.c: 8 bytes per frame
 D: [] module-coreaudio-device.c: 2 channels per frame
 D: [] module-coreaudio-device.c: 32 bits per channel
 pulseaudio(53039,0x7fff71106cc0) malloc: *** error for object 0x100d0d8b8:
 pointer being freed was not allocated
 *** set a breakpoint in malloc_error_break to debug
 Abort trap
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/46658#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list