SYSTEM WARNING: Creating default object from empty value

SYSTEM WARNING: Creating default object from empty value

Mantis - Squeak
Viewing Issue Advanced Details
7157 VM crash always 08-19-08 07:11 11-23-10 15:18
kwl  
lewis  
normal  
resolved  
fixed  
none    
none  
0007157: Using ObjectAsMethod (#primitiveInvokeObjectAsMethod) crashes VM
testing ObjectAsMethod for its use in a project. This happened a minute ago:

 myClass compiledMethodAt: #SomeSymbol put: 4.

 myClass SomeSymbol printString "made #run:with:in: to just return self"

bang! => Access violation (read access) at 00000009

observe the SmallInteger oop (4 << 1 + 1).
in Interpreter>>#lookupMethodInDictionary: it does

"Check if newMethod is a CompiledMethod."

 (self isCompiledMethod: newMethod)

but neither #lookupMethodInDictionary: nor #isCompiledMethod: do check for a small integer object :(
has duplicate 0007426resolved lewis 'Run object as method' feature leads to crash if object is smallinteger 
related to 0007453confirmed lewis VM crashes when evaluating Morph methodDict valuesDo: 1. 
child of 0007480feedback  Issues that should be fixed in 4.1 

Notes
(0013945)
leves   
11-23-10 15:18   
Fixed in VMMaker-dtl.204 (VMMaker 4.3.17).