Segfault at startup due to FFI

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

Segfault at startup due to FFI

Tapple Gao
I have an image that is segfaulting at startup due to a process
that is using Smallapack, which uses FFI. The process is not
critical, so I would like to start the vm, then terminate the
offending process before it gets to run. My image would probably
work fine then.

I think the process is crashing because it is invoking Morphic,
getting nil or something weird since Morphic is not yet
initialized, then sending crap at FFI, and segfaulting.

How can I do that, or can I do it at all?

--
Matthew Fulmer -- http://mtfulmer.wordpress.com/
Help improve Squeak Documentation: http://wiki.squeak.org/squeak/808

Reply | Threaded
Open this post in threaded view
|

Re: Segfault at startup due to FFI

Andreas.Raab
Try removing the FFI plugin from the search path of the VM (unless it's
builtin then you are stuck here). This will cause all FFI calls to fail
immediately and (hopefully) prevent the crash.

Cheers,
   - Andreas

Matthew Fulmer wrote:

> I have an image that is segfaulting at startup due to a process
> that is using Smallapack, which uses FFI. The process is not
> critical, so I would like to start the vm, then terminate the
> offending process before it gets to run. My image would probably
> work fine then.
>
> I think the process is crashing because it is invoking Morphic,
> getting nil or something weird since Morphic is not yet
> initialized, then sending crap at FFI, and segfaulting.
>
> How can I do that, or can I do it at all?
>


Reply | Threaded
Open this post in threaded view
|

Re: Segfault at startup due to FFI

timrowledge

On 27-Jan-07, at 6:19 PM, Andreas Raab wrote:

> Try removing the FFI plugin from the search path of the VM (unless  
> it's builtin then you are stuck here).

Not quite; if someone can make a plugin that does nothing except  
*pretend* to be the FFIPlugin then he can put it in a suitable place  
and it should override the internal copy.


tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
A flash of light, a cloud of dust, and...  What was the question?