Recover from an MNU in start up list?

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

Recover from an MNU in start up list?

Philippe Marschall-2-3
Hi

I extracted a superclass and now I get a MNU during image startup
because I have an instance of the now abstract base class in the start
up list.

The image comes up for a fraction of a second and the crashes
(PharoDebug.log). Any idea of how I can recover from this?

Cheers
Philippe


Reply | Threaded
Open this post in threaded view
|

Re: Recover from an MNU in start up list?

Eliot Miranda-2


On Sun, Apr 8, 2012 at 2:26 PM, Philippe Marschall <[hidden email]> wrote:
Hi

I extracted a superclass and now I get a MNU during image startup because I have an instance of the now abstract base class in the start up list.

The image comes up for a fraction of a second and the crashes (PharoDebug.log). Any idea of how I can recover from this?

One way is in gdb put a breakpoint in the MNU processing (createActualMessage).  Then when you hit the MNU edit the message object to something harmless such as Message selector: #class arguments: #(), and proceed.  This isn't easy.  You have to learn how to find symbols in the VM (you'll need to find eg. #class) and how to store pointers in an object.  So only consider doing this if the image is worth a few hours learning arcane VM innards, and possibly building a debug VM that'll be less fragile in gdb.



Cheers
Philippe





--
best,
Eliot

Reply | Threaded
Open this post in threaded view
|

Re: Recover from an MNU in start up list?

Max Leske
In reply to this post by Philippe Marschall-2-3
For 1.3 see http://code.google.com/p/pharo/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Summary%20Milestone%20Difficulty&groupby=&sort=&id=4617
For 1.4 I don't know.

Max

PS: Still working on a working fix… sorry for the delay but I'm trying to be thorough


On 08.04.2012, at 23:26, Philippe Marschall wrote:

> Hi
>
> I extracted a superclass and now I get a MNU during image startup because I have an instance of the now abstract base class in the start up list.
>
> The image comes up for a fraction of a second and the crashes (PharoDebug.log). Any idea of how I can recover from this?
>
> Cheers
> Philippe
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Recover from an MNU in start up list?

ccrraaiigg
In reply to this post by Eliot Miranda-2

> One way is in gdb put a breakpoint in the MNU processing
> (createActualMessage).

     Or do it from the VM simulator. If you can't get it work, I'll take
a stab at it.


     good luck,

-C

--
Craig Latta
www.netjam.org/resume
+31   6 2757 7177
+ 1 415  287 3547
+ 1 510  282 7468