[tlbuild] Core dump with image inclusion inside LuaTeX on Sparc Solaris

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Wed Aug 14 12:47:27 CEST 2019


Hi!

On 7/21/19 11:04 AM, luigi scarso wrote:
> 
>     The alignment issue does not only affect Solaris/SPARC but also Linux/SPARC.
> 
>     see: https://buildd.debian.org/status/fetch.php?pkg=texlive-bin&arch=sparc64&ver=2019.20190605.51237-2&stamp=1562791518&raw=0
> 
>     Could you extend the fix for these platforms?
> 
> 
> Ok I will see it asap

Has there been any progress yet regarding this bug?

>     Please note for 32-bit Linux, the compiler defines __sparc__ while for 64-bit Linux, it defines __sparc__ && __arch64__. There is no __sparc64__ macro.
> 
>     It might be a better idea to fix the alignment unconditionally so that future platforms are not affected either.
> 
>        
> 
> 
> 
> It should even better to not have these issues at all....

Correct. But these issues usually only occur when the code itself messes around with the
alignment while doing pointer arithmetic or casting. The compiler itself always makes
sure the alignment is correct. FWIW, alignment issues can also trigger crashes on ARM,
for example. It's just that SPARC is the architecture that is primarily affected as it
doesn't have a helper in the kernel which turns unaligned accesses into aligned ones
(which reduces performance).

So, for performance reasons (unless you are on x86 only), you should always care about
proper alignment.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


More information about the tlbuild mailing list