Mantis - Squeak
Viewing Issue Advanced Details
3706 SqueakMap major always 05-23-06 22:44 07-13-06 09:18
kbrown  
gokr  
normal  
closed 3.9  
fixed  
none    
none 3.9  
0003706: 'SMSqueakMap bootStrap' doit fails with primitive failure - Squeak3.9b-7032
Installed ftp://ftp.squeak.org/3.9Beta/Squeak3.9b-7032.zip [^] running on VM Squeak 3.8.12beta4U.app on Mac G5 with OS X 10.4.6.

Open a workspace, then execute 'SMSqueakMap bootStrap'
After some time "Upgrading SqueakMap", get a primitive failed error. This is with no sm or package-cache folders present when Squeak starts up.

This failure also happens when first rying to Open SqueakMap and it requires an upgrade to a later verson of SqueakMap to match the server.
Therefore Cannot use SqueakMap at all.
Contents of SqueakDebug.log after starting the Debugger at this point:

Error: a primitive has failed
23 May 2006 1:44:28 pm

VM: Mac OS - a SmalltalkImage
Image: Squeak3.9alpha [latest update: 0007032]

SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir /Volumes/SA160/SqueakStuff/Sqkb/Sqkb3.9/Sqkb3.9b/Squeak3.9b-7032 Folder
Trusted Dir /Volumes/SA160/SqueakStuff/Sqkb/Sqkb3.9/Sqkb3.9b/Squeak3.9b-7032 Folder
Untrusted Dir /Users/kbrown/Library/Preferences/Squeak/Internet/My Squeak

ByteString class(Object)>>error:
    Receiver: ByteString
    Arguments and temporary variables:
        aString: 'a primitive has failed'
    Receiver's instance variables:
        superclass: String
        methodDict: a MethodDictionary(#asByteArray->a CompiledMethod (2960) #asOctetSt...etc...
        format: 23554
        instanceVariables: nil
        organization: ('accessing' at: at:put: byteAt: byteAt:put: byteSize replaceFrom...etc...
        subclasses: nil
        name: #ByteString
        classPool: nil
        sharedPools: nil
        environment: a SystemDictionary(lots of globals)
        category: #'Collections-Strings'
        traitComposition: nil
        localSelectors: nil

ByteString class(Object)>>primitiveFailed
    Receiver: ByteString
    Arguments and temporary variables:

    Receiver's instance variables:
        superclass: String
        methodDict: a MethodDictionary(#asByteArray->a CompiledMethod (2960) #asOctetSt...etc...
        format: 23554
        instanceVariables: nil
        organization: ('accessing' at: at:put: byteAt: byteAt:put: byteSize replaceFrom...etc...
        subclasses: nil
        name: #ByteString
        classPool: nil
        sharedPools: nil
        environment: a SystemDictionary(lots of globals)
        category: #'Collections-Strings'
        traitComposition: nil
        localSelectors: nil

ByteString class(Behavior)>>basicNew:
    Receiver: ByteString
    Arguments and temporary variables:
        sizeRequested: -1
    Receiver's instance variables:
        superclass: String
        methodDict: a MethodDictionary(#asByteArray->a CompiledMethod (2960) #asOctetSt...etc...
        format: 23554
        instanceVariables: nil
        organization: ('accessing' at: at:put: byteAt: byteAt:put: byteSize replaceFrom...etc...
        subclasses: nil
        name: #ByteString
        classPool: nil
        sharedPools: nil
        environment: a SystemDictionary(lots of globals)
        category: #'Collections-Strings'
        traitComposition: nil
        localSelectors: nil

ByteString class(String class)>>new:
    Receiver: ByteString
    Arguments and temporary variables:
        sizeRequested: -1
    Receiver's instance variables:
        superclass: String
        methodDict: a MethodDictionary(#asByteArray->a CompiledMethod (2960) #asOctetSt...etc...
        format: 23554
        instanceVariables: nil
        organization: ('accessing' at: at:put: byteAt: byteAt:put: byteSize replaceFrom...etc...
        subclasses: nil
        name: #ByteString
        classPool: nil
        sharedPools: nil
        environment: a SystemDictionary(lots of globals)
        category: #'Collections-Strings'
        traitComposition: nil
        localSelectors: nil


--- The full stack ---
ByteString class(Object)>>error:
ByteString class(Object)>>primitiveFailed
ByteString class(Behavior)>>basicNew:
ByteString class(String class)>>new:
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ByteString(SequenceableCollection)>>copyFrom:to:
ByteString(SequenceableCollection)>>first:
SMSqueakMap>>saveCheckpoint:
[] in SMSqueakMap>>loadFullFrom: {[self saveCheckpoint: zipped]}
Time class>>millisecondsToRun:
SMSqueakMap>>loadFullFrom:
SMSqueakMap>>loadUpdatesFull:
SMSqueakMap>>loadFull
SMSqueakMap>>loadUpdates
[] in UndefinedObject>>DoIt {[(Smalltalk hasClassNamed: #SMLoader) ifTrue: [(Smalltalk at: #SMLoader) a...]}
BlockContext>>ensure:
CursorWithMask(Cursor)>>showWhile:
UndefinedObject>>DoIt
Compiler>>evaluate:in:to:notifying:ifFail:logged:
Compiler class>>evaluate:for:notifying:logged:
Compiler class>>evaluate:for:logged:
Compiler class>>evaluate:logged:
[] in ReadStream(PositionableStream)>>fileInAnnouncing: {[val := (self peekFor: $!) ifTrue: [(Compiler evaluate: self nextChunk l...]}
BlockContext>>on:do:
[] in ReadStream(PositionableStream)>>fileInAnnouncing: {[:bar | [self atEnd] whileFalse: [bar value: self position. self skipS...]}
[] in ProgressInitiationException>>defaultMorphicAction {[result := workBlock value: progress]}
BlockContext>>ensure:
ProgressInitiationException>>defaultMorphicAction
ProgressInitiationException>>defaultAction
UndefinedObject>>handleSignal:
MethodContext(ContextPart)>>handleSignal:
MethodContext(ContextPart)>>handleSignal:
ProgressInitiationException(Exception)>>signal
...etc...

Notes
(0005163)
kbrown   
06-01-06 20:08   
This primitive failure also occurs in b7031 and b7033.
The first time this is attempted, two directories are created in the image directory, sm, and package-cache.
Trying the bootStrap a second time still results in the same primitive failure.
(0005832)
MarcusDenker   
07-13-06 09:18   
works 7041