PulseAudio di Cygwin: Gagal membuat direktori aman: Kesalahan tidak dikenal 13

0

Saya tidak dapat menjalankan PulseAudio di Cygwin.

Sistem Operasi: Windows 8 Pro 64 bit

Cygwin Setup.exe Versi: 2.831 (64 bit)

Versi PulseAudio: 2.1-1

Ketika saya menjalankan:

pulseaudio -vv

ini adalah output:

D: [(null)] core-util.c: setpriority() worked.
I: [(null)] core-util.c: Successfully gained nice level -11.
I: [(null)] main.c: This is PulseAudio 2.1
D: [(null)] main.c: Compilation host: x86_64-unknown-cygwin
D: [(null)] main.c: Compilation CFLAGS: -ggdb -O2 -pipe -fdebug-prefix-map=/usr/src/ports/pulseaudio/pulseaudio-2.1-1/build=/usr/src/debug/pulseaudio-2.1-1 -fdebug-prefix-map=/usr/src/ports/pulseaudio/pulseaudio-2.1-1/src/pulseaudio-2.1=/usr/src/debug/pulseaudio-2.1-1 -Wall -W -Wextra -Wno-long-long -Wvla -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -Wp,-D_FORTIFY_SOURCE=2 -fno-common -fdiagnostics-show-option
D: [(null)] main.c: Running on host: CYGWIN_NT-6.2 x86_64 1.7.25(0.270/5/3) 2013-08-31 20:37
D: [(null)] main.c: Found 4 CPUs.
I: [(null)] main.c: Page size is 65536 bytes
D: [(null)] main.c: Compiled with Valgrind support: no
D: [(null)] main.c: Running in valgrind mode: no
D: [(null)] main.c: Running in VM: no
D: [(null)] main.c: Optimized build: yes
D: [(null)] main.c: FASTPATH defined, only fast path asserts disabled.
I: [(null)] main.c: Machine ID is 5d8bd07cb924c67197184e42527f2603.
E: [(null)] core-util.c: Failed to create secure directory: Unknown error 13

Saat aku malah berlari

pulseaudio -vv --start

outputnya adalah ini:

E: [autospawn] core-util.c: Failed to create secure directory: Unknown error 13
W: [autospawn] lock-autospawn.c: Cannot access autospawn lock.
E: [(null)] main.c: Failed to acquire autospawn lock

Ketika saya berlari strace pulseaudio -vv, beberapa baris terakhir dalam output adalah:

