Re: [Pharo-dev] problem with become:?

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

Re: [Pharo-dev] problem with become:?

Eliot Miranda-2
Hi Doru,

On Fri, Jan 8, 2016 at 12:02 PM, Tudor Girba <[hidden email]> wrote:
Hi,

If I execute the following code in the latest Pharo image:

Object subclass: #A
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
Object subclass: #B
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
a := A new.
b := B new.
a become: b.
a class

==> “A".

In a pre-Spur image, I used to get “B”. Is this a bug, or is there a change I am not aware of?

Cheers,
Doru

Looks like a bug to me.  I'll fix it asap.
 


--
www.tudorgirba.com
www.feenk.com

"Things happen when they happen,
not when you talk about them happening."





--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: [Pharo-dev] problem with become:?

Nicolai Hess-3-2


2016-01-08 23:09 GMT+01:00 Eliot Miranda <[hidden email]>:
Hi Doru,

On Fri, Jan 8, 2016 at 12:02 PM, Tudor Girba <[hidden email]> wrote:
Hi,

If I execute the following code in the latest Pharo image:

Object subclass: #A
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
Object subclass: #B
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
a := A new.
b := B new.
a become: b.
a class

==> “A".

In a pre-Spur image, I used to get “B”. Is this a bug, or is there a change I am not aware of?

Cheers,
Doru

Looks like a bug to me.  I'll fix it asap.


There is another bug report at
http://bugs.squeak.org/view.php?id=7845

| obj1 obj2 |
obj1 := 'string'.
obj2 := 1.234.
obj1 become: obj2.
{obj1. obj2} "=> #('X9LÈv¾' 'string'). it should be #(1.234 'string') "

Squeak Cog Supr Virtual Machine 4.0.3427.0 


Is it related?


 


--
www.tudorgirba.com
www.feenk.com

"Things happen when they happen,
not when you talk about them happening."





--
_,,,^..^,,,_
best, Eliot






Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: [squeak-dev] Re: [Pharo-dev] problem with become:?

Eliot Miranda-2


On Fri, Jan 8, 2016 at 2:11 PM, Nicolai Hess <[hidden email]> wrote:
 


2016-01-08 23:09 GMT+01:00 Eliot Miranda <[hidden email]>:
Hi Doru,

On Fri, Jan 8, 2016 at 12:02 PM, Tudor Girba <[hidden email]> wrote:
Hi,

If I execute the following code in the latest Pharo image:

Object subclass: #A
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
Object subclass: #B
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
a := A new.
b := B new.
a become: b.
a class

==> “A".

In a pre-Spur image, I used to get “B”. Is this a bug, or is there a change I am not aware of?

Cheers,
Doru

Looks like a bug to me.  I'll fix it asap.


There is another bug report at
http://bugs.squeak.org/view.php?id=7845

| obj1 obj2 |
obj1 := 'string'.
obj2 := 1.234.
obj1 become: obj2.
{obj1. obj2} "=> #('X9 LÈv¾' 'string'). it should be #(1.234 'string') "

Squeak Cog Supr Virtual Machine 4.0.3427.0 


Is it related?

Thank you, certainly looks like it.

--
www.tudorgirba.com
www.feenk.com

"Things happen when they happen,
not when you talk about them happening."





--
_,,,^..^,,,_
best, Eliot








--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: [squeak-dev] Re: [Pharo-dev] problem with become:?

Eliot Miranda-2
Hi Doru, Hi Nicolai,

On Fri, Jan 8, 2016 at 2:33 PM, Eliot Miranda <[hidden email]> wrote:


On Fri, Jan 8, 2016 at 2:11 PM, Nicolai Hess <[hidden email]> wrote:
 


2016-01-08 23:09 GMT+01:00 Eliot Miranda <[hidden email]>:
Hi Doru,

On Fri, Jan 8, 2016 at 12:02 PM, Tudor Girba <[hidden email]> wrote:
Hi,

If I execute the following code in the latest Pharo image:

Object subclass: #A
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
Object subclass: #B
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
a := A new.
b := B new.
a become: b.
a class

==> “A".

In a pre-Spur image, I used to get “B”. Is this a bug, or is there a change I am not aware of?

Cheers,
Doru

Looks like a bug to me.  I'll fix it asap.


There is another bug report at
http://bugs.squeak.org/view.php?id=7845

| obj1 obj2 |
obj1 := 'string'.
obj2 := 1.234.
obj1 become: obj2.
{obj1. obj2} "=> #('X9 LÈv¾' 'string'). it should be #(1.234 'string') "

Squeak Cog Supr Virtual Machine 4.0.3427.0 


Is it related?

Thank you, certainly looks like it.

The good news is that these are not bugs in the simulator.  So I need to generate new sources and working VMs (and Esteban will need to rebuild the Pharo 5 VM) and then the bugs should be fixed.  There's a slim possibility that this could be due to a Slang bug but I doubt it.


--
www.tudorgirba.com
www.feenk.com

"Things happen when they happen,
not when you talk about them happening."

_,,,^..^,,,_
best, Eliot

_,,,^..^,,,_
best, Eliot

_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: [squeak-dev] Re: [Pharo-dev] problem with become:?

