http://bugs.winehq.org/show_bug.cgi?id=2140
Summary: notepad / printer setup / portrait causes page fault & termination Product: Wine Version: 20040309 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: todd.allen@attglobal.net
This was on Fedora Core 1 with the wine-20040309-1fc1winehq binary rpm installed. To reproduce it, I did this: cd ~ rm -rf .wine wine notepad Click on "File" Click on "Printer Setup..." Click on "Portrait" (in the Orientation box) Because this is fc1, it's got CUPS, so if the documentation is to be believed, no further configuration is requried for printers.
The output in the xterm in which "wine notepad" was run is as follows:
fixme:commdlg:PRINTDLG_SetUpPrinterListComboW Can't find '(null)' in printer list so trying to find default wine: Unhandled exception (thread 0009), starting debugger... WineDbg starting on pid 8 Can't find file for ELF 'wine-kthread' ((nil)) No debug information in ELF 'wine-pthread' ((nil)) Breakpoint 1 at 0x009a4f00 No debug information in ELF '/usr/lib/libwine.so.1' (0x6de000) No debug information in ELF '/lib/tls/libpthread.so.0' ((nil)) No debug information in ELF '/lib/tls/libc.so.6' ((nil)) No debug information in ELF '/lib/libdl.so.2' ((nil)) No debug information in ELF '/lib/tls/libm.so.6' ((nil)) No debug information in ELF '/lib/ld-linux.so.2' ((nil)) No debug information in ELF '/usr/lib/wine/ntdll.dll.so' (0x111000) No debug information in ELF '/usr/lib/libwine_unicode.so.1' (0x181000) No debug information in ELF '/lib/libnss_files.so.2' (0x461000) No debug information in ELF '/usr/lib/wine/kernel32.dll.so' (0x2d7000) No debug information in ELF '/usr/lib/wine/notepad.exe.so' (0x5d6000) No debug information in ELF '/usr/lib/wine/comdlg32.dll.so' (0x5fc000) No debug information in ELF '/usr/lib/wine/shell32.dll.so' (0x6f7000) No debug information in ELF '/usr/lib/wine/ole32.dll.so' (0x788000) No debug information in ELF '/usr/lib/wine/advapi32.dll.so' (0x274000) No debug information in ELF '/usr/lib/wine/user32.dll.so' (0x808000) No debug information in ELF '/usr/lib/wine/gdi32.dll.so' (0xb12000) No debug information in ELF '/usr/lib/wine/rpcrt4.dll.so' (0x3fb000) No debug information in ELF '/usr/lib/wine/shlwapi.dll.so' (0x570000) No debug information in ELF '/usr/lib/wine/comctl32.dll.so' (0xc27000) No debug information in ELF '/usr/lib/wine/winspool.drv.so' (0x2a8000) No debug information in ELF '/usr/lib/wine/msvcrt.dll.so' (0x685000) No debug information in ELF '/usr/lib/libfreetype.so.6' (0xfff3d000) No debug information in ELF '/usr/lib/libz.so.1' ((nil)) No debug information in ELF '/usr/lib/libfontconfig.so.1' (0x823000) No debug information in ELF '/usr/lib/libexpat.so.0' (0xbde000) No debug information in ELF '/usr/lib/wine/x11drv.dll.so' (0xcff000) No debug information in ELF '/usr/X11R6/lib/libSM.so.6' (0xff6a5000) No debug information in ELF '/usr/X11R6/lib/libICE.so.6' (0xff815000) No debug information in ELF '/usr/X11R6/lib/libXrandr.so.2' (0x2fe000) No debug information in ELF '/usr/X11R6/lib/libXrender.so.1' (0x46a000) No debug information in ELF '/usr/X11R6/lib/libXv.so.1' (0x34c000) No debug information in ELF '/usr/X11R6/lib/libXext.so.6' ((nil)) No debug information in ELF '/usr/X11R6/lib/libX11.so.6' (0x271000) No debug information in ELF '/usr/X11R6/lib/tls/libGL.so.1' (0xac4000) No debug information in ELF '/usr/X11R6/lib/libXcursor.so.1' (0xffabd000) No debug information in ELF '/usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2' (0xfec000) No debug information in ELF '/usr/X11R6/lib/X11/locale/lib/common/ximcp.so.2' (0xea4000) No debug information in ELF '/usr/lib/wine/imm32.dll.so' (0xec2000) No debug information in 32bit DLL 'C:\windows\system\notepad.exe' (0x5e0000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\NTDLL.DLL' (0x130000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\KERNEL32.DLL' (0x300000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\ADVAPI32.DLL' (0x280000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\GDI32.DLL' (0xb30000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\USER32.DLL' (0x830000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\RPCRT4.DLL' (0x410000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\OLE32.DLL' (0x7a0000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\SHLWAPI.DLL' (0x590000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\COMCTL32.DLL' (0xc40000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\SHELL32.DLL' (0x710000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\WINSPOOL.DRV' (0x2b0000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\COMDLG32.DLL' (0x610000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\MSVCRT.DLL' (0x6a0000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\X11DRV.DLL' (0xd10000) No debug information in 32bit DLL 'C:\WINDOWS\SYSTEM\IMM32.DLL' (0xed0000) Unhandled exception: page fault on write access to 0x0000004c in 32-bit code (0x006394de). In 32-bit mode. 0x006394de (PRINTDLG_WMCommandA+0xb0e in COMDLG32.DLL): movw $0x1,0x4c(%eax) Wine-dbg>
A "bt" in the debugger shows:
=>0 0x006394de (PRINTDLG_WMCommandA+0xb0e in COMDLG32.DLL) (ebp=0056f0dc) 1 0x00639b43 (PrintDlgProcW+0x93 in COMDLG32.DLL) (ebp=0056f100) 2 0x008b022f (WINPROC_wrapper+0x17 in USER32.DLL) (ebp=0056f124) 3 0x008b02ba (WINPROC_wrapper+0xa2 in USER32.DLL) (ebp=0056f15c) 4 0x008b7705 (USER32.DLL.CallWindowProcW+0x105 in USER32.DLL) (ebp=0056f190) 5 0x0088099a (USER32.DLL.DefDlgProcW+0x6a in USER32.DLL) (ebp=0056f1bc) 6 0x008b022f (WINPROC_wrapper+0x17 in USER32.DLL) (ebp=0056f1e0) 7 0x008b02ba (WINPROC_wrapper+0xa2 in USER32.DLL) (ebp=0056f218) 8 0x008b7705 (USER32.DLL.CallWindowProcW+0x105 in USER32.DLL) (ebp=0056f24c) 9 0x008cbfc0 (FormatMessage16+0x3590 in USER32.DLL) (ebp=0056f2a8) 10 0x008cd0e1 (SendMessageTimeoutW+0x161 in USER32.DLL) (ebp=0056f30c) 11 0x008cd3b1 (USER32.DLL.SendMessageW+0x51 in USER32.DLL) (ebp=0056f338) 12 0x008499f0 (MessageBoxIndirect16+0xc30 in USER32.DLL) (ebp=0056f418) 13 0x00849f86 (MessageBoxIndirect16+0x11c6 in USER32.DLL) (ebp=0056f43c) 14 0x008b022f (WINPROC_wrapper+0x17 in USER32.DLL) (ebp=0056f460) 15 0x008b02ba (WINPROC_wrapper+0xa2 in USER32.DLL) (ebp=0056f498) 16 0x008b7705 (USER32.DLL.CallWindowProcW+0x105 in USER32.DLL) (ebp=0056f4cc) 17 0x00890bdb (USER32.DLL.DispatchMessageW+0xbb in USER32.DLL) (ebp=0056f500) 18 0x00885578 (IsDialogMessageW+0xc8 in USER32.DLL) (ebp=0056f534) 19 0x00884b91 (DIALOG_DoDialogBox+0x121 in USER32.DLL) (ebp=0056f584) 20 0x00884de9 (USER32.DLL.DialogBoxIndirectParamAorW+0x69 in USER32.DLL) (ebp=0056f5b0) 21 0x00884e91 (DialogBoxIndirectParamW+0x41 in USER32.DLL) (ebp=0056f5d4) 22 0x0063ad98 (PrintDlgW+0x488 in COMDLG32.DLL) (ebp=0056fa3c) 23 0x005eb289 (DIALOG_FilePrinterSetup+0x59 in notepad.exe) (ebp=0056faa0) 24 0x005ebe2d (SetFileName+0xcd in notepad.exe) (ebp=0056faac) 25 0x005ec1b1 (SetFileName+0x451 in notepad.exe) (ebp=0056fd14) 26 0x008b022f (WINPROC_wrapper+0x17 in USER32.DLL) (ebp=0056fd38) 27 0x008b02ba (WINPROC_wrapper+0xa2 in USER32.DLL) (ebp=0056fd70) 28 0x008b7705 (USER32.DLL.CallWindowProcW+0x105 in USER32.DLL) (ebp=0056fda4) 29 0x00890bdb (USER32.DLL.DispatchMessageW+0xbb in USER32.DLL) (ebp=0056fdd8) 30 0x005ec790 (WinMain+0x2e0 in notepad.exe) (ebp=0056fea0) 31 0x005ea10e (notepad.exe.EntryPoint+0x10e in notepad.exe) (ebp=0056ff20) 32 0x00360bc2 (SetThreadExecutionState+0x1aa2 in KERNEL32.DLL) (ebp=0056fff4) 33 0x006e29b1 (wine_switch_to_stack+0x11 in libwine.so.1) (ebp=00000000)
This bug is not specific to the notepad either. I first discovered it when attempting to do a printer setup using FrameMaker 5.5 installed in a wine configuration that isn't too far from the default. But I'm reporting this bug against notepad because I expect it's easier to reproduce, and seems to be the same thing, symptomatically at least.