418 2049456 [main] pulseaudio 6196 stat64: entering
57 2049513 [main] pulseaudio 6196 normalize_posix_path: src /cygdrive/c/Users/Nithin
49 2049562 [main] pulseaudio 6196 normalize_posix_path: /cygdrive/c/Users/Nithin = normalize_posix_path (/cygdrive/c/Users/Nithin)
45 2049607 [main] pulseaudio 6196 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/Users/Nithin)
51 2049658 [main] pulseaudio 6196 mount_info::cygdrive_win32_path: src '/cygdrive/c/Users/Nithin', dst 'C:\Users\Nithin'
52 2049710 [main] pulseaudio 6196 set_flags: flags: binary (0x2)
57 2049767 [main] pulseaudio 6196 mount_info::conv_to_win32_path: src_path /cygdrive/c/Users/Nithin, dst C:\Users\Nithin, flags 0x4022, rc 0
197 2049964 [main] pulseaudio 6196 symlink_info::check: 0x0 = NtCreateFile (\??\C:\Users\Nithin)
99 2050063 [main] pulseaudio 6196 symlink_info::check: not a symlink
77 2050140 [main] pulseaudio 6196 symlink_info::check: 0 = symlink.check(C:\Users\Nithin, 0x239500) (0x404022)
57 2050197 [main] pulseaudio 6196 path_conv::check: this->path(C:\Users\Nithin), has_acls(1)
64 2050261 [main] pulseaudio 6196 build_fh_pc: fh 0x1802E21E0, dev 000000C3
49 2050310 [main] pulseaudio 6196 stat_worker: (\??\C:\Users\Nithin, 0x23A740, 0x1802E21E0), file_attributes 16
133 2050443 [main] pulseaudio 6196 cygpsid::debug_print: get_sids_info: owner SID = S-1-5-21-3177082625-651608231-1113841901-1001
54 2050497 [main] pulseaudio 6196 cygpsid::debug_print: get_sids_info: group SID = S-1-5-18
63 2050560 [main] pulseaudio 6196 get_info_from_sd: ACL 0x41FD, uid 1001, gid 18
90 2050650 [main] pulseaudio 6196 fhandler_base::fstat_helper: 0 = fstat (\??\C:\Users\Nithin, 0x23A740) st_size=0, st_mode=0x41FD, st_ino=844424930179137st_atim=5283187B.E70DAEC st_ctim=5283187B.E70DAEC st_mtim=5283187B.E70DAEC st_birthtim=51EB850E.397523D8
63 2050713 [main] pulseaudio 6196 stat_worker: 0 = (\??\C:\Users\Nithin,0x23A740)
203 2050916 [main] pulseaudio 6196 normalize_posix_path: src /cygdrive/c/Users/Nithin/.pulse
52 2050968 [main] pulseaudio 6196 normalize_posix_path: /cygdrive/c/Users/Nithin/.pulse = normalize_posix_path (/cygdrive/c/Users/Nithin/.pulse)
49 2051017 [main] pulseaudio 6196 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/Users/Nithin/.pulse)
54 2051071 [main] pulseaudio 6196 mount_info::cygdrive_win32_path: src '/cygdrive/c/Users/Nithin/.pulse', dst 'C:\Users\Nithin\.pulse'
393 2051464 [main] pulseaudio 6196 set_flags: flags: binary (0x2)
62 2051526 [main] pulseaudio 6196 mount_info::conv_to_win32_path: src_path /cygdrive/c/Users/Nithin/.pulse, dst C:\Users\Nithin\.pulse, flags 0x4022, rc 0
150 2051676 [main] pulseaudio 6196 symlink_info::check: 0xC0000034 = NtCreateFile (\??\C:\Users\Nithin\.pulse)
63 2051739 [main] pulseaudio 6196 symlink_info::check: 0xC0000034 = NtQueryInformationFile (\??\C:\Users\Nithin\.pulse)
101 2051840 [main] pulseaudio 6196 symlink_info::check: 0xC0000034 = NtCreateFile (\??\C:\Users\Nithin\.pulse.lnk)
245 2052085 [main] pulseaudio 6196 symlink_info::check: 0xC0000034 = NtQueryInformationFile (\??\C:\Users\Nithin\.pulse.lnk)
57 2052142 [main] pulseaudio 6196 symlink_info::check: 0 = symlink.check(C:\Users\Nithin\.pulse, 0x239310) (0x4022)
56 2052198 [main] pulseaudio 6196 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/Users/Nithin)
53 2052251 [main] pulseaudio 6196 mount_info::cygdrive_win32_path: src '/cygdrive/c/Users/Nithin', dst 'C:\Users\Nithin'
47 2052298 [main] pulseaudio 6196 set_flags: flags: binary (0x2)
45 2052343 [main] pulseaudio 6196 mount_info::conv_to_win32_path: src_path /cygdrive/c/Users/Nithin, dst C:\Users\Nithin, flags 0x4022, rc 0
133 2052476 [main] pulseaudio 6196 symlink_info::check: 0x0 = NtCreateFile (\??\C:\Users\Nithin)
93 2052569 [main] pulseaudio 6196 symlink_info::check: not a symlink
100 2052669 [main] pulseaudio 6196 symlink_info::check: 0 = symlink.check(C:\Users\Nithin, 0x239310) (0x4022)
63 2052732 [main] pulseaudio 6196 path_conv::check: this->path(C:\Users\Nithin\.pulse), has_acls(1)
62 2052794 [main] pulseaudio 6196 build_fh_pc: fh 0x1802E21E0, dev 000000C3
946 2053740 [main] pulseaudio 6196 alloc_sd: uid 4294967295, gid 4294967295, attribute 0x800041C0
81 2053821 [main] pulseaudio 6196 cygsid::debug_print: alloc_sd: owner SID = S-1-5-21-3177082625-651608231-1113841901-1001 (+)
63 2053884 [main] pulseaudio 6196 cygsid::debug_print: alloc_sd: group SID = S-1-5-21-3177082625-651608231-1113841901-1001 (+)
58 2053942 [main] pulseaudio 6196 alloc_sd: ACL-Size: 168
135 2054077 [main] pulseaudio 6196 alloc_sd: Created SD-Size: 244
316 2054393 [main] pulseaudio 6196 set_file_attribute: 0 = set_file_attribute(\??\C:\Users\Nithin\.pulse, -1, -1, 0x800041C0)
195 2054588 [main] pulseaudio 6196 mkdir: 0 = mkdir(/cygdrive/c/Users/Nithin/.pulse, 448)
65 2054653 [main] pulseaudio 6196 open: open(/cygdrive/c/Users/Nithin/.pulse, 0x148000)
56 2054709 [main] pulseaudio 6196 normalize_posix_path: src /cygdrive/c/Users/Nithin/.pulse
45 2054754 [main] pulseaudio 6196 normalize_posix_path: /cygdrive/c/Users/Nithin/.pulse = normalize_posix_path (/cygdrive/c/Users/Nithin/.pulse)
48 2054802 [main] pulseaudio 6196 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/Users/Nithin/.pulse)
57 2054859 [main] pulseaudio 6196 mount_info::cygdrive_win32_path: src '/cygdrive/c/Users/Nithin/.pulse', dst 'C:\Users\Nithin\.pulse'
49 2054908 [main] pulseaudio 6196 set_flags: flags: binary (0x2)
39 2054947 [main] pulseaudio 6196 mount_info::conv_to_win32_path: src_path /cygdrive/c/Users/Nithin/.pulse, dst C:\Users\Nithin\.pulse, flags 0x4022, rc 0
140 2055087 [main] pulseaudio 6196 symlink_info::check: 0x0 = NtCreateFile (\??\C:\Users\Nithin\.pulse)
95 2055182 [main] pulseaudio 6196 symlink_info::check: not a symlink
90 2055272 [main] pulseaudio 6196 symlink_info::check: 0 = symlink.check(C:\Users\Nithin\.pulse, 0x239310) (0x4022)
59 2055331 [main] pulseaudio 6196 path_conv::check: this->path(C:\Users\Nithin\.pulse), has_acls(1)
63 2055394 [main] pulseaudio 6196 build_fh_pc: fh 0x1802E21E0, dev 000000C3
48 2055442 [main] pulseaudio 6196 fhandler_base::open: (\??\C:\Users\Nithin\.pulse, 0x148000)
110 2055552 [main] pulseaudio 6196 fhandler_base::set_flags: flags 0x148000, supplied_bin 0x10000
167 2055719 [main] pulseaudio 6196 fhandler_base::set_flags: filemode set to binary
57 2055776 [main] pulseaudio 6196 fhandler_base::open: 0x0 = NtCreateFile (0x280, 0x80100000, \??\C:\Users\Nithin\.pulse, io, NULL, 0x0, 0x7, 0x1, 0x4020, NULL, 0)
59 2055835 [main] pulseaudio 6196 fhandler_base::open: 1 = fhandler_base::open(\??\C:\Users\Nithin\.pulse, 0x148000)
70 2055905 [main] pulseaudio 6196 fhandler_base::open_fs: 1 = fhandler_disk_file::open(\??\C:\Users\Nithin\.pulse, 0x148000)
55 2055960 [main] pulseaudio 6196 open: 3 = open(/cygdrive/c/Users/Nithin/.pulse, 0x148000)
141 2056101 [main] pulseaudio 6196 cygpsid::debug_print: get_sids_info: owner SID = S-1-5-21-3177082625-651608231-1113841901-1001
50 2056151 [main] pulseaudio 6196 cygpsid::debug_print: get_sids_info: group SID = S-1-5-21-3177082625-651608231-1113841901-1001
48 2056199 [main] pulseaudio 6196 get_info_from_sd: ACL 0x41F8, uid 1001, gid 513
85 2056284 [main] pulseaudio 6196 fhandler_base::fstat_helper: 0 = fstat (\??\C:\Users\Nithin\.pulse, 0x23A720) st_size=0, st_mode=0x41F8, st_ino=31525197391787136st_atim=5283187E.29B8654 st_ctim=5283187E.2BA1B3C st_mtim=5283187E.29B8654 st_birthtim=5283187E.29B8654
104 2056388 [main] pulseaudio 6196 fstat64: 0 = fstat(3, 0x23A720)
94 2056482 [main] pulseaudio 6196 cygpsid::debug_print: get_sids_info: owner SID = S-1-5-21-3177082625-651608231-1113841901-1001
55 2056537 [main] pulseaudio 6196 cygpsid::debug_print: get_sids_info: group SID = S-1-5-21-3177082625-651608231-1113841901-1001
53 2056590 [main] pulseaudio 6196 get_info_from_sd: ACL 0x41F8, uid 1001, gid 513
125 2056715 [main] pulseaudio 6196 alloc_sd: uid 1001, gid 513, attribute 0x41F8
55 2056770 [main] pulseaudio 6196 cygsid::debug_print: alloc_sd: owner SID = S-1-5-21-3177082625-651608231-1113841901-1001 (+)
53 2056823 [main] pulseaudio 6196 cygsid::debug_print: alloc_sd: group SID = S-1-5-21-3177082625-651608231-1113841901-1001 (+)
61 2056884 [main] pulseaudio 6196 alloc_sd: ACL-Size: 168
125 2057009 [main] pulseaudio 6196 alloc_sd: Created SD-Size: 244
550 2057559 [main] pulseaudio 6196 set_file_attribute: 0 = set_file_attribute(\??\C:\Users\Nithin\.pulse, 1001, 513, 0x41F8)
64 2057623 [main] pulseaudio 6196 fchown32: 0 = fchown(/cygdrive/c/Users/Nithin/.pulse,...)
114 2057737 [main] pulseaudio 6196 alloc_sd: uid 4294967295, gid 4294967295, attribute 0x41C0
61 2057798 [main] pulseaudio 6196 cygsid::debug_print: alloc_sd: owner SID = S-1-5-21-3177082625-651608231-1113841901-1001 (+)
58 2057856 [main] pulseaudio 6196 cygsid::debug_print: alloc_sd: group SID = S-1-5-21-3177082625-651608231-1113841901-1001 (+)
69 2057925 [main] pulseaudio 6196 alloc_sd: ACL-Size: 168
131 2058056 [main] pulseaudio 6196 alloc_sd: Created SD-Size: 244
331 2058387 [main] pulseaudio 6196 set_file_attribute: 0 = set_file_attribute(\??\C:\Users\Nithin\.pulse, -1, -1, 0x41C0)
73 2058460 [main] pulseaudio 6196 close: close(3)
54 2058514 [main] pulseaudio 6196 fhandler_base::close: closing '/cygdrive/c/Users/Nithin/.pulse' handle 0x280
94 2058608 [main] pulseaudio 6196 close: 0 = close(3)
56 2058664 [main] pulseaudio 6196 lstat64: entering
51 2058715 [main] pulseaudio 6196 normalize_posix_path: src /cygdrive/c/Users/Nithin/.pulse
50 2058765 [main] pulseaudio 6196 normalize_posix_path: /cygdrive/c/Users/Nithin/.pulse = normalize_posix_path (/cygdrive/c/Users/Nithin/.pulse)
53 2058818 [main] pulseaudio 6196 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/Users/Nithin/.pulse)
54 2058872 [main] pulseaudio 6196 mount_info::cygdrive_win32_path: src '/cygdrive/c/Users/Nithin/.pulse', dst 'C:\Users\Nithin\.pulse'
50 2058922 [main] pulseaudio 6196 set_flags: flags: binary (0x2)
48 2058970 [main] pulseaudio 6196 mount_info::conv_to_win32_path: src_path /cygdrive/c/Users/Nithin/.pulse, dst C:\Users\Nithin\.pulse, flags 0x4022, rc 0
128 2059098 [main] pulseaudio 6196 symlink_info::check: 0x0 = NtCreateFile (\??\C:\Users\Nithin\.pulse)
93 2059191 [main] pulseaudio 6196 symlink_info::check: not a symlink
49 2059240 [main] pulseaudio 6196 symlink_info::check: 0 = symlink.check(C:\Users\Nithin\.pulse, 0x2394D0) (0x404022)
51 2059291 [main] pulseaudio 6196 path_conv::check: this->path(C:\Users\Nithin\.pulse), has_acls(1)
54 2059345 [main] pulseaudio 6196 build_fh_pc: fh 0x1802E21E0, dev 000000C3
56 2059401 [main] pulseaudio 6196 stat_worker: (\??\C:\Users\Nithin\.pulse, 0x23A720, 0x1802E21E0), file_attributes 16
131 2059532 [main] pulseaudio 6196 cygpsid::debug_print: get_sids_info: owner SID = S-1-5-21-3177082625-651608231-1113841901-1001
53 2059585 [main] pulseaudio 6196 cygpsid::debug_print: get_sids_info: group SID = S-1-5-21-3177082625-651608231-1113841901-1001
48 2059633 [main] pulseaudio 6196 get_info_from_sd: ACL 0x41F8, uid 1001, gid 513
92 2059725 [main] pulseaudio 6196 fhandler_base::fstat_helper: 0 = fstat (\??\C:\Users\Nithin\.pulse, 0x23A720) st_size=0, st_mode=0x41F8, st_ino=31525197391787136st_atim=5283187E.29B8654 st_ctim=5283187E.2F725CC st_mtim=5283187E.29B8654 st_birthtim=5283187E.29B8654
62 2059787 [main] pulseaudio 6196 stat_worker: 0 = (\??\C:\Users\Nithin\.pulse,0x23A720)
105 2059892 [main] pulseaudio 6196 normalize_posix_path: src /cygdrive/c/Users/Nithin/.pulse
57 2059949 [main] pulseaudio 6196 normalize_posix_path: /cygdrive/c/Users/Nithin/.pulse = normalize_posix_path (/cygdrive/c/Users/Nithin/.pulse)
53 2060002 [main] pulseaudio 6196 mount_info::conv_to_win32_path: conv_to_win32_path (/cygdrive/c/Users/Nithin/.pulse)
52 2060054 [main] pulseaudio 6196 mount_info::cygdrive_win32_path: src '/cygdrive/c/Users/Nithin/.pulse', dst 'C:\Users\Nithin\.pulse'
67 2060121 [main] pulseaudio 6196 set_flags: flags: binary (0x2)
47 2060168 [main] pulseaudio 6196 mount_info::conv_to_win32_path: src_path /cygdrive/c/Users/Nithin/.pulse, dst C:\Users\Nithin\.pulse, flags 0x4022, rc 0
120 2060288 [main] pulseaudio 6196 symlink_info::check: 0x0 = NtCreateFile (\??\C:\Users\Nithin\.pulse)
81 2060369 [main] pulseaudio 6196 symlink_info::check: not a symlink
87 2060456 [main] pulseaudio 6196 symlink_info::check: 0 = symlink.check(C:\Users\Nithin\.pulse, 0x239330) (0x4022)
55 2060511 [main] pulseaudio 6196 path_conv::check: this->path(C:\Users\Nithin\.pulse), has_acls(1)
68 2060579 [main] pulseaudio 6196 build_fh_pc: fh 0x1802E21E0, dev 000000C3
75 2060654 [main] pulseaudio 6196 unlink_nt: Trying to delete \??\C:\Users\Nithin\.pulse, isdir = 1
575 2061229 [main] pulseaudio 6196 unlink_nt: \??\C:\Users\Nithin\.pulse, return status = 0x0
68 2061297 [main] pulseaudio 6196 rmdir: 0 = rmdir(/cygdrive/c/Users/Nithin/.pulse)
498 2061795 [main] pulseaudio 6196 isatty: 1 = isatty(2)
395 2062190 [main] pulseaudio 6196 fhandler_pty_slave::write: pty0, write(0x236310, 1)
66 2062256 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex (0xB4): waiting -1 ms
63 2062319 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex: acquired
65 2062384 [main] pulseaudio 6196 fhandler_pty_slave::write: (669): pty output_mutex(0xB4) released
50 2062434 [main] pulseaudio 6196 write: 1 = write(2, 0x236310, 1)
88 2062522 [main] pulseaudio 6196 fhandler_pty_slave::write: pty0, write(0x3FE17110D, 2)
49 2062571 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex (0xB4): waiting -1 ms
50 2062621 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex: acquired
57 2062678 [main] pulseaudio 6196 fhandler_pty_slave::write: (669): pty output_mutex(0xB4) released
50 2062728 [main] pulseaudio 6196 write: 2 = write(2, 0x3FE17110D, 2)
88 2062816 [main] pulseaudio 6196 fhandler_pty_slave::write: pty0, write(0x2365C0, 22)
51 2062867 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex (0xB4): waiting -1 ms
51 2062918 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex: acquired
55 2062973 [main] pulseaudio 6196 fhandler_pty_slave::write: (669): pty output_mutex(0xB4) released
51 2063024 [main] pulseaudio 6196 write: 22 = write(2, 0x2365C0, 22)
103 2063127 [main] pulseaudio 6196 fhandler_pty_slave::write: pty0, write(0x3FE171079, 7)
50 2063177 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex (0xB4): waiting -1 ms
52 2063229 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex: acquired
57 2063286 [main] pulseaudio 6196 fhandler_pty_slave::write: (669): pty output_mutex(0xB4) released
48 2063334 [main] pulseaudio 6196 write: 7 = write(2, 0x3FE171079, 7)
84 2063418 [main] pulseaudio 6196 fhandler_pty_slave::write: pty0, write(0x600043B50, 51)
47 2063465 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex (0xB4): waiting -1 ms
48 2063513 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex: acquired
52 2063565 [main] pulseaudio 6196 fhandler_pty_slave::write: (669): pty output_mutex(0xB4) released
50 2063615 [main] pulseaudio 6196 write: 51 = write(2, 0x600043B50, 51)
90 2063705 [main] pulseaudio 6196 fhandler_pty_slave::write: pty0, write(0x3FE17106F, 4)
50 2063755 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex (0xB4): waiting -1 ms
51 2063806 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex: acquired
54 2063860 [main] pulseaudio 6196 fhandler_pty_slave::write: (669): pty output_mutex(0xB4) released
49 2063909 [main] pulseaudio 6196 write: 4 = write(2, 0x3FE17106F, 4)
86 2063995 [main] pulseaudio 6196 fhandler_pty_slave::write: pty0, write(0x3FE17111B, 1)
47 2064042 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex (0xB4): waiting -1 ms
66 2064108 [main] pulseaudio 6196 fhandler_pty_slave::write: (654): pty output_mutex: acquired
58 2064166 [main] pulseaudio 6196 fhandler_pty_slave::write: (669): pty output_mutex(0xB4) released
51 2064217 [main] pulseaudio 6196 write: 1 = write(2, 0x3FE17111B, 1)
2825 2067042 [main] pulseaudio 6196 close: close(0)
96 2067138 [main] pulseaudio 6196 fhandler_base::close_with_arch: line 1091:  /dev/pty0<0x1802E18F0> usecount + -1 = 2
56 2067194 [main] pulseaudio 6196 fhandler_base::close_with_arch: not closing archetype
113 2067307 [main] pulseaudio 6196 close: 0 = close(0)
1082 2068389 [main] pulseaudio 6196 close: close(1)
100 2068489 [main] pulseaudio 6196 fhandler_base::close: closing '/cygdrive/c/Users/Nithin/log.txt' handle 0x224
58 2068547 [main] pulseaudio 6196 close: 0 = close(1)
951 2069498 [main] pulseaudio 6196 close: close(2)
99 2069597 [main] pulseaudio 6196 fhandler_base::close_with_arch: line 1091:  /dev/pty0<0x1802E18F0> usecount + -1 = 1
68 2069665 [main] pulseaudio 6196 fhandler_base::close_with_arch: not closing archetype
93 2069758 [main] pulseaudio 6196 close: 0 = close(2)
485 2070243 [main] pulseaudio 6196 do_exit: do_exit (256), exit_state 1
57 2070300 [main] pulseaudio 6196 void: 0x0 = signal (20, 0x1)
48 2070348 [main] pulseaudio 6196 void: 0x0 = signal (1, 0x1)
45 2070393 [main] pulseaudio 6196 void: 0x0 = signal (2, 0x1)
46 2070439 [main] pulseaudio 6196 void: 0x0 = signal (3, 0x1)
54 2070493 [main] pulseaudio 6196 init_cygheap::close_ctty: closing cygheap->ctty 0x1802E18F0
48 2070541 [main] pulseaudio 6196 fhandler_base::close_with_arch: closing passed in archetype 0x0, usecount 0
49 2070590 [main] pulseaudio 6196 fhandler_pty_slave::cleanup: /dev/pty0 closed, usecount 0
49 2070639 [main] pulseaudio 6196 fhandler_pty_slave::close: closing last open /dev/pty0 handle
90 2070729 [main] pulseaudio 6196 fhandler_console::free_console: freed console, res 1
56 2070785 [main] pulseaudio 6196 fhandler_pty_common::close: pty0 <0xC0,0xC8> closing
55 2070840 [main] pulseaudio 6196 dtable::delete_archetype: deleting element 0 for /dev/pty0(136/0)
58 2070898 [main] pulseaudio 6196 getpid: 6196 = getpid()
51 2070949 [main] pulseaudio 6196 proc_terminate: nprocs 0
48 2070997 [main] pulseaudio 6196 proc_terminate: leaving
68 2071065 [main] pulseaudio 6196 pinfo::exit: Calling ExitProcess n 0x100, exitcode 0x1

