https://bugs.winehq.org/show_bug.cgi?id=37882
Bug ID: 37882
Summary: user32.GetKeyboardLayoutNameA/W can't handle NULL out
parameter, causing crash in custom application
Product: Wine
Version: 1.7.34
Hardware: x86-64
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: user32
Assignee: wine-bugs(a)winehq.org
Reporter: focht(a)gmx.net
Distribution: ---
Hello folks,
as the summary says.
A user in #winehq asked about this and I looked into it.
Kind of non-standard use case but since Wine strives to be compatible with as
many Windows apps as possible this should work too.
Relevant part of trace log:
--- snip ---
...
003d:Starting process
L"Z:\\home\\focht\\Downloads\\44217C15F30538A1FBDF614C9785C9B7.exe"
(entryproc=0x437927)
003d:Call user32.GetKeyboardLayoutNameW(00000000) ret=00437377
003d:Call PE DLL (proc=0x7dd53e78,module=0x7dcf0000
L"winex11.drv",reason=PROCESS_ATTACH,res=(nil))
003d:Ret PE DLL (proc=0x7dd53e78,module=0x7dcf0000
L"winex11.drv",reason=PROCESS_ATTACH,res=(nil)) retval=1
003d:Call winex11.drv.wine_get_gdi_driver(0000002e) ret=7eb3c4d4
003d:Ret winex11.drv.wine_get_gdi_driver() retval=7dd7ace0 ret=7eb3c4d4
003d:Call winex11.drv.CreateDesktopWindow(00010020) ret=7ec6200a
003d:Ret winex11.drv.CreateDesktopWindow() retval=00000001 ret=7ec6200a
003d:Call winex11.drv.wine_get_gdi_driver(0000002e) ret=7eb3c4d4
003d:Ret winex11.drv.wine_get_gdi_driver() retval=7dd7ace0 ret=7eb3c4d4
003d:Call winex11.drv.GetKeyboardLayoutName(00000000) ret=7ec61cc6
003d:trace:seh:raise_exception code=c0000005 flags=0 addr=0xf75bdf80
ip=f75bdf80 tid=003d
003d:trace:seh:raise_exception info[0]=00000001
003d:trace:seh:raise_exception info[1]=00000000
003d:trace:seh:raise_exception eax=00000000 ebx=f7755000 ecx=00000000
edx=00000030 esi=0033f9b4 edi=0033f984
003d:trace:seh:raise_exception ebp=0033f908 esp=0033f660 cs=0023 ds=002b
es=002b fs=0063 gs=006b flags=00210293
003d:trace:seh:call_stack_handlers calling handler at 0x7bc9ed1b code=c0000005
...
Backtrace:
=>0 0xf75bdf80 vsnprintfW+0x546(str=*** invalid address 0x2 ***,
len=0x7fffffff, format="%08x", valist="Ó¸×}HÜÎ{")
[/home/focht/projects/wine/wine.repo/src/libs/wine/string.c:485] in
libwine.so.1 (0x0033f908)
1 0xf75be096 sprintfW+0x38(str=0x0(nil), format="%08x")
[/home/focht/projects/wine/wine.repo/src/libs/wine/string.c:525] in
libwine.so.1 (0x0033f938)
2 0x7dd1b261 X11DRV_GetKeyboardLayoutName+0x57(name=0x0(nil))
[/home/focht/projects/wine/wine.repo/src/dlls/winex11.drv/keyboard.c:1590] in
winex11 (0x0033f978)
3 0x7bc6e63e relay_call+0x39() in ntdll (0x0033f998)
4 0x7dcfa6ad frame_dummy+0xcc() in winex11 (0x0033f9c8)
5 0x7ec61cc6 loaderdrv_GetKeyboardLayoutName+0x18(name=0x0(nil))
[/home/focht/projects/wine/wine.repo/src/dlls/user32/driver.c:618] in user32
(0x0033f9c8)
6 0x7ec77b70 GetKeyboardLayoutNameW+0x25(pwszKLID=0x0(nil))
[/home/focht/projects/wine/wine.repo/src/dlls/user32/input.c:969] in user32
(0x0033f9e8)
7 0x7bc6e63e relay_call+0x39() in ntdll (0x0033fa00)
8 0x7ec33b05 in user32 (+0x3b04) (0x0033fa64)
9 0x00437377 in
44217c15f30538a1fbdf614c9785c9b7Z:\home\focht\Downloads\44217C15F30538A1FBDF614C9785C9B7.exe
(+0x37376) (0x0033fa64)
...
--- snip ---
MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms646298%28v=vs.85%…
With 'FALSE' being returned, the application checks the last error code for
0x3e6 ('ERROR_NOACCESS') and bails if not matching.
With that part fixed, the app runs much farther (doesn't fully work yet, but
that could be subject to additional bugs).
$ sha1sum 44217C15F30538A1FBDF614C9785C9B7.exe
64f4d39d57b33e58a3937a23e37889583dce47dc 44217C15F30538A1FBDF614C9785C9B7.exe
$ du -sh 44217C15F30538A1FBDF614C9785C9B7.exe
388K 44217C15F30538A1FBDF614C9785C9B7.exe
$ wine --version
wine-1.7.34
Regards
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=38389
Bug ID: 38389
Summary: Samsung Smart View 2.0 locks up/crashes
Product: Wine
Version: unspecified
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: julius.schwartzenberg(a)gmail.com
Distribution: ---
Created attachment 51241
--> https://bugs.winehq.org/attachment.cgi?id=51241
output from crash dialog
After http://source.winehq.org/patches/data/110726 is applied to current GIT,
Samsung Smart View 2.0 gets further starting up, but hangs at with one thread
in a deadlock.
When running it with +relay a crash dialog shows up instead. I've attached the
output from the crash dialog and the output written to stderr.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=37095
Bug ID: 37095
Summary: Maestia Launcher render problems
Product: Wine
Version: 1.7.24
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs(a)winehq.org
Reporter: linuxdonald(a)posteo.de
Created attachment 49316
--> http://bugs.winehq.org/attachment.cgi?id=49316
Log
The Maestia Launcher dont render correctly.
Running wine arch=32
System Arch Linux 64 bit. clean wineprefix.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=22870
Summary: Visual Studio remote debugger msvsmon.exe does not
launch debug target
Product: Wine
Version: 1.1.44
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: ninevoltz(a)metalink.net
msvsmon.exe does not work on Wine, the monitor will start and can connect with
Visual Studio's debugger, but it will not start the target program to debug. I
am attempting to debug PuTTY's Pageant program which also does not work
properly in Wine. I also tried debugging with MinGW's gdb and gdb crashes.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10601
Summary: .NET Framework 2.0: Installation Fails
Product: Wine
Version: 0.9.49.
Platform: PC
URL: http://www.microsoft.com/downloads/details.aspx?familyid
=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en
OS/Version: Linux
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: wine-ole
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: jmdoles(a)digitaldeviation.com
Created an attachment (id=9399)
--> (http://bugs.winehq.org/attachment.cgi?id=9399)
wine console output
The installation appears to start correctly, but it eventually causes and
unhandled exception within wine. I have installed IE6 as a prequisite.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29392
Bug #: 29392
Summary: i cant run game www.jugger.ru - will be very preciate
if you can help out
Product: Wine
Version: unspecified
Platform: x86
OS/Version: Mac OS X
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: loader
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: monteskju(a)inbox.lv
Classification: Unclassified
the program juggernautclient.exe has encountered a serious problem and needs to
close.
Exception EExternalException in module ntdll.dll at 0001F977. External
exception C0000025
this is what i see when i launch a program. if you need some more information i
will be glad to give it to you.
thx in advice
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=30312
Bug #: 30312
Summary: Microsoft Office Communicator 2007 R2 Trial checks for
unimplemented run mode 7 (MSIRUNMODE_REBOOTNOW)
Product: Wine
Version: 1.5.0
Platform: x86
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P2
Component: msi
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Classification: Unclassified
Hello,
Microsoft Office Communicator 2007 R2 Trial checks both states: "reboot now"
and "reboot at end" to determine if a reboot is necessary.
Nothing serious but it would be nice to handle MSIRUNMODE_REBOOTNOW
(MSIRUNMODE_REBOOTATEND is already done).
Tracking using "package->need_reboot" (MSIRUNMODE_REBOOTATEND) or at least a
more meaningful message as I had to look it up to be sure that it is harmless.
Set WinVer to >= Windows Vista due to MSXML6 (SP1) requirement.
WINEDEBUG=+tid,+seh,+relay,+msi wine msiexec -i CommunicatorEval.msi >> log.txt
2>&1
--- snip ---
...
002f:trace:msi:ACTION_CustomAction Handling custom action
L"SetFilesInUseProperty" (41 L"Custom" L"SetFilesInUseProperty")
...
003a:Ret PE DLL (proc=0x3c382c,module=0x3c0000
L"msia226.tmp",reason=THREAD_ATTACH,res=(nil)) retval=1
003a:Starting thread proc 0x7ecd1af8 (arg=0x6585b4)
003a:trace:msi:DllThread custom action (3a) started
...
003a:trace:msi:ACTION_CallDllFunction calling L"SetFilesInUseProperty"
003a:Call KERNEL32.GetEnvironmentVariableW(7ed474e0
L"MsiBreak",0062e64c,00000104) ret=7ecd13fb
003a:Ret KERNEL32.GetEnvironmentVariableW() retval=00000000 ret=7ecd13fb
003a:Call msi.MsiGetMode(00000002,00000006) ret=004058c3
003a:trace:msi:MsiGetMode 2 6
003a:trace:msi:MsiGetMode 1 6
003a:Ret msi.MsiGetMode() retval=00000000 ret=004058c3
003a:Call msi.MsiGetMode(00000002,00000007) ret=004058cf
003a:trace:msi:MsiGetMode 2 7
003a:trace:msi:MsiGetMode 1 7
003a:fixme:msi:MsiGetMode unimplemented run mode: 7
003a:Ret msi.MsiGetMode() retval=00000001 ret=004058cf
003a:Call msi.MsiSetPropertyW(00000002,00401cc8 L"REBOOTSCHEDULED",00401588
L"1") ret=004058e3
...
--- snip ---
MSDN:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa370125%28v=vs.85%…
Source:
http://source.winehq.org/git/wine.git/blob/9336c10619075d26dc8e6da5b0fb50bc…
--- snip ---
695 BOOL WINAPI MsiGetMode(MSIHANDLE hInstall, MSIRUNMODE iRunMode)
696 {
...
763 case MSIRUNMODE_REBOOTATEND:
764 r = package->need_reboot;
765 break;
766
767 case MSIRUNMODE_LOGENABLED:
768 r = (package->log_file != INVALID_HANDLE_VALUE);
769 break;
770
771 default:
772 FIXME("unimplemented run mode: %d\n", iRunMode);
773 r = TRUE;
774 }
775
776 msiobj_release( &package->hdr );
777 return r;
778 }
--- snip ---
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=30513
Bug #: 30513
Summary: Microsoft Office Communicator 2007 R2 Trial crashes in
CDATA event handling while parsing rule XML from
resource file
Product: Wine
Version: 1.5.2
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: msxml3
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: focht(a)gmx.net
Classification: Unclassified
Created attachment 39910
--> http://bugs.winehq.org/attachment.cgi?id=39910
WINEDEBUG=+tid,+seh,+relay,+msxml wine ./communicator.exe >>log.txt 2>&1
Hello,
continuation of bug 30505
Prerequisite: 'winetricks vcrun2008'
After installation (one liner):
--- snip ---
$ wine reg add "HKLM\\Software\\Microsoft\\Communicator\\3.5\\Registration" /v
"ProductID" /t "REG_SZ" /d "01234567890123456789012"
--- snip ---
Attached is WINEDEBUG=+tid,+seh,+relay,+msxml log (uncompressed: 10 MiB).
$ du -sh CommunicatorEval.msi
15M CommunicatorEval.msi
$ sha1sum CommunicatorEval.msi
b2a1cc95362b93aef6dfbf9987cc5c4ca6c8038d CommunicatorEval.msi
Regards
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.