VM crash with image 3.9

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

VM crash with image 3.9

Damien Cassou-3
 
Hi,

while I was working with Nile (a new stream library) the VM crashed.

You can reproduce it very easily. Download a fresh 3.9-7067, install
Nile-All from monticello (http://www.squeaksource.com/Nile/).

In a workspace, execute: "NSBenchmarks new benchStringNextPutAllString"

Then, you get:

sweep failed to find exact end of memory

-2145977416 >new:
-2145977508 NSStringWriter>nextPutAll:
-2145977600 [] in NSBenchmarks>benchStringNextPutAllString
-2145977692 Integer>timesRepeat:
2030103240 [] in NSBenchmarks>benchStringNextPutAllString
2030103424 [] in NSBenchmarks>benchWithSqueakStream:andNileStream:do:
-2145996892 BlockContext>bench
2030103644 [] in NSBenchmarks>benchSqueak:Nile:
2030103060 Integer>timesRepeat:
2030102968 NSBenchmarks>benchSqueak:Nile:
2030102876 NSBenchmarks>benchWithSqueakStream:andNileStream:do:
2030102784 NSBenchmarks>benchStringNextPutAllString
2030102692 UndefinedObject>?
2030100224 Compiler>evaluate:in:to:notifying:ifFail:logged:
2030099892 [] in ParagraphEditor>evaluateSelection
2030099792 BlockContext>on:do:
...

--
Damien Cassou
Reply | Threaded
Open this post in threaded view
|

Re: VM crash with image 3.9

Klaus D. Witzel
 
Hi Damien,

on Sat, 26 May 2007 23:09:04 +0200, you wrote:
> Hi,
>
> while I was working with Nile (a new stream library) the VM crashed.
>
> You can reproduce it very easily. Download a fresh 3.9-7067, install
> Nile-All from monticello (http://www.squeaksource.com/Nile/).

Perhaps a method still accesses an iVar which has gone away, can you do  
something like

Smalltalk allClassesAndTraits do:
  [:classOrTrait | ('Nile-*' match: classOrTrait category)
        ifTrue: [classOrTrait compileAll]]
  displayingProgress: 'Recompiling Nile classes and traits'.

> In a workspace, execute: "NSBenchmarks new benchStringNextPutAllString"

Did not crash after the above recompile, instead it prints
   185.1335988978503->167.2261709346418

/Klaus

> Then, you get:
>
> sweep failed to find exact end of memory
>
> -2145977416 >new:
> -2145977508 NSStringWriter>nextPutAll:
> -2145977600 [] in NSBenchmarks>benchStringNextPutAllString
> -2145977692 Integer>timesRepeat:
> 2030103240 [] in NSBenchmarks>benchStringNextPutAllString
> 2030103424 [] in NSBenchmarks>benchWithSqueakStream:andNileStream:do:
> -2145996892 BlockContext>bench
> 2030103644 [] in NSBenchmarks>benchSqueak:Nile:
> 2030103060 Integer>timesRepeat:
> 2030102968 NSBenchmarks>benchSqueak:Nile:
> 2030102876 NSBenchmarks>benchWithSqueakStream:andNileStream:do:
> 2030102784 NSBenchmarks>benchStringNextPutAllString
> 2030102692 UndefinedObject>?
> 2030100224 Compiler>evaluate:in:to:notifying:ifFail:logged:
> 2030099892 [] in ParagraphEditor>evaluateSelection
> 2030099792 BlockContext>on:do:
> ...
>