re-added LUT paths in 0.1.104 segfault on s390x (big endian) musl
this was an issue before too, was fixed via their removal in prior release
Summary of Failures:
10/28 chromaticities FAIL 0.13s killed by signal 11 SIGSEGV
22/28 palette FAIL 0.19s killed by signal 11 SIGSEGV
24/28 conversions FAIL 0.40s killed by signal 11 SIGSEGV
valgrind
20/28 chromaticities FAIL 9.09s killed by signal 11 SIGSEGV
>>> BABL_PATH=/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions MALLOC_PERTURB_=103 LD_LIBRARY_PATH=/home/demon/src/aports/community/babl/src/babl-0.1.104/output/babl valgrind /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/chromaticities
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
==22718== Memcheck, a memory error detector
==22718== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==22718== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==22718== Command: /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/chromaticities
==22718==
==22718== Invalid read of size 4
==22718== at 0x48CB99C: _do_lut (babl-fish-path.c:164)
==22718== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:305)
==22718== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:342)
==22718== by 0x48D298F: _babl_fish_prepare_bpp (babl-fish-path.c:1062)
==22718== by 0x48D4739: babl_fish_path2 (babl-fish-path.c:1263)
==22718== by 0x48D4A67: babl_fish (babl-fish.c:304)
==22718== by 0x108D51: UnknownInlinedFun (chromaticities.c:50)
==22718== by 0x108D51: main (chromaticities.c:72)
==22718== Address 0x404ffbc40 is not stack'd, malloc'd or (recently) free'd
==22718==
==22718==
==22718== Process terminating with default action of signal 11 (SIGSEGV)
==22718== Access not within mapped region at address 0x404FFB000
==22718== at 0x48CB99C: _do_lut (babl-fish-path.c:164)
==22718== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:305)
==22718== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:342)
==22718== by 0x48D298F: _babl_fish_prepare_bpp (babl-fish-path.c:1062)
==22718== by 0x48D4739: babl_fish_path2 (babl-fish-path.c:1263)
==22718== by 0x48D4A67: babl_fish (babl-fish.c:304)
==22718== by 0x108D51: UnknownInlinedFun (chromaticities.c:50)
==22718== by 0x108D51: main (chromaticities.c:72)
==22718== If you believe this happened as a result of a stack
==22718== overflow in your program's main thread (unlikely but
==22718== possible), you can try to increase the size of the
==22718== main thread stack using the --main-stacksize= flag.
==22718== The main thread stack size used in this run was 8388608.
==22718==
==22718== HEAP SUMMARY:
==22718== in use at exit: 367,768,313 bytes in 3,116 blocks
==22718== total heap usage: 4,580 allocs, 1,464 frees, 368,913,041 bytes allocated
==22718==
==22718== LEAK SUMMARY:
==22718== definitely lost: 366,739,456 bytes in 3 blocks
==22718== indirectly lost: 0 bytes in 0 blocks
==22718== possibly lost: 1,022,889 bytes in 3,100 blocks
==22718== still reachable: 5,968 bytes in 13 blocks
==22718== suppressed: 0 bytes in 0 blocks
==22718== Rerun with --leak-check=full to see details of leaked memory
==22718==
==22718== For lists of detected and suppressed errors, rerun with: -s
==22718== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
25/28 palette FAIL 8.82s killed by signal 11 SIGSEGV
>>> MALLOC_PERTURB_=100 BABL_PATH=/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions LD_LIBRARY_PATH=/home/demon/src/aports/community/babl/src/babl-0.1.104/output/babl valgrind /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/palette
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
==22744== Memcheck, a memory error detector
==22744== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==22744== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==22744== Command: /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/palette
==22744==
==22744== Invalid read of size 4
==22744== at 0x48CB99C: _do_lut (babl-fish-path.c:164)
==22744== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:305)
==22744== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:342)
==22744== by 0x48D298F: _babl_fish_prepare_bpp (babl-fish-path.c:1062)
==22744== by 0x48D4739: babl_fish_path2 (babl-fish-path.c:1263)
==22744== by 0x48D4A67: babl_fish (babl-fish.c:304)
==22744== by 0x108E3F: main (palette.c:41)
==22744== Address 0x404ffbc40 is not stack'd, malloc'd or (recently) free'd
==22744==
==22744==
==22744== Process terminating with default action of signal 11 (SIGSEGV)
==22744== Access not within mapped region at address 0x404FFB000
==22744== at 0x48CB99C: _do_lut (babl-fish-path.c:164)
==22744== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:305)
==22744== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:342)
==22744== by 0x48D298F: _babl_fish_prepare_bpp (babl-fish-path.c:1062)
==22744== by 0x48D4739: babl_fish_path2 (babl-fish-path.c:1263)
==22744== by 0x48D4A67: babl_fish (babl-fish.c:304)
==22744== by 0x108E3F: main (palette.c:41)
==22744== If you believe this happened as a result of a stack
==22744== overflow in your program's main thread (unlikely but
==22744== possible), you can try to increase the size of the
==22744== main thread stack using the --main-stacksize= flag.
==22744== The main thread stack size used in this run was 8388608.
==22744==
==22744== HEAP SUMMARY:
==22744== in use at exit: 367,164,004 bytes in 1,581 blocks
==22744== total heap usage: 2,643 allocs, 1,062 frees, 369,228,929 bytes allocated
==22744==
==22744== LEAK SUMMARY:
==22744== definitely lost: 366,739,456 bytes in 3 blocks
==22744== indirectly lost: 0 bytes in 0 blocks
==22744== possibly lost: 418,580 bytes in 1,565 blocks
==22744== still reachable: 5,968 bytes in 13 blocks
==22744== suppressed: 0 bytes in 0 blocks
==22744== Rerun with --leak-check=full to see details of leaked memory
==22744==
==22744== For lists of detected and suppressed errors, rerun with: -s
==22744== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
26/28 conversions FAIL 14.41s killed by signal 11 SIGSEGV
>>> MALLOC_PERTURB_=87 BABL_PATH=/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions LD_LIBRARY_PATH=/home/demon/src/aports/community/babl/src/babl-0.1.104/output/babl valgrind /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/conversions
―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― ✀ ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
stderr:
==22720== Memcheck, a memory error detector
==22720== Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al.
==22720== Using Valgrind-3.20.0 and LibVEX; rerun with -h for copyright info
==22720== Command: /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/conversions
==22720==
babl: found 2 step conversion for Y' u8 to RaGaBaA float
babl: found 2 step conversion for Y u8 to RaGaBaA float
babl: found 2 step conversion for R'G'B'A u8 to RaGaBaA float
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/simple.so 0: R'G'B'A float to R'G'B'A u8 error:0.000000 cost:10271.000000
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/gggl.so 0: R'G'B'A float to R'G'B'A u8 error:0.000000 cost:27812.000000
babl: found 1 step conversion for R'G'B'A float to R'G'B'A u8
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/gggl.so 0: R'G'B'A float to R'G'B' u8 error:0.000001 cost:4526.000000
babl: found 1 step conversion for R'G'B'A float to R'G'B' u8
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/gegl-fixups.so 0: R'G'B'A u8 to RGBA float error:0.000000 cost:3806.000000
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/gimp-8bit.so 0: R'G'B'A u8 to RGBA float error:0.000000 cost:4038.000000
babl: found 1 step conversion for R'G'B'A u8 to RGBA float
==22720== Invalid read of size 4
==22720== at 0x48CB99C: _do_lut (babl-fish-path.c:164)
==22720== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:305)
==22720== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:342)
==22720== by 0x48D298F: _babl_fish_prepare_bpp (babl-fish-path.c:1062)
==22720== by 0x48D4739: babl_fish_path2 (babl-fish-path.c:1263)
==22720== by 0x48D4A67: babl_fish (babl-fish.c:304)
==22720== by 0x108E59: main (conversions.c:66)
==22720== Address 0x4063fbc40 is not stack'd, malloc'd or (recently) free'd
==22720==
==22720==
==22720== Process terminating with default action of signal 11 (SIGSEGV)
==22720== Access not within mapped region at address 0x4063FB000
==22720== at 0x48CB99C: _do_lut (babl-fish-path.c:164)
==22720== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:305)
==22720== by 0x48D298F: UnknownInlinedFun (babl-fish-path.c:342)
==22720== by 0x48D298F: _babl_fish_prepare_bpp (babl-fish-path.c:1062)
==22720== by 0x48D4739: babl_fish_path2 (babl-fish-path.c:1263)
==22720== by 0x48D4A67: babl_fish (babl-fish.c:304)
==22720== by 0x108E59: main (conversions.c:66)
==22720== If you believe this happened as a result of a stack
==22720== overflow in your program's main thread (unlikely but
==22720== possible), you can try to increase the size of the
==22720== main thread stack using the --main-stacksize= flag.
==22720== The main thread stack size used in this run was 8388608.
==22720==
==22720== HEAP SUMMARY:
==22720== in use at exit: 367,193,818 bytes in 1,701 blocks
==22720== total heap usage: 8,479 allocs, 6,778 frees, 450,438,293 bytes allocated
==22720==
==22720== LEAK SUMMARY:
==22720== definitely lost: 366,739,456 bytes in 3 blocks
==22720== indirectly lost: 0 bytes in 0 blocks
==22720== possibly lost: 448,202 bytes in 1,684 blocks
==22720== still reachable: 6,160 bytes in 14 blocks
==22720== suppressed: 0 bytes in 0 blocks
==22720== Rerun with --leak-check=full to see details of leaked memory
==22720==
==22720== For lists of detected and suppressed errors, rerun with: -s
==22720== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
gdb
Starting program: /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/conversions
babl: found 2 step conversion for Y' u8 to RaGaBaA float
babl: found 2 step conversion for Y u8 to RaGaBaA float
babl: found 2 step conversion for R'G'B'A u8 to RaGaBaA float
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/simple.so 0: R'G'B'A float to R'G'B'A u8 error:0.000000 cost:463.000000
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/gggl.so 0: R'G'B'A float to R'G'B'A u8 error:0.000000 cost:917.000000
babl: found 1 step conversion for R'G'B'A float to R'G'B'A u8
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/gggl.so 0: R'G'B'A float to R'G'B' u8 error:0.000001 cost:498.000000
babl: found 2 step conversion for R'G'B'A float to R'G'B' u8
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/gegl-fixups.so 0: R'G'B'A u8 to RGBA float error:0.000000 cost:128.000000
/home/demon/src/aports/community/babl/src/babl-0.1.104/output/extensions/gimp-8bit.so 0: R'G'B'A u8 to RGBA float error:0.000000 cost:128.000000
babl: found 1 step conversion for R'G'B'A u8 to RGBA float
Program received signal SIGSEGV, Segmentation fault.
0x000003fffde0499c in _do_lut (lut=0x3ffeceffbc0, lut@entry=<error reading variable: value has been optimized out>, source_bpp=source_bpp@entry=14, dest_bpp=dest_bpp@entry=4, source=0x3ffea01ebd0, source@entry=<error reading variable: value has been optimized out>, destination=destination@entry=0x3ffe713dbe0,
n=<optimized out>) at ../babl/babl-fish-path.c:164
164 *dst++ = lut[col_opaque] | (oalpha<<24);
(gdb) bt
#0 0x000003fffde0499c in _do_lut (lut=0x3ffeceffbc0, lut@entry=<error reading variable: value has been optimized out>, source_bpp=source_bpp@entry=14, dest_bpp=dest_bpp@entry=4, source=0x3ffea01ebd0, source@entry=<error reading variable: value has been optimized out>, destination=destination@entry=0x3ffe713dbe0,
n=<optimized out>) at ../babl/babl-fish-path.c:164
#1 0x000003fffde0b990 in _babl_fish_prepare_bpp (babl=0x3fffdd1e050) at ../babl/babl-fish-path.c:305
#2 0x000003fffde0d73a in babl_fish_path2 (source=source@entry=0x3fffdfcd9f0, destination=destination@entry=0x3fffdfcdd10, tolerance=<optimized out>, tolerance@entry=0) at ../babl/babl-fish-path.c:1263
#3 0x000003fffde0d7fa in babl_fish_path (source=source@entry=0x3fffdfcd9f0, destination=destination@entry=0x3fffdfcdd10) at ../babl/babl-fish-path.c:1306
#4 0x000003fffde0da68 in babl_fish (source=source@entry=0x3fffdfcd9f0, destination=<optimized out>) at ../babl/babl-fish.c:304
#5 0x000002aa00000e5a in main () at ../tests/conversions.c:66
(gdb) info locals
col_opaque = 4294967040
rgbaB = <synthetic pointer>
ralpha = 5440
col = 202116108
rgba = <synthetic pointer>
oalpha = 12 '\f'
src = 0x3ffea01ebd4
dst = <optimized out>
Starting program: /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/chromaticities
Program received signal SIGSEGV, Segmentation fault.
0x000003fffde0499c in _do_lut (lut=0x3ffeceffc20, lut@entry=<error reading variable: value has been optimized out>, source_bpp=source_bpp@entry=14, dest_bpp=dest_bpp@entry=4, source=0x3ffea01ec30, source@entry=<error reading variable: value has been optimized out>, destination=destination@entry=0x3ffe713dc40,
n=<optimized out>) at ../babl/babl-fish-path.c:164
164 *dst++ = lut[col_opaque] | (oalpha<<24);
(gdb) bt
#0 0x000003fffde0499c in _do_lut (lut=0x3ffeceffc20, lut@entry=<error reading variable: value has been optimized out>, source_bpp=source_bpp@entry=14, dest_bpp=dest_bpp@entry=4, source=0x3ffea01ec30, source@entry=<error reading variable: value has been optimized out>, destination=destination@entry=0x3ffe713dc40,
n=<optimized out>) at ../babl/babl-fish-path.c:164
#1 0x000003fffde0b990 in _babl_fish_prepare_bpp (babl=0x3fffdd03e50) at ../babl/babl-fish-path.c:305
#2 0x000003fffde0d73a in babl_fish_path2 (source=source@entry=0x3fffddedbc0, destination=destination@entry=0x3fffdfcc980, tolerance=<optimized out>, tolerance@entry=0) at ../babl/babl-fish-path.c:1263
#3 0x000003fffde0d7fa in babl_fish_path (source=source@entry=0x3fffddedbc0, destination=destination@entry=0x3fffdfcc980) at ../babl/babl-fish-path.c:1306
#4 0x000003fffde0da68 in babl_fish (source=<optimized out>, destination=destination@entry=0x2aa0000111a) at ../babl/babl-fish.c:304
#5 0x000002aa00000d52 in test () at ../tests/chromaticities.c:50
#6 main () at ../tests/chromaticities.c:72
(gdb) info locals
col_opaque = 4294967040
rgbaB = <synthetic pointer>
ralpha = 5440
col = 202116108
rgba = <synthetic pointer>
oalpha = 12 '\f'
src = 0x3ffea01ec34
dst = <optimized out>
Starting program: /home/demon/src/aports/community/babl/src/babl-0.1.104/output/tests/palette
Program received signal SIGSEGV, Segmentation fault.
0x000003fffde0499c in _do_lut (lut=0x3ffeceff8c0, lut@entry=<error reading variable: value has been optimized out>, source_bpp=source_bpp@entry=14, dest_bpp=dest_bpp@entry=4, source=0x3ffea01e8d0, source@entry=<error reading variable: value has been optimized out>, destination=destination@entry=0x3ffe713d8e0,
n=<optimized out>) at ../babl/babl-fish-path.c:164
164 *dst++ = lut[col_opaque] | (oalpha<<24);
(gdb) bt
#0 0x000003fffde0499c in _do_lut (lut=0x3ffeceff8c0, lut@entry=<error reading variable: value has been optimized out>, source_bpp=source_bpp@entry=14, dest_bpp=dest_bpp@entry=4, source=0x3ffea01e8d0, source@entry=<error reading variable: value has been optimized out>, destination=destination@entry=0x3ffe713d8e0,
n=<optimized out>) at ../babl/babl-fish-path.c:164
#1 0x000003fffde0b990 in _babl_fish_prepare_bpp (babl=0x3fffdfbddc0) at ../babl/babl-fish-path.c:305
#2 0x000003fffde0d73a in babl_fish_path2 (source=source@entry=0x3fffdd7ae50, destination=destination@entry=0x3fffdfcd200, tolerance=<optimized out>, tolerance@entry=0) at ../babl/babl-fish-path.c:1263
#3 0x000003fffde0d7fa in babl_fish_path (source=source@entry=0x3fffdd7ae50, destination=destination@entry=0x3fffdfcd200) at ../babl/babl-fish-path.c:1306
#4 0x000003fffde0da68 in babl_fish (source=source@entry=0x3fffdd7ae50, destination=<optimized out>) at ../babl/babl-fish.c:304
#5 0x000002aa00000e40 in main () at ../tests/palette.c:41
(gdb) info locals
col_opaque = 4294967040
rgbaB = <synthetic pointer>
ralpha = 5440
col = 202116108
rgba = <synthetic pointer>
oalpha = 12 '\f'
src = 0x3ffea01e8d4
dst = <optimized out>