[ros-bugs] [Bug 1255] msvcrt 's _CIfmod crashes python 2.3.5 and ReactOS

ReactOS.Bugzilla at www.reactos.org ReactOS.Bugzilla at www.reactos.org
Thu Jul 24 01:36:30 CEST 2008


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





--- Comment #18 from jeanmichel.123 <jeanmichel.123 at free.Fr>  2008-07-24 01:36:28 CET ---
(In reply to comment #16)
> As for why python hangs when the test fails: This is caused by a bug in
> lib\sdk\crt\mem\i386\memchr_asm.s. "repne scasb" doesn't affect ZF when ecx=0,
> so memchr(..., ..., 0) will not always return NULL like it should. This puts
> python's file_readlines into an infinite loop.
> 
> Putting something to clear ZF (e.g. "test %esp,%esp") before it will fix that
> problem.
> 

I am not so sure.
I have modified the two crt rbuild files, to use c version of memchr, instead
of i386 ones.

Bug is still here: python takes all memory, and then:



Assertion 'Page->Flags.Consumer == MC_USER' failed at ntoskrnl/mm/freelist.c
line 97
Entered debugger on embedded INT3 at 0x0008:0x808ad242.
kdb:> bt
Eip:
<NTOSKRNL.EXE:ad243 (lib/rtl/i386/debug_asm.S:33 (DbgBreakPoint at 0))>
Frames:
<NTOSKRNL.EXE:59b5a (ntoskrnl/mm/freelist.c:98 (MmGetLRUNextUserPage at 4))>
<NTOSKRNL.EXE:7009f (ntoskrnl/mm/wset.c:30 (MmTrimUserMemory))>
<NTOSKRNL.EXE:58ba8 (ntoskrnl/mm/balance.c:328 (MiBalancerThread at 4))>
<NTOSKRNL.EXE:89c12 (ntoskrnl/ps/thread.c:159 (PspSystemThreadStartup at 8))>
<NTOSKRNL.EXE:9482e (ntoskrnl/ke/i386/ctxswitch.S:306 (KiThreadStartup at 156))>


-- 
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