Tolong bisakah seseorang membantu saya?


@ poabuk stat -c "%a %u %g" /cygdrive/c/Users/Nithin/.pulsememberi 770 1001 513& 775 1001 513masing-masing. stat /cygdrive/c/Users/Nithin/.pulsememberi:

File: `/cygdrive/c/Users/Nithin/.pulse'
  Size: 0               Blocks: 0          IO Block: 65536  directory
Device: 3660e57eh/912319870d    Inode: 4503599627595829  Links: 1
Access: (0770/drwxrwx---)  Uid: ( 1001/  Nithin)   Gid: (  513/    None)
Access: 2013-12-14 13:06:03.981437700 +0530
Modify: 2013-12-14 13:06:03.981437700 +0530
Change: 2013-12-14 13:06:04.587987300 +0530
 Birth: 2013-12-14 13:06:03.981437700 +0530

dan,

  File: `/cygdrive/c/Users/Nithin/.pulse'
  Size: 0               Blocks: 0          IO Block: 65536  directory
Device: 3660e57eh/912319870d    Inode: 6473924464570479  Links: 1
Access: (0775/drwxrwxr-x)  Uid: ( 1001/  Nithin)   Gid: (  513/    None)
Access: 2013-12-14 13:08:17.872940100 +0530
Modify: 2013-12-14 13:08:17.872940100 +0530
Change: 2013-12-14 13:08:18.511515200 +0530
 Birth: 2013-12-14 13:08:17.872940100 +0530

