On Tue, Jan 17, 2012 at 11:13 PM, Yanni Chiu <[email protected]> wrote:

> On 17/01/12 4:44 PM, Mariano Martinez Peck wrote:
>
>> I have already opened an issue several months ago:
>> http://code.google.com/p/**pharo/issues/detail?id=5005<http://code.google.com/p/pharo/issues/detail?id=5005>
>>
>> I have also made it as much reproducable as I could and I have also
>> asked for help:
>> http://forum.world.st/Help-**with-cleanUpForRelease-is-**
>> broken-MessageNotUnderstood-**ByteSymbol-run-with-in-**
>> tp4205909p4205909.html<http://forum.world.st/Help-with-cleanUpForRelease-is-broken-MessageNotUnderstood-ByteSymbol-run-with-in-tp4205909p4205909.html>
>>
>
> Yep, that's what I'm seeing. You end up with a Symbol where something else
> (a CompiledMethod?) is expected.
>
> I tried the code from the bug report:
>
> ClassOrganizer cleanUp: true.
>        Smalltalk
>                allClassesAndTraitsDo: [ :class |
>                        [ :each |
>                                each
>                                        removeEmptyCategories;
>                                        sortCategories ]
>                                                value: class organization;
>                                                value: class class
> organization ].
>
> It did not cause any problem in either my new or old image (i.e. new is
> image derived from current build, and old is the base image I have been
> using, which did not have a problem before).
>
>
>
No, that was a mistake. The last one I could find to reproduce it is what I
wrote in the last email:


*" Well.....the maximum I got after a couple of hours is to be able to
reproduce it executing TWO times (because the first one works) the
following:

"code that geenrates the bug"
HashedCollection compactAll.
Smalltalk removeEmptyMessageCategories.

"Code to test the bug"
    Smalltalk
        allClassesAndTraitsDo: [ :class |
            [ :each |
                each
                    removeEmptyCategories;
                    sortCategories ]
                        value: class organization;
                        value: class class organization ].


If I do only  HashedCollection compactAll or only Smalltalk
removeEmptyMessageCategories., there is no problem, I can execute the rest
without problems. If I do both (no matter which order), then the error
happens. Moreover, I tried:
(HashedCollection allSubclasses reject: [:each | each = MethodDictionary ])
do: #compactAllInstances.
and that does work (no errors). So...somehow, the compact of the
MethodDictionary is affecting something...what it is weird is that it only
fails if the other code is executed...

Anyway, any hint is appreciated.

Thanks
"*


can you reproduce the problem with that ?

-- 
Mariano
http://marianopeck.wordpress.com

Reply via email to