https://bugs.winehq.org/show_bug.cgi?id=39129
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello folks,
I did a quick trace before leaving for work...
--- snip --- ... 0032:Call KERNEL32.CreateProcessA(00000000,00abd7b0 "C:\cygwin\bin\dash.exe "/etc/postinstall/0p_000_autorebase.dash"",00000000,00000000,00000001,08000000,00000000,0024407c "C:\cygwin",00abd6cc,00abd69c) ret=00453b98 ... 0045:Call KERNEL32.__wine_kernel_init() ret=7bc6bc04 ... 0032:Ret KERNEL32.CreateProcessA() retval=00000001 ret=00453b98 ... 0045:Call netapi32.NetLocalGroupGetInfo(00000000,0061c55a L"Administrators",00000001,0061c358) ret=61121b08 0045:fixme:netapi32:NetLocalGroupGetInfo ((null) L"Administrators" 1 0x61c358) semi-stub! ... 0045:Ret netapi32.NetLocalGroupGetInfo() retval=00000000 ret=61121b08 ... 0045:Call ntdll.NtQueryInformationToken(00000030,00000002,200180e0,00010000,0061c9cc) ret=610864d5 0045:trace:ntdll:NtQueryInformationToken (0x30,2,0x200180e0,65536,0x61c9cc) ... 0045:Ret ntdll.NtQueryInformationToken() retval=00000000 ret=610864d5 ... 0045:Call advapi32.LsaLookupSids(0000cafe,00000005,20028360,0061c9d0,0061c9d4) ret=61086799 ... 0045:Ret advapi32.LsaLookupSids() retval=00000107 ret=61086799 ... 0045:Call ntdll.RtlIdentifierAuthoritySid(20018128) ret=61121e36 0045:Ret ntdll.RtlIdentifierAuthoritySid() retval=2001812a ret=61121e36 ... 0045:Call ntdll.RtlInitUnicodeString(0061c1f8,0061c6dc L"Users") ret=610f2145 0045:Ret ntdll.RtlInitUnicodeString() retval=0061c1f8 ret=610f2145 0045:Call ntdll.RtlInitializeSid(0061c8a8,0061c7ea,00000002) ret=610ddb55 0045:Ret ntdll.RtlInitializeSid() retval=00000001 ret=610ddb55 0045:Call ntdll.RtlCopySid(00000044,613012c4,0061c8a8) ret=61085201 0045:trace:ntdll:RtlLengthSid sid=0x61c8a8 0045:Ret ntdll.RtlCopySid() retval=00000001 ret=61085201 0045:trace:seh:raise_exception code=c0000005 flags=0 addr=0x61183585 ip=61183585 tid=0045 0045:trace:seh:raise_exception info[0]=00000000 0045:trace:seh:raise_exception info[1]=00000000 0045:trace:seh:raise_exception eax=00000000 ebx=00000000 ecx=00000002 edx=00002923 esi=0061c4da edi=0061c36c 0045:trace:seh:raise_exception ebp=0061c938 esp=0061c234 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010202 0045:trace:seh:call_stack_handlers calling handler at 0x61031dd0 code=c0000005 flags=0 --- snip ---
Using Cygwin's own 'strace':
--- snip --- $ pwd /home/focht/.wine/drive_c/cygwin/bin
$ wine "c:\cygwin\bin\strace.exe" dash.exe ... 3079 899854 [main] dash 35 App version: 1007.32, api: 0.274 2561 902415 [main] dash 35 DLL version: 2002.1, api: 0.289 2267 904682 [main] dash 35 DLL build: 2015-08-18 11:18 3925 908607 [main] dash 35 dtable::extend: size 32, fds 0x61300FE8 4088 912695 [main] dash 35 __get_lcid_from_locale: LCID=0x0409 fixme:netapi32:NetLocalGroupGetInfo ((null) L"Administrators" 1 0x61c358) semi-stub! 4615 917310 [main] dash 35 pwdgrp::fetch_account_from_windows: line: Administrators:S-1-5-32-544:544: fixme:advapi:LsaOpenPolicy ((null),0x612b2044,0x00000800,0x61c974) stub fixme:advapi:LsaClose (0xcafe) stub 5551 922861 [main] dash 35 pwdgrp::fetch_account_from_windows: line: LOCAL:S-1-2-0:66048: 3919 926780 [main] dash 35 pwdgrp::fetch_account_from_windows: line: INTERACTIVE:S-1-5-4:4: 4966 931746 [main] dash 35 pwdgrp::fetch_account_from_windows: line: <Authenticated Users:S-1-5-11:11:> fixme:netapi32:NetLocalGroupGetInfo ((null) L"Users" 1 0x61c2d8) semi-stub! 5268 937014 [main] dash 35 pwdgrp::fetch_account_from_windows: line: Users:S-1-5-32-545:545: --- Process 35, exception c0000005 at 61183585 5738 942752 [main] dash 35 exception::handle: In cygwin_except_handler exception 0xC0000005 at 0x61183585 sp 0x61C234 8398 951150 [main] dash 35 exception::handle: In cygwin_except_handler signal 11 at 0x61183585 7023 958173 [main] dash 35 _cygtls::inside_kernel: pc 0x61183585, h 0x61000000, inside_kernel 0 6221 964394 [main] dash 35 normalize_posix_path: src /dev/kmsg 5496 969890 [main] dash 35 normalize_posix_path: /dev/kmsg = normalize_posix_path (/dev/kmsg) 4802 974692 [main] dash 35 mount_info::conv_to_win32_path: conv_to_win32_path (/dev/kmsg) 4349 979041 [main] dash 35 mount_info::conv_to_win32_path: src_path /dev/kmsg, dst \Device\MailSlot\cygwin\dev\kmsg, flags 0x2, rc 0 6359 985400 [main] dash 35 __set_errno: fhandler_base* build_fh_name(const char*, unsigned int, suffix_info*):443 setting errno 6 6335 991735 [main] dash 35 sig_send: sendsig 0x8C, pid 35, signal 11, its_me 1 3705 995440 [main] dash 35 sig_send: wakeup 0xCC 3033 998473 [main] dash 35 sig_send: Waiting for pack.wakeup 0xCC 60009799 61008272 [main] dash 35 __set_errno: int sig_send(_pinfo*, siginfo_t&, _cygtls*):709 setting errno 88 7317 61015589 [main] dash 35 sig_send: returning 0xFFFFFFFF from sending signal 11 --- Process 35, exception c0000005 at 61183585 err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0x61183585 --- Process 35 exited with status 0xc0000005 --- snip ---
Using Cygwin's snapshots and corresponding .dbg:
The crash call site is located somewhere here:
'pwdgrp::fetch_account_from_windows(fetch_user_arg_t &, cyg_ldap *)'
You might want to try:
https://github.com/wine-compholio/wine-staging/tree/master/patches/advapi32-...
Regards