masing-masing.

Nithin
sumber
Cobalah untuk menjalankan utilitas dengan straceuntuk melihat mana "syscalls" gagal:strace pulseaudio -vv --start
pabouk
@ poabuk Saya telah menambahkan hasil strace di posting saya. Bisakah Anda memeriksanya?
Nithin
Saya tidak melihat sesuatu yang baru secara langsung menunjukkan masalah dalam output yang tercantum. Apakah tidak ada panggilan yang menguji direktori (yaitu stat()) atau pembuatan direktori yang gagal ( mkdir())? Sayangnya saya tidak punya pengalaman dengan keanehan stracedi Cygwin.
pabouk
Tidak ada informasi yang cukup di sini untuk mendiagnosis ini, dan PA adalah WJFFM. (Saya pengelola Cygwin PA, FWIW.) Namun, pada firasat, apakah Anda memiliki /dev/shmdirektori, dan jika demikian, apa isinya?
Yaakov
@pabouk Ada beberapa stat64(), fstat64(), lstat64()dan mkdir()panggilan dekat akhir. Saya telah memperbarui posting saya dengan entri-entri ini. Silakan periksa.
Nithin

Jawaban:

0

Saya punya masalah yang sama persis sampai akhir tahun lalu dengan versi 4.0. Versi terbaru dari cygwin (5.0) juga memperlihatkan perilaku ini, tetapi saya menemukan solusinya.

