[Bug 1876] New: Selfloading Exe causes " ... Win16Mutex" wait timed

Wine Bugs wine-bugs at winehq.com
Wed Dec 10 04:27:20 CST 2003


http://bugs.winehq.com/show_bug.cgi?id=1876

           Summary: Selfloading Exe causes " ... Win16Mutex" wait timed
           Product: Wine
           Version: CVS
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: wine-loader
        AssignedTo: wine-bugs at winehq.com
        ReportedBy: bon at elektron.ikp.physik.tu-darmstadt.de


http://www.elektronikladen.de/programmer/galep3/1175de.exe and
http://www.elektronikladen.de/programmer/galep3/1175ntde.exe are selfloading exes.

They cause wine to hang
err:ntdll:RtlpWaitForCriticalSection section 0x405b5b00 "syslevel.c: Win16Mutex"
wait timed out in thread 0009, blocked by 000b, retrying (60 sec)

I don't get any usefull debug or backtrace output

Following Mike Hearns advice on wine-devel
 Mike Hearn        Oct 15   19/672   "Re: Deadlock?"

I get
>walk process
 pid      threads  parent   executable
 00000008 3        00000000 'H:\tmp\cae\1175de.exe'

Why don't I see thread 0x9 and 0xb?

>attach 0x8
takes a long time, with probably one dll loaded by winedbg with every 60 sec
timeout. The last message is

No debug information in 32bit DLL 'H:\tmp\cae\1175de.exe' (0x405f0000)

then nothing happens any more.

Running with 
user.reg:"BreakOnAttach"=dword:00000001

Gives the same behaviour.

Starting the program in winedbg gives:
=>0 0x40224cc2 (RtlpWaitForCriticalSection+0xa2(crit=0x405b5b00)
[critsection.c:54] in NTDLL.DLL) (ebp=4070fcd4
)
  1 0x40224f29 (RtlEnterCriticalSection+0x49(crit=0x405b5b00)
[critsection.c:1526] in NTDLL.DLL) (ebp=4070fce8)
  2 0x4053493a (_EnterSysLevel+0x9a(lock=0x405b5b00) [syslevel.c:111] in
KERNEL32.DLL) (ebp=4070fd00)
  3 0x40534d18 (RestoreThunkLock+0x28(mutex_count=0x1) [syslevel.c:228] in
KERNEL32.DLL) (ebp=4070fd18)
  4 0x40536903 (OldYield16+0x23 [task.c:739] in KERNEL32.DLL) (ebp=4070fd2c)
  5 0x40536955 (DirectedYield16+0x15(hTask=0x11df) [task.c:758] in KERNEL32.DLL)
(ebp=4070fd38)
  6 0x4051c656 (NE_CreateThread+0x66(pModule=0x403e16c8, cmdShow=0x1,
cmdline=0x403df8e8) [ne_module.c:1324] in
 KERNEL32.DLL) (ebp=4070fd58)
  7 0x4051c7d0 (LoadModule16+0x110(name=0xbffff421, paramBlock=0x4070fefc)
[ne_module.c:1394] in KERNEL32.DLL) 
(ebp=4070fd78)
  8 0x40604416 (main+0x126(argc=0x4, argv=0xbffff218) [winevdm.c:218] in
winevdm.exe) (ebp=4070ff18)
  9 0x40604039 (__wine_exe_main+0x39 [winevdm.exe.spec.c:123] in winevdm.exe)
(ebp=4070ff2c)
  10 0x40521fcd (start_process+0xcd(arg=0x0) [process.c:750] in KERNEL32.DLL)
(ebp=4070fff4)
  11 0x4001e3ed (wine_switch_to_stack+0x11 in libwine.so.1) (ebp=00000000)
55          if (!ret)
Wine-dbg>walk process
 pid      threads  parent   executable
 0000000c 2        0000000a 'C:\NT4SP5G\SYSTEM32\wineconsole.exe'
>0000000a 3        00000008 'winevdm.exe'

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list