InfiniteMac OSx86

InfiniteMac OSx86 (http://infinitemac.com/forum.php)
-   10.X (http://infinitemac.com/forumdisplay.php?f=36)
-   -   Qoopz AnV xnu 10.4.0 Rel4 (http://infinitemac.com/showthread.php?t=6491)

fumoboy007 08-29-2010 02:15 AM

I have a problem where WindowServer, Safari, QuickTime, and other applications crash randomly. Before, I used to have crashes due to the sysenter trap in libSystem.b.dylib (divide by zero error) but after patching those libraries and using this kernel with patcher_opts=2, I now have this (the only difference is that there is no backtrace):

Code:

Process:        WindowServer [81]
Path:            /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/WindowServer
Identifier:      WindowServer
Version:        ??? (???)
Code Type:      X86 (Native)
Parent Process:  launchd [1]

Date/Time:      2010-08-28 20:30:02.011 -0400
OS Version:      Mac OS X 10.6.4 (10F569)
Report Version:  6

Exception Type:  EXC_ARITHMETIC (SIGFPE)
Exception Codes: EXC_I386_DIV (divide by zero)
Crashed Thread:  Unknown

Backtrace not available

Unknown thread crashed with X86 Thread State (32-bit):
  eax: 0xfff7843a  ebx: 0x4c79aa0a  ecx: 0x3b9aca00  edx: 0xffffffff
  edi: 0x00000000  esi: 0x0000efa9  ebp: 0xb019b388  esp: 0xb019b380
  ss: 0x0000001f  efl: 0x00010246  eip: 0xffff0315  cs: 0x00000017
  ds: 0x0000001f  es: 0x0000001f  fs: 0x0000001f  gs: 0x00000037
  cr2: 0xffe2aba0

Binary images description not available

These crashes, like the sysenter ones, always happen a few hours after booting up. Again, this happens in all applications.

eMatoS 08-29-2010 02:53 AM

It seems like some widgets won't run now:
Code:

DashboardClient[11792]       
Error loading /Users/***/Library/Widgets/Currency Converter.wdgt/RoundPlugin.widgetplugin/Contents/MacOS/RoundPlugin: 
dlopen(/Users/***/Library/Widgets/Currency Converter.wdgt/RoundPlugin.widgetplugin/Contents/MacOS/RoundPlugin, 265): no suitable image found.
Did find:  /Users/***/Library/Widgets/Currency Converter.wdgt/RoundPlugin.widgetplugin/Contents/MacOS/RoundPlugin: no matching architecture in universal wrapper

Only widgets made by apple will work, the ones I've installed won't.


New console messages that seems related to patch/kernel don't know if it helps but this is the only error I could get, besides some crashes without backtrace:

http://img199.imageshack.us/img199/9185/capjg.th.jpg
http://img23.imageshack.us/img23/4770/cap2do.jpg

fumoboy007 09-06-2010 03:43 AM

Need any help, Andy? By the way, when I try to boot into 64-bit mode, it just restarts.

r0gue. 09-06-2010 10:03 PM

Works quite well so far on Phenom II X6 1055T, many thanks!

However I can't use your patched 1.2.3 version of VoodooPower.kext - it keeps saying it's unloading. I've tried removing Disabler.kext with AppleIntelCPUPowerManagement.kext but Disabler.kext always keeps coming back after a cache clean + reboot, even though it is not present in the /System/Library/Extensions folder. Is the kernel registering it on the fly?

mousex888 09-12-2010 07:15 AM

I just replace the mach_kernel,it unable to boot

andyvand 09-12-2010 09:34 AM

Quote:

Originally Posted by mousex888 (Post 50635)
I just replace the mach_kernel,it unable to boot

Try booting with the following boot arguments:

arch=i386 patcher_opts=2

That should work just fine...

davisin666 09-12-2010 09:14 PM

Sep 12 16:01:07 davisin66s-Mac-Pro kernel[0]: CODE SIGNING: cs_invalid_page(0x3c9000): p=407[Front Row] clearing CS_VALID

And

12-09-10 15:50:12 com.apple.launchd.peruser.501[123] (com.apple.RemoteUI) The following job tried to hijack the service "com.apple.RemoteUI" from this job: 0x10bfe0.anonymous.Front Row

Then

12-09-10 15:50:12 FrontRow[212] Message Handler Installation Failed: bootstrap_check_in(): 0x44c: Bootstrap not privileged

12-09-10 15:50:12 FrontRow[212] ******** Application Startup ********

12-09-10 15:50:12 kernel CODE SIGNING: cs_invalid_page(0x3c9000): p=212[Front Row] clearing CS_VALID

12-09-10 15:50:13 login[208] DEAD_PROCESS: 208 ttys000

12-09-10 15:50:15 FrontRow[213] ******** Application Startup ********
12-09-10 15:50:15 com.apple.launchd.peruser.501[123] (com.apple.RemoteUI[213]) Exited: Killed

12-09-10 15:50:15 com.apple.launchd.peruser.501[123] (com.apple.RemoteUI) Throttling respawn: Will start in 10 seconds

12-09-10 15:50:15 kernel CODE SIGNING: cs_invalid_page(0x3c9000): p=213[Front Row] clearing CS_VALID

12-09-10 15:50:25 FrontRow[215] ******** Application Startup ********

12-09-10 15:50:25 kernel CODE SIGNING: cs_invalid_page(0x3c9000): p=215[Front Row] clearing CS_VALID

And continues...

Maybe because of that Front Row doesnt works and I have fixed QuickLook
http://archivos2.tie.cl/motumbo/quic...davisin666.zip

Replace QuickLook (/System/Library/Frameworks/QuickLook.framework/Versions/A/Resources)

Here it's the original file
http://archivos2.tie.cl/motumbo/quicklookd_original.zip

Thanks to Andy by making the kernel xD

eMatoS 09-12-2010 10:13 PM

@davisin666: I've noticed a while ago many crashreports from quicklook when it tried to preview some movie files. Now I'm running your modified quicklook and it's working just fine, thanks a lot!
After the quicklook replacement I've tested FrontRow and it seems to work as expected, though I haven't tested it much. Just so you know, I've never patched/cpuid frontrow app cause it always crashes if I do so.

EDIT: Would you mind patching dashboardclient.app too? I can't run any non-apple widget and it used to work fine in 32bit mode. Do you have this problem?

rbm 09-12-2010 10:29 PM

Dear, when I try to compile the kernel using voodoobuild I get this error message.
What is missing in my system ?
Thank you.


[3] Processing cctools (cctools-750) (1 min) 23:09:30
Extracting (cctools-750.tar.gz)...
Building...
../lto.c:272: error: ‘LTO_SYMBOL_DEFINITION_WEAK’ undeclared (first use in this function)
../lto.c:276: error: ‘LTO_SYMBOL_DEFINITION_TENTATIVE’ undeclared (first use in this function)
../lto.c:282: error: ‘LTO_SYMBOL_DEFINITION_UNDEFINED’ undeclared (first use in this function)
../lto.c:287: error: ‘LTO_SYMBOL_PERMISSIONS_MASK’ undeclared (first use in this function)
../lto.c:288: error: ‘LTO_SYMBOL_PERMISSIONS_CODE’ undeclared (first use in this function)
../lto.c:292: error: ‘LTO_SYMBOL_PERMISSIONS_DATA’ undeclared (first use in this function)
../lto.c:296: error: ‘LTO_SYMBOL_PERMISSIONS_RODATA’ undeclared (first use in this function)
make[2]: *** [lto.o] Error 1
make[1]: *** [static] Error 2
make: *** [all] Error 1
ERROR

andyvand 09-13-2010 06:33 PM

You first need to build the latest LLVM library from:
http://llvm.org
and build that for i386 and x86_64 like this:
Code:

CFLAGS="-arch i386 -arch x86_64 -O3" CXXFLAGS="-arch i386 -arch x86_64 -O3" LDFLAGS="-arch i386 -arch x86_64" ./configure --disable-dependency-tracking --prefix=/usr
make
sudo make install

After that, the building of cctools will go a lot better ;)