From thomas@hidden Fri Sep 19 12:13:02 2008 From: thomas@hidden (Thomas Horsten) Date: Fri Sep 19 12:13:06 2008 Subject: Mailing list test Message-ID: Testing that the domain alias handling is setup correctly. From thomas@hidden Fri Sep 19 12:00:17 2008 From: thomas@hidden (Thomas Horsten) Date: Fri Sep 19 12:15:22 2008 Subject: Testing mail to list Message-ID: Testing domain redirection setup From thomas@hidden Tue Sep 23 22:07:10 2008 From: thomas@hidden (Thomas Horsten) Date: Tue Sep 23 22:07:18 2008 Subject: Error during make test on x64 system Message-ID: <5d932cdc0809231307pa97082aie537424ac5658a6e@mail.gmail.com> After hacking the Makefiles per Mike's instructions to add -m32 in a few places, and getting a win2k image in the expected place, I did make test. The extraction of 2k files seems to go ok, but then after that I got: All done, no errors. set %fs failed, errno = 22 child = 3474 sys_read failed exit! make[1]: *** [test.skas] Error 1 make[1]: Leaving directory `/home/th/src/ring3k/ring3k/loader' make: *** [test] Error 2 After running "make test" again, it seemed to get further but just hangs afger the last "All done, no errors." A make -d reveals, after breaking it at the point where it hangs: No need to remake target `completion.exe'. ^CLive child 0x005469e0 (test) PID 4602 Live child 0x00563060 (test.skas) PID 4605 Reaping losing child 0x00563060 PID 4605 make[1]: *** [test.skas] Interrupt Removing child 0x00563060 PID 4605 from chain. Reaping losing child 0x005469e0 PID 4602 make: *** [test] Interrupt Removing child 0x005469e0 PID 4602 from chain. Not sure if I'm doing something wrong or ring3k is :) // Thomas From wine.msi@hidden Wed Sep 24 00:27:42 2008 From: wine.msi@hidden (Mike McCormack) Date: Wed Sep 24 00:27:54 2008 Subject: Error during make test on x64 system In-Reply-To: <5d932cdc0809231307pa97082aie537424ac5658a6e@mail.gmail.com> References: <5d932cdc0809231307pa97082aie537424ac5658a6e@mail.gmail.com> Message-ID: <392fb48f0809231527o39c09a80i9c7934b942b1ba77@mail.gmail.com> Hi Thomas! 2008/9/23 Thomas Horsten > After hacking the Makefiles per Mike's instructions to add -m32 in a > few places, and getting a win2k image in the expected place, I did > make test. Will add -m32 in the right places for the next release. > > The extraction of 2k files seems to go ok, but then after that I got: > > All done, no errors. > set %fs failed, errno = 22 child = 3474 > sys_read failed > exit! > make[1]: *** [test.skas] Error 1 > make[1]: Leaving directory `/home/th/src/ring3k/ring3k/loader' > make: *** [test] Error 2 There's two test suites, one for kernels with the skas3 (separate kernel address space) patch, and one for normal kernels that uses thread tracing (tt). Does the thread tracing test ("make test.tt") work by itself? > > After running "make test" again, it seemed to get further but just > hangs afger the last "All done, no errors." A make -d reveals, after > breaking it at the point where it hangs: > > No need to remake target `completion.exe'. > > ^CLive child 0x005469e0 (test) PID 4602 > Live child 0x00563060 (test.skas) PID 4605 > Reaping losing child 0x00563060 PID 4605 > make[1]: *** [test.skas] Interrupt > Removing child 0x00563060 PID 4605 from chain. > Reaping losing child 0x005469e0 PID 4602 > make: *** [test] Interrupt > Removing child 0x005469e0 PID 4602 from chain. This might be related to the previous problem, or perhaps to parallel make. Does a plain "make test.tt" do any better? thanks, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.infowares.com/archive/ring3k/attachments/20080923/ec6c6198/attachment.htm From wine.msi@hidden Wed Sep 24 09:41:54 2008 From: wine.msi@hidden (Mike McCormack) Date: Wed Sep 24 09:42:08 2008 Subject: ring3k 0.0.2 is available Message-ID: <392fb48f0809240041s3dfe6803n42883b9b2e8fdbbe@mail.gmail.com> Hi All, I have uploaded http://ring3k.org/ring3k-0.0.2.tar.gz This release should improve builds on x86-64 based machines, and warn early if dependencies are missing. thanks, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.infowares.com/archive/ring3k/attachments/20080924/aaf9718e/attachment.htm From thomas@hidden Wed Sep 24 10:22:40 2008 From: thomas@hidden (Thomas Horsten) Date: Wed Sep 24 10:22:47 2008 Subject: ring3k 0.0.2 is available In-Reply-To: <392fb48f0809240041s3dfe6803n42883b9b2e8fdbbe@mail.gmail.com> References: <392fb48f0809240041s3dfe6803n42883b9b2e8fdbbe@mail.gmail.com> Message-ID: <5d932cdc0809240122i42f545c6y4721f565953d6fae@mail.gmail.com> Hi Mike, 2008/9/24 Mike McCormack : > I have uploaded http://ring3k.org/ring3k-0.0.2.tar.gz > > This release should improve builds on x86-64 based machines, and warn early > if dependencies are missing. I still have the same problem as before: it fails or hangs when running make test. I tried make test.tt and it's the same. There are two (seemingly random) modes of failure: 1) Hang, ps shows: 0 1000 8585 8584 20 0 7012 1716 pipe_w S+ pts/1 0:00 ./ntl -q \??\c:\tests\completion.exe 0 1000 8589 8585 20 0 92 4 ptrace T+ pts/1 0:00 ./ttclient 2) Crash: th@omega:~/src/ring3k/ring3k-0.0.2/loader$ make test.tt Thread tracing tests for tc in completion event file gdi heap job mailslot mutant object port process reg section seh sema syscall thread timer token virtual wine-port ; do echo $tc ; ./runtest -q -t $tc || exit 1 ; done completion set %fs failed, errno = 22 child = 8581 sys_read failed exit! make: *** [test.tt] Error 1 // Thomas From wine.msi@hidden Fri Sep 26 01:29:54 2008 From: wine.msi@hidden (Mike McCormack) Date: Fri Sep 26 01:30:02 2008 Subject: ring3k 0.0.2 is available In-Reply-To: <5d932cdc0809240122i42f545c6y4721f565953d6fae@mail.gmail.com> References: <392fb48f0809240041s3dfe6803n42883b9b2e8fdbbe@mail.gmail.com> <5d932cdc0809240122i42f545c6y4721f565953d6fae@mail.gmail.com> Message-ID: <392fb48f0809251629k69825527i8255b4fa8ec3d8f2@mail.gmail.com> Hi Thomas, I've undone the hard-coded segment registers that are likely to be the cause of this problem. http://ring3k.org/ring3k-0.0.3.tar.gz I've pasted the specs of the machine that it's working on below. Its redeeming feature is that it's fanless... Let me know how this version goes on your SMP x86-64 monster ;) thanks, Mike 2008/9/24 Thomas Horsten > > I still have the same problem as before: it fails or hangs when > running make test. I tried make test.tt and it's the same. There are > two (seemingly random) modes of failure: > > > set %fs failed, errno = 22 child = 8581 > sys_read failed > exit! > make: *** [test.tt] Error 1 > > // Thomas > mike@shikirowo:~$ cat /proc/cpuinfo processor : 0 vendor_id : CentaurHauls cpu family : 6 model : 10 model name : VIA Esther processor 1200MHz stepping : 9 cpu MHz : 1200.010 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce apic sep mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx up pni est tm2 rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en bogomips : 2401.91 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.infowares.com/archive/ring3k/attachments/20080925/16f7bad9/attachment.htm From thomas@hidden Fri Sep 26 23:44:49 2008 From: thomas@hidden (Thomas Horsten) Date: Fri Sep 26 23:44:58 2008 Subject: ring3k 0.0.2 is available In-Reply-To: <392fb48f0809251629k69825527i8255b4fa8ec3d8f2@mail.gmail.com> References: <392fb48f0809240041s3dfe6803n42883b9b2e8fdbbe@mail.gmail.com> <5d932cdc0809240122i42f545c6y4721f565953d6fae@mail.gmail.com> <392fb48f0809251629k69825527i8255b4fa8ec3d8f2@mail.gmail.com> Message-ID: <5d932cdc0809261444p51d57fadq43edb5e3cf9270d1@mail.gmail.com> Hi Mike, 2008/9/26 Mike McCormack : > I've undone the hard-coded segment registers that are likely to be the cause > of this problem. > > http://ring3k.org/ring3k-0.0.3.tar.gz > > I've pasted the specs of the machine that it's working on below. Its > redeeming feature is that it's fanless... > Let me know how this version goes on your SMP x86-64 monster ;) Ok, as I said earlier it still fails on my machine. I've verified that it's an SMP-related issue by running it with taskset -c 0, in which case it always gets further, and taskset -c 0-3, in which case it hangs most of the time. So probably a race condition. Even with running on a single core it doesn't get anywhere near as far as the trace on your system. Here's the output of taskset -c 0 ./runit -t init_skas skas3 patch not present init_tt using tt open_file root = (nil) name = \??\c:\winnt\system32\ntdll.dll open_unicode_file open file : c:/winnt/system32/ntdll.dll open_file root = (nil) name = \??\c:\winnt\system32\smss.exe open_unicode_file open file : c:/winnt/system32/smss.exe mapit anonymous map mapit image at 0x48580000 mapit read 4 sections, load at 48580000 mapit .text 00001000 00000600 00009800 00009774 mapit .data 0000b000 00009e00 00000400 00000b00 mapit .rsrc 0000c000 0000a200 00000400 000003d0 mapit .reloc 0000d000 0000a600 00000c00 00000b52 mapit image at 0x77f80000 mapit read 6 sections, load at 77f80000 mapit .text 00001000 00000400 00044a00 000448f9 mapit ECODE 00046000 00044e00 00004400 00004371 mapit PAGE 0004b000 00049200 00003e00 00003dfd mapit .data 0004f000 0004d000 00002200 00002a54 mapit .rsrc 00052000 0004f200 00026e00 00026d18 mapit .reloc 00079000 00076000 00002000 00001f40 mapit anonymous map mapit anonymous map get_proc_address LdrInitializeThunk get_proc_address KiUserApcDispatcher 0304: NtOpenKey(7ff7fc74,80000000,7ff7fc50) ret=77f91379 NtOpenKey 0x7ff7fc74 80000000 0x7ff7fc50 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 0304: NtOpenKey retval=c000003a ret=77f91379 NtCreatePort 0xf7f46fd8 0xf7f46f90 256 256 (nil) NtCreatePort root = (nil) port = \SeRmCommandPort process_alloc_user_handle handle = 00000004 NtListenPort 0x4 0xf7f46e90 access_allowed fixme: no access check 0304: NtOpenKey(7ff7fc74,80000000,7ff7fc50) ret=77f91379 NtOpenKey 0x7ff7fc74 80000000 0x7ff7fc50 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 0304: NtOpenKey retval=c000003a ret=77f91379 0304 (debug 7ff7f754,0,37) : LDR: PID: 0x3 started - '"c:\winnt\system32\smss.exe"' 0304: NtCreateEvent(7ff7f974,00100003,00000000,00000001,00000000) ret=77f8c9cd NtCreateEvent 0x7ff7f974 00100003 (nil) 1 0 process_alloc_user_handle handle = 00000004 0304: NtCreateEvent retval=00000000 ret=77f8c9cd 0304: NtCreateEvent(77fcf670,00100003,00000000,00000001,00000000) ret=77f94ac1 NtCreateEvent 0x77fcf670 00100003 (nil) 1 0 process_alloc_user_handle handle = 00000008 0304: NtCreateEvent retval=00000000 ret=77f94ac1 0304: NtQuerySystemInformation(00000000,7ff7f8cc,0000002c,00000000) ret=77fcb540NtQuerySystemInformation 0 0x7ff7f8cc 44 (nil) 0304: NtQuerySystemInformation retval=00000000 ret=77fcb540 0304: NtAllocateVirtualMemory(ffffffff,7ff7f894,00000000,7ff7f970,00002000,00000004) ret=77fcb607 NtAllocateVirtualMemory returns 0x30000 00100000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77fcb607 0304: NtAllocateVirtualMemory(ffffffff,7ff7f940,00000000,7ff7f974,00001000,00000004) ret=77fcb640 NtAllocateVirtualMemory returns 0x30000 00001000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77fcb640 0304: NtCreateEvent(00030618,00100003,00000000,00000001,00000000) ret=77f94ac1 NtCreateEvent 0x30618 00100003 (nil) 1 0 process_alloc_user_handle handle = 0000000c 0304: NtCreateEvent retval=00000000 ret=77f94ac1 0304: NtAllocateVirtualMemory(ffffffff,7ff7f680,00000000,7ff7f6a0,00001000,00000004) ret=77fcce74 NtAllocateVirtualMemory returns 0x31000 00002000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77fcce74 0304: NtOpenKey(7ff7f950,80000000,7ff7f92c) ret=77f91379 NtOpenKey 0x7ff7f950 80000000 0x7ff7f92c NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 0304: NtOpenKey retval=c000003a ret=77f91379 0304: NtOpenDirectoryObject(77fcf000,00000003,7ff7fc30) ret=77f8584a nt_open_object object = \KnownDlls 0304: NtOpenDirectoryObject retval=c0000034 ret=77f8584a 0304 (debug 7ff7f75c,30178,11) : LDR: NEW PROCESS 0304 (debug 7ff7f754,11,37) : Image Path: c:\winnt\system32\smss.exe (smss.exe) 0304 (debug 7ff7f758,37,1c) : Current Directory: c:\ 0304 (debug 7ff7f758,37,16) : Search Path: c:\ 0304: NtFsControlFile(00000000,00000000,00000000,00000000,7ff7f7f4,00090028,00000000,00000000,00000000,00000000) ret=77f86dbb NtFsControlFile (nil) (nil) (nil) (nil) 0x7ff7f7f4 00090028 (nil) 0 (nil) 0 NtFsControlFile FSCTL_IS_VOLUME_MOUNTED 0304: NtFsControlFile retval=c0000008 ret=77f86dbb 0304: NtFreeVirtualMemory(ffffffff,7ff7f804,7ff7f808,00004000) ret=77fcc191 NtFreeVirtualMemory 0xffffffff 0x7ff7f804 0x7ff7f808 16384 NtFreeVirtualMemory returning 00000000 0304: NtFreeVirtualMemory retval=00000000 ret=77fcc191 0304: NtFsControlFile(00000000,00000000,00000000,00000000,7ff7f7f4,00090028,00000000,00000000,00000000,00000000) ret=77f86dbb NtFsControlFile (nil) (nil) (nil) (nil) 0x7ff7f7f4 00090028 (nil) 0 (nil) 0 NtFsControlFile FSCTL_IS_VOLUME_MOUNTED 0304: NtFsControlFile retval=c0000008 ret=77f86dbb 0304 (debug 7ff7f708,30000,21) : LDR: smss.exe bound to ntdll.dll 0304 (debug 7ff7f708,30000,2f) : LDR: smss.exe has correct binding to ntdll.dll 0304: NtOpenKey(7ff7f794,80000000,7ff7f770) ret=77f91379 NtOpenKey 0x7ff7f794 80000000 0x7ff7f770 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 0304: NtOpenKey retval=c000003a ret=77f91379 0304 (debug 7ff7f6e8,49005c,14) : LDR: Real INIT LIST 0304: NtTestAlert() ret=77f84bcb 0304: NtTestAlert retval=00000000 ret=77f84bcb 0304: NtContinue(7ff7fd28,00000001) ret=77f8855e NtContinue 0x7ff7fd28 1 eax 00000000 ebx 00000000 ecx 00000000 edx 00000000 esi 00000000 edi 00000000 ebp 00000000 efl 00000296 cs:eip 0023:4858983e ss:esp 002b:7ff7fff8 ds 002b es 002b fs 0063 gs 0000 0304: NtContinue retval=00000000 ret=77f8855e 0304: NtAllocateVirtualMemory(ffffffff,7ff7fde8,00000000,7ff7fe08,00001000,00000004) ret=77fcce74 NtAllocateVirtualMemory returns 0x32000 00001000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77fcce74 0304: NtSetInformationProcess(ffffffff,00000005,7ff7ff48,00000004) ret=48588d1c NtSetInformationProcess 0xffffffff 5 0x7ff7ff48 4 0304: NtSetInformationProcess retval=00000000 ret=48588d1c 0304: NtSetInformationProcess(ffffffff,0000000c,7ff7ff08,00000004) ret=485845d5 NtSetInformationProcess 0xffffffff 12 0x7ff7ff08 4 NtSetInformationProcess set ProcessDefaultHardErrorMode 0304: NtSetInformationProcess retval=00000000 ret=485845d5 0304: NtCreatePort(7ff7ff10,7ff7fee0,000000f4,00000130,00002200) ret=485846b9 NtCreatePort 0x7ff7ff10 0x7ff7fee0 244 304 0x2200 NtCreatePort root = (nil) port = \SmApiPort process_alloc_user_handle handle = 00000010 0304: NtCreatePort retval=00000000 ret=485846b9 0304: NtQuerySystemInformation(00000000,7ff7fb4c,0000002c,00000000) ret=77faf12bNtQuerySystemInformation 0 0x7ff7fb4c 44 (nil) 0304: NtQuerySystemInformation retval=00000000 ret=77faf12b 0304: NtAllocateVirtualMemory(ffffffff,7ff7fb80,00000000,7ff7fb90,00002000,00000004) ret=77faf1b0 NtAllocateVirtualMemory returns 0x130000 00040000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77faf1b0 0304: NtAllocateVirtualMemory(ffffffff,7ff7fb80,00000000,7ff7fb94,00001000,00000004) ret=77faf1fa NtAllocateVirtualMemory returns 0x16e000 00002000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77faf1fa 0304: NtProtectVirtualMemory(ffffffff,7ff7fb80,7ff7fb7c,00000104,7ff7fb78) ret=77faf226 NtProtectVirtualMemory 0xffffffff 0x7ff7fb80 0x7ff7fb7c 260 0x7ff7fb78 NtProtectVirtualMemory 0x16e000 00001000 0304: NtProtectVirtualMemory retval=00000000 ret=77faf226 0304: NtWriteVirtualMemory(ffffffff,0016fffc,7ff7fb90,00000004,00000000) ret=77fb126d NtWriteVirtualMemory 0xffffffff 0x16fffc 0x7ff7fb90 00000004 (nil) NtWriteVirtualMemory 0xf7638ffc <- 0xf784ab90 4 NtWriteVirtualMemory wrote 4 bytes 0304: NtWriteVirtualMemory retval=00000000 ret=77fb126d 0304: NtCreateThread(7ff7feb8,001f03ff,7ff7fe84,ffffffff,7ff7fe9c,7ff7fba4,7ff7fe70,00000000) ret=77faf6ee NtCreateThread 0x7ff7feb8 001f03ff 0x7ff7fe84 0xffffffff 0x7ff7fe9c 0x7ff7fba4 0x7ff7fe70 0 mapit anonymous map get_proc_address LdrInitializeThunk get_proc_address KiUserApcDispatcher process_alloc_user_handle handle = 00000014 0304: NtCreateThread retval=00000000 ret=77faf6ee 0305: NtTestAlert() ret=77f84bcb 0305: NtTestAlert retval=00000000 ret=77f84bcb 0304: NtQuerySystemInformation(00000000,7ff7fb4c,0000002c,00000000) ret=77faf12bNtQuerySystemInformation 0 0x7ff7fb4c 44 (nil) 0304: NtQuerySystemInformation retval=00000000 ret=77faf12b 0305: NtContinue(0016fd28,00000001) ret=77f8855e NtContinue 0x16fd28 1 eax 00000000 ebx 00000001 ecx 00000002 edx 00000003 esi 00000004 edi 00000005 ebp 00000000 efl 00000200 cs:eip 0018:4858818d ss:esp 0020:0016fff8 ds 002b es 002b fs 0063 gs 0000 0305: NtContinue retval=00000000 ret=77f8855e 0304: NtAllocateVirtualMemory(ffffffff,7ff7fb80,00000000,7ff7fb90,00002000,00000004) ret=77faf1b0 NtAllocateVirtualMemory returns 0x170000 00040000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77faf1b0 set_thread_context failed th@omega:~/src/ring3k/ring3k-0.0.3/loader$ taskset -c 0 ./runit -t init_skas skas3 patch not present init_tt using tt open_file root = (nil) name = \??\c:\winnt\system32\ntdll.dll open_unicode_file open file : c:/winnt/system32/ntdll.dll open_file root = (nil) name = \??\c:\winnt\system32\smss.exe open_unicode_file open file : c:/winnt/system32/smss.exe mapit anonymous map mapit image at 0x48580000 mapit read 4 sections, load at 48580000 mapit .text 00001000 00000600 00009800 00009774 mapit .data 0000b000 00009e00 00000400 00000b00 mapit .rsrc 0000c000 0000a200 00000400 000003d0 mapit .reloc 0000d000 0000a600 00000c00 00000b52 mapit image at 0x77f80000 mapit read 6 sections, load at 77f80000 mapit .text 00001000 00000400 00044a00 000448f9 mapit ECODE 00046000 00044e00 00004400 00004371 mapit PAGE 0004b000 00049200 00003e00 00003dfd mapit .data 0004f000 0004d000 00002200 00002a54 mapit .rsrc 00052000 0004f200 00026e00 00026d18 mapit .reloc 00079000 00076000 00002000 00001f40 mapit anonymous map mapit anonymous map get_proc_address LdrInitializeThunk get_proc_address KiUserApcDispatcher 0304: NtOpenKey(7ff7fc74,80000000,7ff7fc50) ret=77f91379 NtOpenKey 0x7ff7fc74 80000000 0x7ff7fc50 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 0304: NtOpenKey retval=c000003a ret=77f91379 NtCreatePort 0xf7fb8fd8 0xf7fb8f90 256 256 (nil) NtCreatePort root = (nil) port = \SeRmCommandPort process_alloc_user_handle handle = 00000004 NtListenPort 0x4 0xf7fb8e90 access_allowed fixme: no access check 0304: NtOpenKey(7ff7fc74,80000000,7ff7fc50) ret=77f91379 NtOpenKey 0x7ff7fc74 80000000 0x7ff7fc50 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 0304: NtOpenKey retval=c000003a ret=77f91379 0304 (debug 7ff7f754,0,37) : LDR: PID: 0x3 started - '"c:\winnt\system32\smss.exe"' 0304: NtCreateEvent(7ff7f974,00100003,00000000,00000001,00000000) ret=77f8c9cd NtCreateEvent 0x7ff7f974 00100003 (nil) 1 0 process_alloc_user_handle handle = 00000004 0304: NtCreateEvent retval=00000000 ret=77f8c9cd 0304: NtCreateEvent(77fcf670,00100003,00000000,00000001,00000000) ret=77f94ac1 NtCreateEvent 0x77fcf670 00100003 (nil) 1 0 process_alloc_user_handle handle = 00000008 0304: NtCreateEvent retval=00000000 ret=77f94ac1 0304: NtQuerySystemInformation(00000000,7ff7f8cc,0000002c,00000000) ret=77fcb540NtQuerySystemInformation 0 0x7ff7f8cc 44 (nil) 0304: NtQuerySystemInformation retval=00000000 ret=77fcb540 0304: NtAllocateVirtualMemory(ffffffff,7ff7f894,00000000,7ff7f970,00002000,00000004) ret=77fcb607 NtAllocateVirtualMemory returns 0x30000 00100000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77fcb607 0304: NtAllocateVirtualMemory(ffffffff,7ff7f940,00000000,7ff7f974,00001000,00000004) ret=77fcb640 NtAllocateVirtualMemory returns 0x30000 00001000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77fcb640 0304: NtCreateEvent(00030618,00100003,00000000,00000001,00000000) ret=77f94ac1 NtCreateEvent 0x30618 00100003 (nil) 1 0 process_alloc_user_handle handle = 0000000c 0304: NtCreateEvent retval=00000000 ret=77f94ac1 0304: NtAllocateVirtualMemory(ffffffff,7ff7f680,00000000,7ff7f6a0,00001000,00000004) ret=77fcce74 NtAllocateVirtualMemory returns 0x31000 00002000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77fcce74 0304: NtOpenKey(7ff7f950,80000000,7ff7f92c) ret=77f91379 NtOpenKey 0x7ff7f950 80000000 0x7ff7f92c NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 0304: NtOpenKey retval=c000003a ret=77f91379 0304: NtOpenDirectoryObject(77fcf000,00000003,7ff7fc30) ret=77f8584a nt_open_object object = \KnownDlls 0304: NtOpenDirectoryObject retval=c0000034 ret=77f8584a 0304 (debug 7ff7f75c,30178,11) : LDR: NEW PROCESS 0304 (debug 7ff7f754,11,37) : Image Path: c:\winnt\system32\smss.exe (smss.exe) 0304 (debug 7ff7f758,37,1c) : Current Directory: c:\ 0304 (debug 7ff7f758,37,16) : Search Path: c:\ 0304: NtFsControlFile(00000000,00000000,00000000,00000000,7ff7f7f4,00090028,00000000,00000000,00000000,00000000) ret=77f86dbb NtFsControlFile (nil) (nil) (nil) (nil) 0x7ff7f7f4 00090028 (nil) 0 (nil) 0 NtFsControlFile FSCTL_IS_VOLUME_MOUNTED 0304: NtFsControlFile retval=c0000008 ret=77f86dbb 0304: NtFreeVirtualMemory(ffffffff,7ff7f804,7ff7f808,00004000) ret=77fcc191 NtFreeVirtualMemory 0xffffffff 0x7ff7f804 0x7ff7f808 16384 NtFreeVirtualMemory returning 00000000 0304: NtFreeVirtualMemory retval=00000000 ret=77fcc191 0304: NtFsControlFile(00000000,00000000,00000000,00000000,7ff7f7f4,00090028,00000000,00000000,00000000,00000000) ret=77f86dbb NtFsControlFile (nil) (nil) (nil) (nil) 0x7ff7f7f4 00090028 (nil) 0 (nil) 0 NtFsControlFile FSCTL_IS_VOLUME_MOUNTED 0304: NtFsControlFile retval=c0000008 ret=77f86dbb 0304 (debug 7ff7f708,30000,21) : LDR: smss.exe bound to ntdll.dll 0304 (debug 7ff7f708,30000,2f) : LDR: smss.exe has correct binding to ntdll.dll 0304: NtOpenKey(7ff7f794,80000000,7ff7f770) ret=77f91379 NtOpenKey 0x7ff7f794 80000000 0x7ff7f770 NtOpenKey len 00000018 root (nil) attr 00000040 \Registry\Machine\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\smss.exe open_parse_key remaining = Image File Execution Options\smss.exe NtOpenKey open_key returned c000003a 0304: NtOpenKey retval=c000003a ret=77f91379 0304 (debug 7ff7f6e8,49005c,14) : LDR: Real INIT LIST 0304: NtTestAlert() ret=77f84bcb 0304: NtTestAlert retval=00000000 ret=77f84bcb 0304: NtContinue(7ff7fd28,00000001) ret=77f8855e NtContinue 0x7ff7fd28 1 eax 00000000 ebx 00000000 ecx 00000000 edx 00000000 esi 00000000 edi 00000000 ebp 00000000 efl 00000296 cs:eip 0023:4858983e ss:esp 002b:7ff7fff8 ds 002b es 002b fs 0063 gs 0000 0304: NtContinue retval=00000000 ret=77f8855e 0304: NtAllocateVirtualMemory(ffffffff,7ff7fde8,00000000,7ff7fe08,00001000,00000004) ret=77fcce74 NtAllocateVirtualMemory returns 0x32000 00001000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77fcce74 0304: NtSetInformationProcess(ffffffff,00000005,7ff7ff48,00000004) ret=48588d1c NtSetInformationProcess 0xffffffff 5 0x7ff7ff48 4 0304: NtSetInformationProcess retval=00000000 ret=48588d1c 0304: NtSetInformationProcess(ffffffff,0000000c,7ff7ff08,00000004) ret=485845d5 NtSetInformationProcess 0xffffffff 12 0x7ff7ff08 4 NtSetInformationProcess set ProcessDefaultHardErrorMode 0304: NtSetInformationProcess retval=00000000 ret=485845d5 0304: NtCreatePort(7ff7ff10,7ff7fee0,000000f4,00000130,00002200) ret=485846b9 NtCreatePort 0x7ff7ff10 0x7ff7fee0 244 304 0x2200 NtCreatePort root = (nil) port = \SmApiPort process_alloc_user_handle handle = 00000010 0304: NtCreatePort retval=00000000 ret=485846b9 0304: NtQuerySystemInformation(00000000,7ff7fb4c,0000002c,00000000) ret=77faf12bNtQuerySystemInformation 0 0x7ff7fb4c 44 (nil) 0304: NtQuerySystemInformation retval=00000000 ret=77faf12b 0304: NtAllocateVirtualMemory(ffffffff,7ff7fb80,00000000,7ff7fb90,00002000,00000004) ret=77faf1b0 NtAllocateVirtualMemory returns 0x130000 00040000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77faf1b0 0304: NtAllocateVirtualMemory(ffffffff,7ff7fb80,00000000,7ff7fb94,00001000,00000004) ret=77faf1fa NtAllocateVirtualMemory returns 0x16e000 00002000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77faf1fa 0304: NtProtectVirtualMemory(ffffffff,7ff7fb80,7ff7fb7c,00000104,7ff7fb78) ret=77faf226 NtProtectVirtualMemory 0xffffffff 0x7ff7fb80 0x7ff7fb7c 260 0x7ff7fb78 NtProtectVirtualMemory 0x16e000 00001000 0304: NtProtectVirtualMemory retval=00000000 ret=77faf226 0304: NtWriteVirtualMemory(ffffffff,0016fffc,7ff7fb90,00000004,00000000) ret=77fb126d NtWriteVirtualMemory 0xffffffff 0x16fffc 0x7ff7fb90 00000004 (nil) NtWriteVirtualMemory 0xf76aaffc <- 0xf78bcb90 4 NtWriteVirtualMemory wrote 4 bytes 0304: NtWriteVirtualMemory retval=00000000 ret=77fb126d 0304: NtCreateThread(7ff7feb8,001f03ff,7ff7fe84,ffffffff,7ff7fe9c,7ff7fba4,7ff7fe70,00000000) ret=77faf6ee NtCreateThread 0x7ff7feb8 001f03ff 0x7ff7fe84 0xffffffff 0x7ff7fe9c 0x7ff7fba4 0x7ff7fe70 0 mapit anonymous map get_proc_address LdrInitializeThunk get_proc_address KiUserApcDispatcher process_alloc_user_handle handle = 00000014 0304: NtCreateThread retval=00000000 ret=77faf6ee 0305: NtTestAlert() ret=77f84bcb 0305: NtTestAlert retval=00000000 ret=77f84bcb 0304: NtQuerySystemInformation(00000000,7ff7fb4c,0000002c,00000000) ret=77faf12bNtQuerySystemInformation 0 0x7ff7fb4c 44 (nil) 0304: NtQuerySystemInformation retval=00000000 ret=77faf12b 0305: NtContinue(0016fd28,00000001) ret=77f8855e NtContinue 0x16fd28 1 eax 00000000 ebx 00000001 ecx 00000002 edx 00000003 esi 00000004 edi 00000005 ebp 00000000 efl 00000200 cs:eip 0018:4858818d ss:esp 0020:0016fff8 ds 002b es 002b fs 0063 gs 0000 0305: NtContinue retval=00000000 ret=77f8855e 0304: NtAllocateVirtualMemory(ffffffff,7ff7fb80,00000000,7ff7fb90,00002000,00000004) ret=77faf1b0 NtAllocateVirtualMemory returns 0x170000 00040000 00000000 0304: NtAllocateVirtualMemory retval=00000000 ret=77faf1b0 set_thread_context failed From wine.msi@hidden Sat Sep 27 01:14:04 2008 From: wine.msi@hidden (Mike McCormack) Date: Sat Sep 27 01:14:16 2008 Subject: ring3k 0.0.2 is available In-Reply-To: <5d932cdc0809261444p51d57fadq43edb5e3cf9270d1@mail.gmail.com> References: <392fb48f0809240041s3dfe6803n42883b9b2e8fdbbe@mail.gmail.com> <5d932cdc0809240122i42f545c6y4721f565953d6fae@mail.gmail.com> <392fb48f0809251629k69825527i8255b4fa8ec3d8f2@mail.gmail.com> <5d932cdc0809261444p51d57fadq43edb5e3cf9270d1@mail.gmail.com> Message-ID: <392fb48f0809261614p7026d765s652752c54f8a0a9b@mail.gmail.com> Hey Thomas, 2008/9/26 Thomas Horsten > > Ok, as I said earlier it still fails on my machine. I've verified that > it's an SMP-related issue by running it with taskset -c 0, in which > case it always gets further, and taskset -c 0-3, in which case it > hangs most of the time. So probably a race condition. > > The race condition was due to me trying to use ptrace(PTRACE_TRACEME) and ptrace(PTRACE_ATTACH) at the same time. The attach was winning the race on your machine, but losing on mine, thus failing for me and being ignored. Successfully attaching meant no signal was generated, and we hung on the wait4 in loader/tt.c > set_thread_context failed > This was due to me over-eagerly reverting a hack that is necessary. ntdll has hardcoded segment registers that are incompatible with Linux, so we need to override/ignore them. Thanks for finding these problems. I have fixed them, and released ring3k-0.0.4.tar.gz Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.infowares.com/archive/ring3k/attachments/20080926/38159898/attachment.htm From wine.msi@hidden Sat Sep 27 20:09:03 2008 From: wine.msi@hidden (Mike McCormack) Date: Sat Sep 27 20:09:09 2008 Subject: ring3k 0.0.2 is available In-Reply-To: <392fb48f0809261614p7026d765s652752c54f8a0a9b@mail.gmail.com> References: <392fb48f0809240041s3dfe6803n42883b9b2e8fdbbe@mail.gmail.com> <5d932cdc0809240122i42f545c6y4721f565953d6fae@mail.gmail.com> <392fb48f0809251629k69825527i8255b4fa8ec3d8f2@mail.gmail.com> <5d932cdc0809261444p51d57fadq43edb5e3cf9270d1@mail.gmail.com> <392fb48f0809261614p7026d765s652752c54f8a0a9b@mail.gmail.com> Message-ID: <392fb48f0809271109k1c5a895dy6c441e4d692dc66d@mail.gmail.com> 2008/9/27 Mike McCormack > Thanks for finding these problems. I have fixed them, and released > ring3k-0.0.4.tar.gz > > Mike > Turns out there were quite a few race conditions exposed by SMP, mainly involving signals and wait4(). I've fixed quite a few, and ring3k-0.0.7.tar.gz is available for download! Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.infowares.com/archive/ring3k/attachments/20080927/b9a28a6e/attachment.htm From wine.msi@hidden Sun Sep 28 13:54:53 2008 From: wine.msi@hidden (Mike McCormack) Date: Sun Sep 28 13:55:06 2008 Subject: ring3k 0.0.8 is available Message-ID: <392fb48f0809280454h74d85a93t558d3ed97478c4a2@mail.gmail.com> Hi, After solving quite a few races in the thread tracing code exposed by Thomas's SMP machine, ring3k 0.0.8 is now available. http://ring3k.org/ring3k-0.0.8.tar.gz As usual, any feedback is welcome! thanks, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.infowares.com/archive/ring3k/attachments/20080928/4ad38f8b/attachment.htm From thomas@hidden Sun Sep 28 16:57:51 2008 From: thomas@hidden (Thomas Horsten) Date: Sun Sep 28 16:58:00 2008 Subject: ring3k 0.0.8 is available In-Reply-To: <392fb48f0809280454h74d85a93t558d3ed97478c4a2@mail.gmail.com> References: <392fb48f0809280454h74d85a93t558d3ed97478c4a2@mail.gmail.com> Message-ID: <5d932cdc0809280757l645caa5avb38c590cc66b9763@mail.gmail.com> 2008/9/28 Mike McCormack : > After solving quite a few races in the thread tracing code exposed by > Thomas's SMP machine, ring3k 0.0.8 is now available. > > http://ring3k.org/ring3k-0.0.8.tar.gz > > As usual, any feedback is welcome! You're gonna hate me for this :) Same problem. I ran it 10 times, 3 times (log1, log5, log8) it appears to run to the end and gets a segmentation fault. Twice it just hung (log6, log9) with output similar to the following at the last line: 191a: NtAllocateVirtualMemory(ffffffff,0006f504,00000000,0006f524,00001000,00000004) ret=77fcce74 The other runs died at various places before completion, all with the following last line: wait_for_signal: wait4() failed 4 You can see the full logs in ~deadbeef. Thomas From thomas@hidden Sun Sep 28 17:00:21 2008 From: thomas@hidden (Thomas Horsten) Date: Sun Sep 28 17:00:28 2008 Subject: ring3k 0.0.8 is available In-Reply-To: <5d932cdc0809280757l645caa5avb38c590cc66b9763@mail.gmail.com> References: <392fb48f0809280454h74d85a93t558d3ed97478c4a2@mail.gmail.com> <5d932cdc0809280757l645caa5avb38c590cc66b9763@mail.gmail.com> Message-ID: <5d932cdc0809280800p7980fc67j94cee6fb5b763bb3@mail.gmail.com> 2008/9/28 Thomas Horsten : > You're gonna hate me for this :) > > Same problem. I ran it 10 times, 3 times (log1, log5, log8) it appears > to run to the end and gets a segmentation fault. Ouch. My mistake. I used 0.0.7 instead of 0.0.8, I guess I can't type. It seems it does work now in 0.0.8! Cheers Thomas