Inilah yang bekerja untuk saya:

fjardon@yoda 13:22:55 ~
$ export PULSE_STATE_PATH=$HOME/.config/state

fjardon@yoda 13:23:10 ~
$ export PULSE_RUNTIME_PATH=$HOME/.config/runtime

fjardon@yoda 13:23:19 ~
$ pulseaudio.exe -vvv -p /usr/lib/pulse-5.0/modules -nF /etc/pulse/network.pa

File /etc/pulse/network.paini adalah salinan dari default.pa dengan dua baris untuk menambahkan dukungan untuk klien jaringan untuk melakukan streaming musik dari NAS saya:

fjardon@yoda 13:25:16 ~
$ diff /etc/pulse/default.pa /etc/pulse/network.pa
47a48
> load-module module-native-protocol-tcp listen=127.0.0.1 auth-anonymous=1
132a134,138
>
> ### Load DBus protocol
> .ifexists module-dbus-protocol.dll
> load-module module-dbus-protocol
> .endif
fjardon
sumber
1

Jika program yang Anda gunakan tidak jauh berbeda dari kode di repositori online, maka ia memutuskan untuk gagal jika :

if (!S_ISDIR(st.st_mode) ||
(st.st_uid != uid) ||
(st.st_gid != gid) ||
((st.st_mode & 0777) != m)) {
errno = EACCES;
goto fail;
}

