[ros-bugs] [Bug 3626] cmd shell initially comes up in permanent loop printing squares

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Tue Dec 2 16:19:17 CET 2008


http://www.reactos.org/bugzilla/show_bug.cgi?id=3626





--- Comment #28 from Haos <olaf_siejka at o2.pl>  2008-12-02 16:19:16 CET ---
(dll\win32\kernel32\misc\nls.c:1037) WideCharCount: 3
(dll\win32\kernel32\misc\nls.c:1060) nReturn: 4
(subsystems\win32\csrss\win32csr\guiconsole.c:1526) GuiConsoleResize X 560 Y
375
(subsystems\win32\csrss\win32csr\guiconsole.c:1526) GuiConsoleResize X 560 Y
375
(subsystems\win32\csrss\win32csr\guiconsole.c:2153) received event Console
009308F0 GuiData 00930970 X 80 Y 25
ConPrintf1: 59
(dll\win32\kernel32\misc\nls.c:813) CodePageEntry is NULL
ConPrintf: -1
Assertion 'nNumberOfCharsToWrite!=0xfffffffful' failed at
dll\win32\kernel32\misc\console.c line 1372
Unhandled exception
ExceptionCode:    80000003
Address:          7c905f32   C:\ReactOS\system32\ntdll.dll
                             <lib\rtl\i386\debug_asm.S:32 (DbgBreakPoint at 0)>
CS:EIP 1b:7c905f32
DS 23 ES 23 FS 3b GS 0
EAX: 00000001   EBX: 7c7607cc   ECX: 00719558
EDX: 00000000   EBP: 00719830   ESI: 00000000   ESP: 00719828
EDI: ffffffff   EFLAGS: 00000202
Frames:
   7c700000+11a70      C:\ReactOS\system32\kernel32.dll
<dll/win32/kernel32/misc/console.c:1372 (IntWriteConsole)>
   7c700000+11b0a      C:\ReactOS\system32\kernel32.dll
<dll/win32/kernel32/misc/console.c:1438 (WriteConsoleA at 20)>
   7c700000+af25       C:\ReactOS\system32\kernel32.dll
<dll/win32/kernel32/debug/debugger.c:490 (WaitForDebugEvent at 8)>
     400000+38f9       C:\ReactOS\System32\cmd.exe
<./base/shell/cmd/console.c:234 (ConPrintf)>
     400000+3e82       C:\ReactOS\System32\cmd.exe
<./base/shell/cmd/console.c:388 (ConOutPrintf)>
     400000+126cd      C:\ReactOS\System32\cmd.exe <./base/shell/cmd/cmd.c:1626
(cmd_main)>
     400000+100e       C:\ReactOS\System32\cmd.exe <base/shell/cmd/main.c:5
(wmain)>
     400000+14c21      C:\ReactOS\System32\cmd.exe
<lib/3rdparty/mingw/wcrt1.c:253 (__mingw_wCRTStartup)>
     400000+14c4f      C:\ReactOS\System32\cmd.exe
<lib/3rdparty/mingw/wcrt1.c:104 (_gnu_exception_handler at 4)>
   7c700000+21ab1      C:\ReactOS\system32\kernel32.dll
<dll/win32/kernel32/process/procsup.c:68 (BaseProcessStartup at 4)>
(subsystems\win32\csrss\api\wapi.c:115) CSR: received hard error c0000144

Ok, i think we got something: CodePageEntry is NULL:

ConPrintf1: 59
(dll\win32\kernel32\misc\nls.c:813) CodePageEntry is NULL
ConPrintf: -1

The code snippet:

    CodePageEntry = IntGetCodePageEntry(CodePage);
    if (CodePageEntry == NULL)
    {
        SetLastError(ERROR_INVALID_PARAMETER);
        DPRINT1("CodePageEntry is NULL\n");
        return 0;
    }

So IntWideCharToMultiByteCP returns 0? Why is then LastError not checked? 

I`ll proceed then with IntGetCodePageEntry(); investigation as hto recommended,
unless you guys have any other ideas.


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Ros-bugs mailing list