[Vm-dev] CameraPlugin segmentation fault on 64-bit Linux

David T. Lewis lewis at mail.msen.com
Sat Apr 29 15:58:15 UTC 2017


On Sat, Apr 29, 2017 at 08:33:11AM -0600, Daniel Drake wrote:
> Hi,
> 
> Scratch crashes on 64-bit Linux when attempting to use the webcam:
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x0000000000421fdb in lookupMethodInClass (class=<optimized out>)
>     at /usr/src/packages/BUILD/squeak-vm-app-4.10.2.2614/build-tree/gnu-interp.c:13387
> 13387 /usr/src/packages/BUILD/squeak-vm-app-4.10.2.2614/build-tree/gnu-interp.c:
> No such file or directory.
> (gdb) bt
> #0  0x0000000000421fdb in lookupMethodInClass (class=<optimized out>)
>     at /usr/src/packages/BUILD/squeak-vm-app-4.10.2.2614/build-tree/gnu-interp.c:13387
> #1  0x0000000000427907 in interpret ()
>     at /usr/src/packages/BUILD/squeak-vm-app-4.10.2.2614/build-tree/gnu-interp.c:9287
> #2  0x00000000004125cf in main (argc=<optimized out>, argv=0x7ffc2aca0338,
>     envp=<optimized out>)
>     at /usr/src/packages/BUILD/squeak-vm-app-4.10.2.2614/unix/vm/sqUnixMain.c:1460
> 
> This has been discussed before, but as far as I can see there is no news:
> http://lists.squeakfoundation.org/pipermail/vm-dev/2014-April/015020.html
> http://bugs.squeak.org/view.php?id=7816
> 
> 
> Apparently the CameraPlugin needs to be ported to be 64-bit
> compatible. Are there any examples in the squeak-vm svn history of
> other plugins or code that have been ported similarly?
> 
> I'd like to have a go at fixing the crash. I don't have any experience
> with squeak-vm internals, but I've fixed 32/64 problems in other
> contexts, and I wonder if looking at another previously-fixed plugin
> as an example would get me on my way.
> 
> Thanks
> Daniel

I don't think that the camera plugin was ever made 64-bit clean. A bug report
is at http://bugs.squeak.org/view.php?id=7816

This would be a good project for an interested volunteer :-)

Dave



More information about the Vm-dev mailing list