Fungsi pa_make_secure_dir()yang berisi ifsedang dipanggil dengan kemungkinan kombinasi ini m, uiddan gidtergantung pada apakah PA dipanggil dalam mode sistem (variabel lingkungan PULSE_SYSTEM) atau tidak:

  • 0700, -1,-1
  • 0755, -1,-1

uiddan gid -1berarti yang pa_make_secure_dir()akan menggunakan pemilik proses saat ini.

The fstat()panggilan kembali st_mode=0x41F8itu (setelah menerapkan topeng) 0770di oktal.

Apa yang harus dicoba

Coba pra-buat direktori /cygdrive/c/Users/Nithin/.pulsedengan mode 0700atau 0755. Anda dapat mengubahnya menggunakan chmod. Pastikan juga pemilik dan grupnya sama dengan Anda menjalankan PA di bawah.

Dari kode itu sepertinya umask()panggilan itu tidak memiliki efek yang diinginkan dan fchmod()tidak dipanggil sama sekali. Bukankah direktori home Anda pada sistem file FAT atau tidak Anda miliki noacldi /etc/fstabatau /etc/fstab.d/$USER? Lihat Izin file .

Catatan

errnonilai 13 bukan "Kesalahan tidak dikenal" tetapi EACCESS- Permission denied. Mungkin ada beberapa masalah dalam menerjemahkan kode kesalahan ke dalam string pa_cstrerror().