Eliot Miranda-2
Hi Doru, Hi Nicolai,

On Fri, Jan 8, 2016 at 4:20 PM, Eliot Miranda <[hidden email]> wrote:
Hi Doru, Hi Nicolai,

On Fri, Jan 8, 2016 at 2:33 PM, Eliot Miranda <[hidden email]> wrote:


On Fri, Jan 8, 2016 at 2:11 PM, Nicolai Hess <[hidden email]> wrote:
 


2016-01-08 23:09 GMT+01:00 Eliot Miranda <[hidden email]>:
Hi Doru,

On Fri, Jan 8, 2016 at 12:02 PM, Tudor Girba <[hidden email]> wrote:
Hi,

If I execute the following code in the latest Pharo image:

Object subclass: #A
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
Object subclass: #B
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
a := A new.
b := B new.
a become: b.
a class

==> “A".

In a pre-Spur image, I used to get “B”. Is this a bug, or is there a change I am not aware of?

Cheers,
Doru

Looks like a bug to me.  I'll fix it asap.


There is another bug report at
http://bugs.squeak.org/view.php?id=7845

| obj1 obj2 |
obj1 := 'string'.
obj2 := 1.234.
obj1 become: obj2.
{obj1. obj2} "=> #('X9 LÈv¾' 'string'). it should be #(1.234 'string') "

Squeak Cog Supr Virtual Machine 4.0.3427.0 


Is it related?

Thank you, certainly looks like it.

The good news is that these are not bugs in the simulator.  So I need to generate new sources and working VMs (and Esteban will need to rebuild the Pharo 5 VM) and then the bugs should be fixed.  There's a slim possibility that this could be due to a Slang bug but I doubt it.

Shows why I know.  It is indeed a Slang bug, and one that shows itself only under optimisation above -O1, i.e. neither the debug nor assert VMs show the bug :-(.  Alas these are the kind of bugs that take a while to track down.  I'm on it though.

--
www.tudorgirba.com
www.feenk.com

"Things happen when they happen,
not when you talk about them happening."

_,,,^..^,,,_
best, Eliot

_,,,^..^,,,_
best, Eliot

_,,,^..^,,,_
best, Eliot



--
_,,,^..^,,,_
best, Eliot


Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] [squeak-dev] Re: [Pharo-dev] problem with become:?

timrowledge

> On 08-01-2016, at 5:39 PM, Eliot Miranda <[hidden email]> wrote:
>
>
> Shows why I know.  It is indeed a Slang bug, and one that shows itself only under optimisation above -O1, i.e. neither the debug nor assert VMs show the bug :-(.  Alas these are the kind of bugs that take a while to track down.  I'm on it though.

If it’s any consolation in a Pi 3542 vm it appears not to be a problem. Might help track it down...

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Useful random insult:- Suffers from permanent rapture of the deep.  (Nitrogen narcosis.)




Reply | Threaded
Open this post in threaded view
|

Re: [Vm-dev] Re: [squeak-dev] Re: [Pharo-dev] problem with become:?

EstebanLM
In reply to this post by Eliot Miranda-2

On 09 Jan 2016, at 01:20, Eliot Miranda <[hidden email]> wrote:

Hi Doru, Hi Nicolai,

On Fri, Jan 8, 2016 at 2:33 PM, Eliot Miranda <[hidden email]> wrote:


On Fri, Jan 8, 2016 at 2:11 PM, Nicolai Hess <[hidden email]> wrote:
 


2016-01-08 23:09 GMT+01:00 Eliot Miranda <[hidden email]>:
Hi Doru,

On Fri, Jan 8, 2016 at 12:02 PM, Tudor Girba <[hidden email]> wrote:
Hi,

If I execute the following code in the latest Pharo image:

Object subclass: #A
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
Object subclass: #B
        instanceVariableNames: ''
        classVariableNames: ''
        package: 'AA'.
a := A new.
b := B new.
a become: b.
a class

==> “A".

In a pre-Spur image, I used to get “B”. Is this a bug, or is there a change I am not aware of?

Cheers,
Doru

Looks like a bug to me.  I'll fix it asap.


There is another bug report at 
http://bugs.squeak.org/view.php?id=7845

| obj1 obj2 |
obj1 := 'string'.
obj2 := 1.234.
obj1 become: obj2.
{obj1. obj2} "=> #('X9 LÈv¾' 'string'). it should be #(1.234 'string') "

Squeak Cog Supr Virtual Machine 4.0.3427.0 


Is it related?

Thank you, certainly looks like it.

The good news is that these are not bugs in the simulator.  So I need to generate new sources and working VMs (and Esteban will need to rebuild the Pharo 5 VM) and then the bugs should be fixed.  There's a slim possibility that this could be due to a Slang bug but I doubt it.

yes, I’m now one month behind but that’s because of a bug in pharo who is not fixed, so next week I will resume the jobs. 
If there are not “issues” like this, normally VM is available immediately after a VMMaker commit :)

Esteban



--
www.tudorgirba.com
www.feenk.com

"Things happen when they happen,
not when you talk about them happening."

_,,,^..^,,,_
best, Eliot

_,,,^..^,,,_
best, Eliot

_,,,^..^,,,_
best, Eliot