Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000215 [Squeak] VM crash always 10-04-04 20:02 01-09-11 22:52
Reporter Nick Briggs View Status public  
Assigned To lewis
Priority normal Resolution open  
Status assigned   Product Version
Summary 0000215: JPEGReadWriter2Plugin seg faults on SPARC system because 'double' in structure not 8-byte aligned
Description Attempting to view a web page from the squeak web browser results in a segmentation fault from the Squeak VM.

Ian Piumarta diagnosed the problem (paraphrased):

The plugin code fails to respect the minimum alignment restrictions on the "cinfo" strcture (8-bytes on SPARC because of 'double' members). The glue code for the plugin allocates the space for the struct in a ByteArray, which only guarantees 4-byte alignment, and would be moveable by GC so padding is not a solution to this problem.

Additional Information If the author of the JPEGReadWriter2Plugin is still around to fix it: the code needs to copy the info structure out of the ByteArray into a local buffer before passing it to the JPEG library routines, and then copy back, if it is modified, on the way out.
Attached Files

- Relationships
child of 0006671closed tim Build VMMaker for 3.9 

- Notes
(0012407 - 170 - 170 - 170 - 170 - 170 - 170)
John Thornborrow
07-24-08 10:58

I'm experiencing the same symptoms on x86_64 with a 3.10.1 vm. I am unable to confirm if it is the same cause, as I don't know enough about C to even know where to start.

- Issue History
Date Modified Username Field Change
10-04-04 20:02 Nick Briggs New Issue
07-13-06 07:57 tim Status new => assigned
07-13-06 07:57 tim Assigned To  => tim
09-14-07 00:08 tim Relationship added child of 0006671
07-24-08 10:58 John Thornborrow Note Added: 0012407
01-09-11 22:52 lewis Assigned To tim => lewis

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
42 total queries executed.
33 unique queries executed.
Powered by Mantis Bugtracker