Trying to build VM using VMMaker on Intel Mac

Todd Blanchard tblanchard at mac.com
Wed May 3 14:20:38 UTC 2006


Yes, I have it working with Ian's distro - and I've changed the  
VMMaker's output to look like that as well - but for some reason the  
VMMaker generated version crashes, but the one I got from Ian doesn't.


On May 3, 2006, at 1:17 AM, John M McIntosh wrote:

> Didn't you have this working before?
> interpret looks like so?
>
> sqInt interpret(void) {
> #ifdef FOO_REG
>     register struct foo * foo FOO_REG = &fum;
> #endif
>     sqInt localReturnValue;
>     sqInt localReturnContext;
>     sqInt localHomeContext;
>     char* localSP;
>     char* localIP;
>     sqInt currentBytecode;
>     JUMP_TABLE;
>
>
> On 3-May-06, at 12:37 AM, Todd Blanchard wrote:
>
>> I wanted to add a couple plugins (newest OSProcess and  
>> ObjectiveCPlugin) so I decided to try building a VM from scratch  
>> using VMMaker.
>>
>> I encounter the usual problems I had with Ian's distro - change  
>> the SPINLOCK flag to 0 and remove the references to explicit  
>> registers in gnu-interp.c
>>
>> I get a build, but it crashes on the switch statement in the  
>> interpret loop.  I've tried building with plugins external and  
>> internal - makes no difference.
>>
>> Complete dump is below - any ideas?
>>
>> Date/Time:      2006-05-03 00:29:12.092 -0700
>> OS Version:     10.4.6 (Build 8I1119)
>> Report Version: 4
>>
>> Command: squeak
>> Path:    ./squeak
>> Parent:  bash [569]
>>
>> Version: ??? (???)
>>
>> PID:    4697
>> Thread: 5
>>
>> Exception:  EXC_BAD_ACCESS (0x0001)
>> Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000246
>>
>> Thread 0:
>> 0   libSystem.B.dylib              	0x9000a4e7 mach_msg_trap + 7
>> 1   com.apple.CoreFoundation       	0x9082395e  
>> CFRunLoopRunSpecific + 2014
>> 2   com.apple.CoreFoundation       	0x90823179 CFRunLoopRunInMode  
>> + 61
>> 3   com.apple.HIToolbox            	0x92ef9c5c  
>> RunCurrentEventLoopInMode + 285
>> 4   com.apple.HIToolbox            	0x92ef9363  
>> ReceiveNextEventCommon + 385
>> 5   com.apple.HIToolbox            	0x92ef91ba  
>> BlockUntilNextEventMatchingListInMode + 81
>> 6   com.apple.AppKit               	0x9339aad1 _DPSNextEvent + 576
>> 7   com.apple.AppKit               	0x9339a6be -[NSApplication  
>> nextEventMatchingMask:untilDate:inMode:dequeue:] + 137
>> 8   com.apple.AppKit               	0x93394443 -[NSApplication  
>> run] + 512
>>
>> Thread 1:
>> 0   libSystem.B.dylib              	0x9002755c kevent + 12
>> 1   ...ple.CoreServices.CarbonCore 	0x90ca9c14 PrivateMPEntryPoint  
>> + 51
>> 2   libSystem.B.dylib              	0x90024a27 _pthread_body + 84
>>
>> Thread 2:
>> 0   libSystem.B.dylib              	0x900250c7  
>> semaphore_wait_signal_trap + 7
>> 1   ...ple.CoreServices.CarbonCore 	0x90ca9dba MPWaitOnQueue + 198
>> 2   com.apple.DesktopServices      	0x92645fc7  
>> TNodeSyncTask::SyncTaskProc(void*) + 143
>> 3   ...ple.CoreServices.CarbonCore 	0x90ca9c14 PrivateMPEntryPoint  
>> + 51
>> 4   libSystem.B.dylib              	0x90024a27 _pthread_body + 84
>>
>> Thread 3:
>> 0   libSystem.B.dylib              	0x90049207  
>> semaphore_timedwait_signal_trap + 7
>> 1   ...ple.CoreServices.CarbonCore 	0x90ca9dba MPWaitOnQueue + 198
>> 2   com.apple.DesktopServices      	0x92668263  
>> TPropertyTask::PropertyTaskProc(void*) + 101
>> 3   ...ple.CoreServices.CarbonCore 	0x90ca9c14 PrivateMPEntryPoint  
>> + 51
>> 4   libSystem.B.dylib              	0x90024a27 _pthread_body + 84
>>
>> Thread 4:
>> 0   libSystem.B.dylib              	0x90049207  
>> semaphore_timedwait_signal_trap + 7
>> 1   com.apple.Foundation           	0x927be978  
>> F_CONDITION_WAIT_TIMEOUT + 128
>> 2   com.apple.Foundation           	0x927be8c2 -[NSConditionLock  
>> lockWhenCondition:beforeDate:] + 101
>> 3   com.apple.AppKit               	0x9365507c + 
>> [NSNavFBENodePreviewHelper  
>> _subthreadComputePreviewThumbnailImages] + 132
>> 4   com.apple.Foundation           	0x927201b0  
>> forkThreadForFunction + 123
>> 5   libSystem.B.dylib              	0x90024a27 _pthread_body + 84
>>
>> Thread 5 Crashed:
>> 0   squeak                         	0x000164d0 interpret + 50 (gnu- 
>> interp.c:5928)
>> 1   libSystem.B.dylib              	0x90024a27 _pthread_body + 84
>>
>> Thread 5 crashed with i386 Thread State:
>> eax: 0x0000006b    ebx: 0x0000006b ecx:0xa271de60 edx: 0x17525feb
>> edi: 0x17d38484    esi: 0x17525fec ebp:0xb0322f38 esp: 0xb0322d30
>> ss: 0x0000002f    efl: 0x00010297 eip:0x000164d0  cs: 0x00000027
>> ds: 0x0000002f     es: 0x0000002f  fs:0x00000000  gs: 0x00000037
>>
>> Binary Images Description:
>>     0x1000 -    0xa4fff squeak 	/Users/todd/Projects/Squeak/ 
>> platforms/unix/bld/squeak
>>   0x346000 -   0x34efff vm-display-Quartz 	/Users/todd/Projects/ 
>> Squeak/platforms/unix/bld/vm-display-Quartz/.libs/vm-display-Quartz
>>   0x396000 -   0x397fff vm-sound-MacOSX 	/Users/todd/Projects/ 
>> Squeak/platforms/unix/bld/vm-sound-MacOSX/.libs/vm-sound-MacOSX
>>   0x3fb000 -   0x3fbfff com.growl.GrowlSafariLoader 1.0	/Library/ 
>> InputManagers/GrowlSafari/GrowlSafariLoader.bundle/Contents/MacOS/ 
>> GrowlSafariLoader
>> 0x8fe00000 - 0x8fe4bfff dyld 44.17	/usr/lib/dyld
>> 0x90000000 - 0x9016efff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
>> 0x901be000 - 0x901c0fff libmathCommon.A.dylib 	/usr/lib/system/ 
>> libmathCommon.A.dylib
>> 0x901c2000 - 0x901fefff com.apple.CoreText 1.1.0 (???)	/System/ 
>> Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> Frameworks/CoreText.framework/Versions/A/CoreText
>> 0x90225000 - 0x902fafff ATS 	/System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/ 
>> Versions/A/ATS
>> 0x9031a000 - 0x9076afff com.apple.CoreGraphics 1.258.27 (???)	/ 
>> System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
>> 0x90801000 - 0x908c9fff com.apple.CoreFoundation 6.4.5 (368.26)	/ 
>> System/Library/Frameworks/CoreFoundation.framework/Versions/A/ 
>> CoreFoundation
>> 0x90907000 - 0x90907fff com.apple.CoreServices 10.4 (???)	/System/ 
>> Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
>> 0x90909000 - 0x909fcfff libicucore.A.dylib 	/usr/lib/ 
>> libicucore.A.dylib
>> 0x90a4c000 - 0x90acbfff libobjc.A.dylib 	/usr/lib/libobjc.A.dylib
>> 0x90af4000 - 0x90b57fff libstdc++.6.dylib 	/usr/lib/libstdc++.6.dylib
>> 0x90bc6000 - 0x90bcdfff libgcc_s.1.dylib 	/usr/lib/libgcc_s.1.dylib
>> 0x90bd2000 - 0x90c42fff com.apple.framework.IOKit 1.4.2 (???)	/ 
>> System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
>> 0x90c57000 - 0x90c69fff libauto.dylib 	/usr/lib/libauto.dylib
>> 0x90c6f000 - 0x90f14fff com.apple.CoreServices.CarbonCore 682.10  
>> (679)	/System/Library/Frameworks/CoreServices.framework/Versions/A/ 
>> Frameworks/CarbonCore.framework/Versions/A/CarbonCore
>> 0x90f57000 - 0x90fbffff com.apple.CoreServices.OSServices 4.1	/ 
>> System/Library/Frameworks/CoreServices.framework/Versions/A/ 
>> Frameworks/OSServices.framework/Versions/A/OSServices
>> 0x90ff7000 - 0x91035fff com.apple.CFNetwork 129.13	/System/Library/ 
>> Frameworks/CoreServices.framework/Versions/A/Frameworks/ 
>> CFNetwork.framework/Versions/A/CFNetwork
>> 0x91047000 - 0x91057fff com.apple.WebServices 1.1.3 (1.1.0)	/ 
>> System/Library/Frameworks/CoreServices.framework/Versions/A/ 
>> Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
>> 0x91062000 - 0x910e0fff com.apple.SearchKit 1.0.5	/System/Library/ 
>> Frameworks/CoreServices.framework/Versions/A/Frameworks/ 
>> SearchKit.framework/Versions/A/SearchKit
>> 0x91115000 - 0x91133fff com.apple.Metadata 10.4.4 (121.36)	/System/ 
>> Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/ 
>> Metadata.framework/Versions/A/Metadata
>> 0x9113f000 - 0x9114dfff libz.1.dylib 	/usr/lib/libz.1.dylib
>> 0x91150000 - 0x91303fff com.apple.security 4.2.1 (24989)	/System/ 
>> Library/Frameworks/Security.framework/Versions/A/Security
>> 0x913f1000 - 0x913f9fff com.apple.DiskArbitration 2.1	/System/ 
>> Library/Frameworks/DiskArbitration.framework/Versions/A/ 
>> DiskArbitration
>> 0x91400000 - 0x91426fff com.apple.SystemConfiguration 1.8.5	/ 
>> System/Library/Frameworks/SystemConfiguration.framework/Versions/A/ 
>> SystemConfiguration
>> 0x91438000 - 0x9143ffff libbsm.dylib 	/usr/lib/libbsm.dylib
>> 0x91443000 - 0x914bcfff com.apple.audio.CoreAudio 3.0.3	/System/ 
>> Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
>> 0x9150a000 - 0x9150afff com.apple.ApplicationServices 10.4 (???)	/ 
>> System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> ApplicationServices
>> 0x9150c000 - 0x91537fff com.apple.AE 314 (313)	/System/Library/ 
>> Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ 
>> AE.framework/Versions/A/AE
>> 0x9154a000 - 0x9161efff com.apple.ColorSync 4.4.6	/System/Library/ 
>> Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ 
>> ColorSync.framework/Versions/A/ColorSync
>> 0x91657000 - 0x916d4fff com.apple.print.framework.PrintCore 4.5  
>> (177.10)	/System/Library/Frameworks/ApplicationServices.framework/ 
>> Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
>> 0x91701000 - 0x917abfff com.apple.QD 3.10.8 (???)	/System/Library/ 
>> Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ 
>> QD.framework/Versions/A/QD
>> 0x917d1000 - 0x9181cfff com.apple.HIServices 1.5.2 (???)	/System/ 
>> Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> Frameworks/HIServices.framework/Versions/A/HIServices
>> 0x9183b000 - 0x91851fff com.apple.LangAnalysis 1.6.3	/System/ 
>> Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
>> 0x9185d000 - 0x91877fff com.apple.FindByContent 1.5	/System/ 
>> Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> Frameworks/FindByContent.framework/Versions/A/FindByContent
>> 0x91881000 - 0x918befff com.apple.LaunchServices 176	/System/ 
>> Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> Frameworks/LaunchServices.framework/Versions/A/LaunchServices
>> 0x918d2000 - 0x918ddfff com.apple.speech.synthesis.framework 3.4	/ 
>> System/Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
>> 0x918e4000 - 0x9191bfff com.apple.ImageIO.framework 1.4.6	/System/ 
>> Library/Frameworks/ApplicationServices.framework/Versions/A/ 
>> Frameworks/ImageIO.framework/Versions/A/ImageIO
>> 0x9192d000 - 0x919dffff libcrypto.0.9.7.dylib 	/usr/lib/libcrypto. 
>> 0.9.7.dylib
>> 0x91a25000 - 0x91a3bfff libcups.2.dylib 	/usr/lib/libcups.2.dylib
>> 0x91a40000 - 0x91a5cfff libJPEG.dylib 	/System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ 
>> ImageIO.framework/Versions/A/Resources/libJPEG.dylib
>> 0x91a61000 - 0x91abffff libJP2.dylib 	/System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ 
>> ImageIO.framework/Versions/A/Resources/libJP2.dylib
>> 0x91acf000 - 0x91ad3fff libGIF.dylib 	/System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ 
>> ImageIO.framework/Versions/A/Resources/libGIF.dylib
>> 0x91ad5000 - 0x91b30fff libRaw.dylib 	/System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ 
>> ImageIO.framework/Versions/A/Resources/libRaw.dylib
>> 0x91b34000 - 0x91b71fff libTIFF.dylib 	/System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ 
>> ImageIO.framework/Versions/A/Resources/libTIFF.dylib
>> 0x91b77000 - 0x91b91fff libPng.dylib 	/System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ 
>> ImageIO.framework/Versions/A/Resources/libPng.dylib
>> 0x91b96000 - 0x91b98fff libRadiance.dylib 	/System/Library/ 
>> Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ 
>> ImageIO.framework/Versions/A/Resources/libRadiance.dylib
>> 0x91b9a000 - 0x91b9afff com.apple.Accelerate 1.2.1 (Accelerate  
>> 1.2.1)	/System/Library/Frameworks/Accelerate.framework/Versions/A/ 
>> Accelerate
>> 0x91b9c000 - 0x91c22fff com.apple.vImage 2.3	/System/Library/ 
>> Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
>> vImage.framework/Versions/A/vImage
>> 0x91c29000 - 0x91c29fff com.apple.Accelerate.vecLib 3.2.1 (vecLib  
>> 3.2.1)	/System/Library/Frameworks/Accelerate.framework/Versions/A/ 
>> Frameworks/vecLib.framework/Versions/A/vecLib
>> 0x91c2b000 - 0x91c70fff libvMisc.dylib 	/System/Library/Frameworks/ 
>> Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ 
>> Versions/A/libvMisc.dylib
>> 0x91c78000 - 0x91c9dfff libvDSP.dylib 	/System/Library/Frameworks/ 
>> Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ 
>> Versions/A/libvDSP.dylib
>> 0x91ca4000 - 0x92227fff libBLAS.dylib 	/System/Library/Frameworks/ 
>> Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ 
>> Versions/A/libBLAS.dylib
>> 0x92264000 - 0x92616fff libLAPACK.dylib 	/System/Library/ 
>> Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
>> vecLib.framework/Versions/A/libLAPACK.dylib
>> 0x92643000 - 0x926c7fff com.apple.DesktopServices 1.3.3	/System/ 
>> Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/ 
>> DesktopServicesPriv
>> 0x92703000 - 0x92935fff com.apple.Foundation 6.4.5 (567.26)	/ 
>> System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
>> 0x92a41000 - 0x92b1ffff libxml2.2.dylib 	/usr/lib/libxml2.2.dylib
>> 0x92b3c000 - 0x92c29fff libiconv.2.dylib 	/usr/lib/libiconv.2.dylib
>> 0x92c39000 - 0x92c50fff libGL.dylib 	/System/Library/Frameworks/ 
>> OpenGL.framework/Versions/A/Libraries/libGL.dylib
>> 0x92c5b000 - 0x92cb2fff libGLU.dylib 	/System/Library/Frameworks/ 
>> OpenGL.framework/Versions/A/Libraries/libGLU.dylib
>> 0x92ce6000 - 0x92ceefff com.apple.speech.recognition.framework  
>> 3.5	/System/Library/Frameworks/Carbon.framework/Versions/A/ 
>> Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
>> 0x92ed2000 - 0x92edffff com.apple.audio.SoundManager 3.9.1	/System/ 
>> Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ 
>> CarbonSound.framework/Versions/A/CarbonSound
>> 0x92ef0000 - 0x931e2fff com.apple.HIToolbox 1.4.6 (???)	/System/ 
>> Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ 
>> HIToolbox.framework/Versions/A/HIToolbox
>> 0x932e7000 - 0x932f2fff com.apple.opengl 1.4.9	/System/Library/ 
>> Frameworks/OpenGL.framework/Versions/A/OpenGL
>> 0x93381000 - 0x93381fff com.apple.Cocoa 6.4 (???)	/System/Library/ 
>> Frameworks/Cocoa.framework/Versions/A/Cocoa
>> 0x93383000 - 0x93a3cfff com.apple.AppKit 6.4.5 (824.35)	/System/ 
>> Library/Frameworks/AppKit.framework/Versions/C/AppKit
>> 0x93dbd000 - 0x93e37fff com.apple.CoreData 90	/System/Library/ 
>> Frameworks/CoreData.framework/Versions/A/CoreData
>> 0x93e70000 - 0x93f30fff com.apple.audio.toolbox.AudioToolbox  
>> 1.4.2	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/ 
>> AudioToolbox
>> 0x93f6f000 - 0x93f6ffff com.apple.audio.units.AudioUnit 1.4.2	/ 
>> System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
>> 0x93f71000 - 0x9411ffff com.apple.QuartzCore 1.4.7	/System/Library/ 
>> Frameworks/QuartzCore.framework/Versions/A/QuartzCore
>> 0x9416d000 - 0x941aefff libsqlite3.0.dylib 	/usr/lib/ 
>> libsqlite3.0.dylib
>> 0x941b6000 - 0x941effff libGLImage.dylib 	/System/Library/ 
>> Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
>> 0x9436a000 - 0x94379fff libCGATS.A.dylib 	/System/Library/ 
>> Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ 
>> CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
>> 0x94380000 - 0x9438bfff libCSync.A.dylib 	/System/Library/ 
>> Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ 
>> CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
>> 0x943d7000 - 0x943f1fff libRIP.A.dylib 	/System/Library/Frameworks/ 
>> ApplicationServices.framework/Versions/A/Frameworks/ 
>> CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
>>
>> Model: MacBookPro1,1, BootROM MBP11.0044.B02, 2 processors, Intel  
>> Core Duo, 2 GHz, 2 GB
>> Graphics: ATI Radeon X1600, ATY,RadeonX1600, PCIe, 256 MB
>> Memory Module: DIMM0/BANK 0, 1 GB, DDR2 SDRAM, 667 MHz
>> Memory Module: DIMM1/BANK 1, 1 GB, DDR2 SDRAM, 667 MHz
>> AirPort: spairport_wireless_card_type_airport_extreme (0x168C,  
>> 0x86), 0.1.17
>> Bluetooth: Version 1.7.3f4, 2 service, 0 devices, 1 incoming  
>> serial ports
>> Network Service: Built-in Ethernet, Ethernet, en0
>> Network Service: AirPort, AirPort, en1
>> Serial ATA Device: ST910021AS, 93.16 GB
>> Parallel ATA Device: MATSHITADVD-R   UJ-857
>> USB Device: Built-in iSight, Micron, Up to 480 Mb/sec, 500 mA
>> USB Device: Apple Internal Keyboard / Trackpad, Apple Computer, Up  
>> to 12 Mb/sec, 500 mA
>> USB Device: IR Receiver, Apple Computer, Inc., Up to 12 Mb/sec,  
>> 500 mA
>> USB Device: Bluetooth HCI, Up to 12 Mb/sec, 500 mA
>>
>
> --
> ====================================================================== 
> =====
> John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
> Corporate Smalltalk Consulting Ltd.  http:// 
> www.smalltalkconsulting.com
> ====================================================================== 
> =====
>




More information about the Vm-dev mailing list