John Paul Adrian Glaubitz
2024-10-10 18:50:01 UTC
Reply
PermalinkVersion: 1.84.1-4
Severity: normal
Tags: upstream
User: debian-***@lists.debian.org
Usertags: sparc64
X-Debbugs-Cc: debian-***@lists.debian.org
Hi,
leptonlib currently fails to build from source on sparc64 due to unaligned access:
FAIL: ioformats_reg
===================
////////////////////////////////////////////////
//////////////// ioformats_reg ///////////////
////////////////////////////////////////////////
leptonica-1.84.2 : libgif 5.2.2 : libjpeg 6b (libjpeg-turbo 2.1.5) : libpng 1.6.44 : libtiff 4.5.1 : zlib 1.3.1 : libwebp 1.4.0 : libopenjp2 2.5.0
Test bmp 1 bpp file:
Bus error (core dumped)
FAIL ioformats_reg (exit status: 138)
with the following backtrace:
#0 0xfff800010064f9b0 in pixReadMemBmp (cdata=0x10000231160 "BMV\r", size=3414) at bmpio.c:181
181 ihbytes = convertOnBigEnd32(*(l_uint32 *)(bmpih));
(gdb) bt
#0 0xfff800010064f9b0 in pixReadMemBmp (cdata=0x10000231160 "BMV\r", size=3414) at bmpio.c:181
#1 0xfff80001006504dc in pixReadStreamBmp (fp=0x1000022c1d0) at bmpio.c:102
#2 0xfff80001007aa700 in pixReadStream (fp=0x1000022c1d0, hint=0) at readfile.c:329
#3 pixReadStream (fp=0x1000022c1d0, hint=0) at readfile.c:313
#4 0xfff80001007aa8b8 in pixRead (filename=0x10000231140 "./weasel2.4c.bmp") at readfile.c:200
#5 pixRead (filename=0x10000231140 "./weasel2.4c.bmp") at readfile.c:189
#6 0xfff80001007f538c in writeMultipageTiffSA (sa=0x10000204ac0, fileout=0x10000002aa8 "/tmp/lept/tiff/weasel_orig.tif") at tiffio.c:1579
#7 0xfff80001007f551c in writeMultipageTiff (dirin=0x10000002860 ".", substr=0x10000002ac8 "weasel2", fileout=0x10000002aa8 "/tmp/lept/tiff/weasel_orig.tif")
at tiffio.c:1536
#8 0x0000010000001f1c in main (argc=<optimized out>, argv=<optimized out>) at mtiff_reg.c:270
This has already been reported upstream [1].
Thanks,
Adrian
[1] https://github.com/DanBloomberg/leptonica/issues/750
--.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913