help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [bug] "Behavior new new bla" crashes the VM


From: Holger Hans Peter Freyther
Subject: [Help-smalltalk] [bug] "Behavior new new bla" crashes the VM
Date: Wed, 05 Sep 2012 11:58:23 -0700

Issue status update for http://smalltalk.gnu.org/node/657 Post a follow up: http://smalltalk.gnu.org/project/comments/add/657

Project:      GNU Smalltalk
Version:      <none>
Component:    VM
Category:     bug reports
Priority:     normal
Assigned to:  Unassigned
Reported by:  zecke
Updated by:   zecke
Status:       active

It is crashing the VM because the object does not even understand
doesNotUnderstand. This means that one should check for either recursion
or if one attempted to send the method.

diff --git a/libgst/interp-bc.inl b/libgst/interp-bc.inl
index 8819481..5085377 100644
--- a/libgst/interp-bc.inl

+++  b/libgst/interp-bc.inl

@@ -201,8 +201,9 @@ _gst_send_message_internal (OOP sendSelector,
     /* :-( cache miss )-: */
     if (!lookup_method (sendSelector, methodData, sendArgs,
method_class))
      {
-         _gst_send_message_internal (_gst_does_not_understand_symbol,
1,
-                                     receiver, method_class);

+          if ( sendSelector != _gst_does_not_understand_symbol)

+                 _gst_send_message_internal
(_gst_does_not_understand_symbol, 1,

+                                              receiver, method_class);

        return;
      }






reply via email to

[Prev in Thread] Current Thread [Next in Thread]