Hey all, How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method Tmp>>tmp [ ^ true ] and I try to executeTmp new tmp. The VM segfaults. -- Cheers, BoriS
Wow, I can confirm that it does crash the VM ;-) Which is totally weird because this is basically a no-op since you do not evaluate the block, it should basically return self, ignoring the block.
On 16 Nov 2015, at 11:49, Boris Spasojevic <spasojev@inf.unibe.ch> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults.
-- Cheers, BoriS
2015-11-16 12:00 GMT+01:00 Sven Van Caekenberghe <sven@stfx.eu>:
Wow, I can confirm that it does crash the VM ;-)
Which is totally weird because this is basically a no-op since you do not evaluate the block, it should basically return self, ignoring the block.
On 16 Nov 2015, at 11:49, Boris Spasojevic <spasojev@inf.unibe.ch> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults.
-- Cheers, BoriS
Sorry, what is the bytecode of the method? The Pharo version? Thierry 2015-11-16 12:02 GMT+01:00 Thierry Goubier <thierry.goubier@gmail.com>:
2015-11-16 12:00 GMT+01:00 Sven Van Caekenberghe <sven@stfx.eu>:
Wow, I can confirm that it does crash the VM ;-)
Which is totally weird because this is basically a no-op since you do not evaluate the block, it should basically return self, ignoring the block.
On 16 Nov 2015, at 11:49, Boris Spasojevic <spasojev@inf.unibe.ch> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults.
-- Cheers, BoriS
I did it on 50443, the bytecode/ast looked OK to my untrained eyes. You can easily try it yourself.
On 16 Nov 2015, at 12:03, Thierry Goubier <thierry.goubier@gmail.com> wrote:
Sorry,
what is the bytecode of the method? The Pharo version?
Thierry
2015-11-16 12:02 GMT+01:00 Thierry Goubier <thierry.goubier@gmail.com>:
2015-11-16 12:00 GMT+01:00 Sven Van Caekenberghe <sven@stfx.eu>: Wow, I can confirm that it does crash the VM ;-)
Which is totally weird because this is basically a no-op since you do not evaluate the block, it should basically return self, ignoring the block.
On 16 Nov 2015, at 11:49, Boris Spasojevic <spasojev@inf.unibe.ch> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults.
-- Cheers, BoriS
Hi Boris
On 16 Nov 2015, at 11:49, Boris Spasojevic <spasojev@inf.unibe.ch> wrote:
Hey all,
How and where can I report the pharo VM crashing?
On the VM dev list: vm-dev@lists.squeakfoundation.org <mailto:vm-dev@lists.squeakfoundation.org>. Iâve forwarded your message. Cheers, Max
if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults. -- Cheers, BoriS
On 16 Nov 2015, at 11:49 , Boris Spasojevic <spasojev@inf.unibe.ch> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults. -- Cheers, BoriS
That's a compiler (and probably a code) bug. It correctly eliminates the unused block, but it *should* emit a return self instruction (as it would for a method with an empty body), but it doesn't, which is why the VM crashes. Cheers, Henry
On 16 Nov 2015, at 08:08, Henrik Johansen <henrik.s.johansen@veloxit.no> wrote:
On 16 Nov 2015, at 11:49 , Boris Spasojevic <spasojev@inf.unibe.ch <mailto:spasojev@inf.unibe.ch>> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults. -- Cheers, BoriS
That's a compiler (and probably a code) bug. It correctly eliminates the unused block, but it *should* emit a return self instruction (as it would for a method with an empty body), but it doesn't, which is why the VM crashes.
Yes, thatâs it. Should not be to hard to fix.. can you add an issue to the issue tracker? Marcus
On Mon, Nov 16, 2015 at 8:56 AM, Marcus Denker <marcus.denker@inria.fr> wrote:
On 16 Nov 2015, at 08:08, Henrik Johansen <henrik.s.johansen@veloxit.no> wrote:
On 16 Nov 2015, at 11:49 , Boris Spasojevic <spasojev@inf.unibe.ch> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults.
-- Cheers, BoriS
That's a compiler (and probably a code) bug. It correctly eliminates the unused block, but it *should* emit a return self instruction (as it would for a method with an empty body), but it doesn't, which is why the VM crashes.
Yes, thatâs it. Should not be to hard to fix.. can you add an issue to the issue tracker?
Hi guys, We were having a some crashes the other day with block closures compilation in 4.0. I didn't send a mail to the mailing list because I was not able to find a small reproducible test case. Maybe it is the same case as this one since my final thought was that it was a compiler problem and not VM. Marcus, do you think a workaround could also be applied to 4.0? If true, I can check if that solves my crashes or otherwise keep trying to see if I find a smaller case. Thanks! -- Mariano http://marianopeck.wordpress.com
On 16 Nov 2015, at 09:32, Mariano Martinez Peck <marianopeck@gmail.com> wrote:
On Mon, Nov 16, 2015 at 8:56 AM, Marcus Denker <marcus.denker@inria.fr <mailto:marcus.denker@inria.fr>> wrote:
On 16 Nov 2015, at 08:08, Henrik Johansen <henrik.s.johansen@veloxit.no <mailto:henrik.s.johansen@veloxit.no>> wrote:
On 16 Nov 2015, at 11:49 , Boris Spasojevic <spasojev@inf.unibe.ch <mailto:spasojev@inf.unibe.ch>> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults. -- Cheers, BoriS
That's a compiler (and probably a code) bug. It correctly eliminates the unused block, but it *should* emit a return self instruction (as it would for a method with an empty body), but it doesn't, which is why the VM crashes.
Yes, thatâs it. Should not be to hard to fix.. can you add an issue to the issue tracker?
Hi guys,
We were having a some crashes the other day with block closures compilation in 4.0. I didn't send a mail to the mailing list because I was not able to find a small reproducible test case. Maybe it is the same case as this one since my final thought was that it was a compiler problem and not VM. Marcus, do you think a workaround could also be applied to 4.0? If true, I can check if that solves my crashes or otherwise keep trying to see if I find a smaller case.
Yes, this will be back ported. Marcus
On 16 Nov 2015, at 12:56 , Marcus Denker <marcus.denker@inria.fr> wrote:
On 16 Nov 2015, at 08:08, Henrik Johansen <henrik.s.johansen@veloxit.no <mailto:henrik.s.johansen@veloxit.no>> wrote:
On 16 Nov 2015, at 11:49 , Boris Spasojevic <spasojev@inf.unibe.ch <mailto:spasojev@inf.unibe.ch>> wrote:
Hey all,
How and where can I report the pharo VM crashing? if I have a class Tmp and it has a method
Tmp>>tmp [ ^ true ]
and I try to execute Tmp new tmp. The VM segfaults. -- Cheers, BoriS
That's a compiler (and probably a code) bug. It correctly eliminates the unused block, but it *should* emit a return self instruction (as it would for a method with an empty body), but it doesn't, which is why the VM crashes.
Yes, thatâs it. Should not be to hard to fix.. can you add an issue to the issue tracker?
Marcus
Added: 17022. Wrote down some initial thoughts that may be of help. Cheers, Henry
participants (7)
-
Boris Spasojevic -
Henrik Johansen -
Marcus Denker -
Mariano Martinez Peck -
Max Leske -
Sven Van Caekenberghe -
Thierry Goubier