pabouk
sumber
idperintah memberi uid=1001(Nithin) gid=513(None) groups=513(None),545(Users),1002(HomeUsers). Saya mencoba mkdir .pulse; chown -R Nithin:None .pulse; chmod -R 0700 .pulsedan mkdir .pulse; chown -R Nithin:None .pulse; chmod -R 0755 .pulse. Tetapi pulseaudio -vvmemberikan kesalahan yang sama dalam kedua kasus. Juga stat -c %a .pulsememberi 770dan 775, masing-masing. Direktori rumah Cygwin saya sama dengan Windows dan ada di NTFS. Saya /etc/fstabhanya berisi none /cygdrive cygdrive binary,posix=0,user 0 0. /etc/fstab.dDirektori saya kosong.
Nithin
Jadi stat -c "%a %u %g" /cygdrive/c/Users/Nithin/.pulsetulis 700 1001 513dalam test case pertama dan test case 755 1001 513kedua? Juga stat /cygdrive/c/Users/Nithin/.pulsemenulis bahwa itu adalah direktori? --- Periksa straceapakah tidak gagal pada direktori yang berbeda kali ini. (env. variabel PULSE_STATE_PATHdan PULSE_RUNTIME_PATH) --- Saya pikir tanpa debug kode akan sangat sulit untuk melanjutkan. Anda dapat mengkompilasi ulang program dengan simbol debugging diaktifkan dan menggunakan gdbatau memasukkan pesan titik kontrol ke dalam kode dan mengkompilasi ulang.
pabouk
Silakan lihat output dari perintah dalam pertanyaan saya
Nithin
Hak akses yang Anda tunjukkan bukan yang dibutuhkan perangkat lunak (salah satu 0700atau 0755). Lihat catatan saya yang lebih tua. Apa yang ditulis kode ini? cd /cygdrive/c/Users/Nithin; rm -rf .pulse; mkdir .pulse; chown -R Nithin:None .pulse; chmod -R 0700 .pulse; stat -c "%a %u %g" .pulse; rm -rf .pulse; mkdir .pulse; chown -R Nithin:None .pulse; chmod -R 0755 .pulse; stat -c "%a %u %g" .pulse--- Anda harus mendapatkan: 700 1001 513/755 1001 513
pabouk
Output dari perintah adalah 770 1001 513/ 775 1001 513. Sepertinya itu chmodtidak berfungsi dengan baik.
Nithin