Build ros on ros update.
Make clean,
(lib/rtl/error.c:903) RTL: RtlNtStatusToDosErrorNoTeb(0xc000002f): no valid W32
error mapping
And this,
(subsys/csrss/win32csr/conio.c:995) Console_Api Ctrl-C
(lib/ntdll/ldr/startup.c:405) Failed to access the process parameter block
(KERNEL32:lib/kernel32/misc/console.c:2954) GenerateConsoleCtrlEvent(0x0, 0x128)
UNIMPLEMENTED!
Assertion '*SpinLock < 2' failed at ntoskrnl/ke/spinlock.c line 181
(ntoskrnl/mm/mm.c:319) Page fault at high IRQL was 2, address cccccccc
KeBugCheckWithTf at ntoskrnl/ke/catch.c:217
Spinning on spinlock 800ec340 current value 1
KeBugCheckEx at ntoskrnl/ke/spinlock.c:198
Spinning on spinlock 800ec340 current value 1
KeBugCheckEx at ntoskrnl/ke/spinlock.c:198
Spinning on spinlock 800ec340 current value 1
*Snip*
Spinning on spinlock 800ec340 current value 1
KeBugCheckEx at ntoskrnl/ke/spinlock.c:198
Stack underflow (tf->esp 9d588fc0 Limit 9d5a9000)
Stack Segment Fault Exception: 12(0)
CS:EIP 8:80082203 <ntoskrnl.exe:82203 (ntoskrnl/rtl/sprintf.c:77 (number))>
cr2 9d588fbc cr3 8b1c000 Proc: 81750210 Pid: 134 <make.exe> Thrd: 81940398 Tid:
158
DS 10 ES 10 FS 30 GS 10
EAX: 9d589105 EBX: 9d5895e8 ECX: 800ec340
EDX: 00000000 EBP: 9d589058 ESI: 0000000e
ESP: 9d588fc0 EDI: 81940398 EFLAGS: 00010286 kESP 9d588fc0 kernel stack base 9
d5a9000
Frames:
Major lockup!
James
Hi. I Have some problems with compiling ReactOS (for about 3-4 days) using
MinGW-Special or current (gcc 3.4.4).
here is the output of the compiler:
[CC] lib\rtl\ppb.c
lib\rtl\ppb.c: In function `RtlCreateProcessParameters':
lib\rtl\ppb.c:89: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:90: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:91: error: structure has no member named `ConsoleHandle'
lib\rtl\ppb.c:92: error: structure has no member named `ConsoleFlags'
lib\rtl\ppb.c:148: error: structure has no member named `MaximumLength'
lib\rtl\ppb.c:149: error: structure has no member named `Length'
lib\rtl\ppb.c:152: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:153: error: structure has no member named `ConsoleHandle'
lib\rtl\ppb.c:154: error: structure has no member named `ConsoleFlags'
lib\rtl\ppb.c:160: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:165: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:169: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:170: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:172: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:173: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:174: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:216: error: structure has no member named `RuntimeData'
lib\rtl\ppb.c: In function `RtlDeNormalizeProcessParams':
lib\rtl\ppb.c:251: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:251: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:251: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:258: error: structure has no member named `RuntimeData'
lib\rtl\ppb.c:258: error: structure has no member named `RuntimeData'
lib\rtl\ppb.c:258: error: structure has no member named `RuntimeData'
lib\rtl\ppb.c: In function `RtlNormalizeProcessParams':
lib\rtl\ppb.c:276: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:276: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:276: error: structure has no member named `CurrentDirectory'
lib\rtl\ppb.c:283: error: structure has no member named `RuntimeData'
lib\rtl\ppb.c:283: error: structure has no member named `RuntimeData'
lib\rtl\ppb.c:283: error: structure has no member named `RuntimeData'
make: *** [obj-i386\lib\rtl\ppb.o] Error 1
what have I done wrong?
thanks,
Sebastian
Hi all!
When running AbiWord this is happening. Everything works, just more of these errors.
I think the first clue is this next line,
(subsys/win32k/m(subsys/win32k/objects/gdiobj.c:1289) Attempted to change owner
isc/object.c:50) ObjectHeader 0x8D0E0140 has invalid reference count (-2)
(subsys/win32k/misc/object.c:50) ObjectHeader 0x8D0E6808 has invalid reference c
ount (-2)
(subsys/win32k/misc/object.c:50) ObjectHeade
ship of object 0x2304035f (pid: 0x12c) from pid 0x128!!!
(subsys/win32k/objects/gdiobj.c:589) Attempted to free foreign handle: 0x2304035
f Owner: 0x12c from Caller: 0x128
r 0x8D0E65B8 has invalid reference count (-2)
(subsys/win32k/misc/object.c:50) ObjectHeader 0x8D0E0140 has invalid reference c
ount (-2)
(subsys/win32k/misc/object.c:50) ObjectHeader 0x8D0E6808 has invalid reference c
ount (-2)
(subsys/win32k/misc/object.c:50) ObjectHeader 0x8D0E65B8 has invalid reference c
ount (-2)
(subsys/win32k/misc/object.c:50) ObjectHeader 0x8D0E0140 has invalid reference c
ount (-2)
(subsys/win32k/misc/object.c:50) ObjectHeader 0x8D0E6808 has invalid reference c
ount (-2)
on and on
Thanks,
James
greatlrd(a)svn.reactos.com wrote:
>The return size calculation's of GetEnvironmentVariable string was wrong. Thx to <Bizzy_D> to find out cd %windir% did not work. Now it will
>
>Modified: trunk/reactos/lib/kernel32/misc/env.c
>
>
> ------------------------------------------------------------------------
> *Modified: trunk/reactos/lib/kernel32/misc/env.c*
>
>--- trunk/reactos/lib/kernel32/misc/env.c 2005-07-10 22:05:48 UTC (rev 16527)
>+++ trunk/reactos/lib/kernel32/misc/env.c 2005-07-10 22:12:07 UTC (rev 16528)
>@@ -70,7 +70,7 @@
>
>@@ -133,7 +133,7 @@
>
>
> }
> }
>
>
>
>- return (VarValue.Length / sizeof(WCHAR));
>
>
>+ return (VarValue.Length / sizeof(WCHAR) + sizeof(WCHAR));
>
>
> }
>
>
>
>
Hi,
this change is wrong. The MSDN library says:
If the function succeeds, the return value is the number of TCHARs
stored into the buffer pointed to by /lpBuffer/, not including the
terminating null character.
Please revert your change.
- Hartmut
> + VarValue.MaximumLength = (nSize != 0 ? (nSize - 1) * sizeof(WCHAR) : 0);
>
> VarValue.Buffer = lpBuffer;
>
> Status = RtlQueryEnvironmentVariable_U (NULL,
> @@ -125,13 +150,17 @@
>
> SetLastErrorByStatus (Status);
> if (Status == STATUS_BUFFER_TOO_SMALL)
> {
>
> - return (VarValue.Length / sizeof(WCHAR)) + 1;
>
> + return (VarValue.Length / sizeof(WCHAR)) + 1;
>
> }
> else
> {
> return 0;
> }
> }
>
> +
> + /* make sure the string is NULL-terminated! RtlQueryEnvironmentVariable_U
> + only terminates it if MaximumLength < Length */
> + VarValue.Buffer[VarValue.Length / sizeof(WCHAR)] = L'\0';
Is it possible for an environment variable's value to be empty?
If it is, RtlQueryEnvironmentVariable_U() could succeeded even
if a zero length buffer is passed in. And then, would we crash
appending the NUL termination?
Since GetEnvironmentVariable has to have a buffer of at least
one character to succeed, maybe we should add such a guard to
the top of the function...
Thanks,
Joseph