main/busybox-1.35.0-r2: segfault in sh
On some of the builders, ap list
(and related commands) fail due to a segfault in busybox.
lua-aports executes the following:
shell script (hardcoded for testing)
#!/bin/sh. /usr/share/abuild/functions.sh
for i in /home/buildozer/aports/testing/*/APKBUILD; do
pkgname= pkgver= pkgrel= pkgdesc= arc= license= options= depends= depends_doc= depends_dev= depends_libs= depends_openrc= depends_static= makedepends= makedepends_build= makedepends_host= checkdepends= subpackages= provides= linguas= source= url= dir="${i%/APKBUILD}"; [ -n "$dir" ] || exit 1; cd "$dir"; . ./APKBUILD; echo $dir\\$pkgname\\$pkgver\\$pkgrel\\$pkgdesc\\$arch\\$license\\$options\\$depends\\$makedepends $makedepends_host $makedepends_build\\$checkdepends\\$subpackages\\$linguas\\$source\\$url\\$provides ;
done
This script segfaults with the following backtrace:
#0 argstr (p=p@entry=0x1 <error: Cannot access memory at address 0x1>, flag=1040) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:6827
#1 0x00005555555a48e6 in subevalvar (start=start@entry=0x1 <error: Cannot access memory at address 0x1>, str=str@entry=0x0, strloc=79, startloc=startloc@entry=79, varflags=15, flag=flag@entry=1316)
at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:7111
#2 0x00005555555a5112 in evalvar (p=0x1 <error: Cannot access memory at address 0x1>, p@entry=0x7ffff7f16d88 "\017", flag=1316, flag@entry=292) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:7677
#3 0x00005555555a2be4 in argstr (p=0x7ffff7f16d88 "\017", flag=36, flag@entry=4) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:6904
#4 0x00005555555a2fb9 in expandarg (arg=arg@entry=0x7ffff7f16d88, arglist=arglist@entry=0x7fffffffdfc8, flag=flag@entry=4) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:8101
#5 0x00005555555a6a41 in evalcommand (cmd=0x7ffff7f16da8, flags=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:10442
#6 0x00005555555a2739 in evaltree (n=n@entry=0x7ffff7f16da8, flags=flags@entry=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:9378
#7 0x00005555555a5a71 in cmdloop (top=top@entry=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:13550
#8 0x00005555555a65a7 in dotcmd (argc_=<optimized out>, argv_=<optimized out>) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:13645
#9 0x00005555555a58be in evalbltin (cmd=0x55555561dc20 <builtintab>, argc=argc@entry=2, argv=argv@entry=0x7ffff7f16120, flags=flags@entry=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:10624
#10 0x00005555555a6c9d in evalcommand (cmd=0x7ffff7f53638, flags=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:10567
#11 0x00005555555a2739 in evaltree (n=0x7ffff7f53638, flags=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:9378
#12 0x00005555555a2739 in evaltree (n=0x7ffff7f53638, flags=flags@entry=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:9378
#13 0x00005555555a26c5 in evaltree (n=0x7ffff7f53900, flags=flags@entry=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:9368
#14 0x00005555555a56ab in evalfor (n=0x7ffff7ffe0d8, flags=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:9517
#15 0x00005555555a2739 in evaltree (n=n@entry=0x7ffff7ffe0d8, flags=flags@entry=0) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:9378
#16 0x00005555555a5a71 in cmdloop (top=top@entry=1) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:13550
#17 0x00005555555a77e1 in ash_main (argc=2, argv=0x7fffffffec38) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/shell/ash.c:14729
#18 0x0000555555561bd3 in run_applet_no_and_exit (applet_no=227, name=name@entry=0x7fffffffee4a "sh", argv=argv@entry=0x7fffffffec38) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/libbb/appletlib.c:967
#19 0x0000555555561ef7 in run_applet_and_exit (name=0x7fffffffee4a "sh", argv=argv@entry=0x7fffffffec38) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/libbb/appletlib.c:986
#20 0x0000555555561f70 in main (argc=<optimized out>, argv=0x7fffffffec38) at /home/buildozer/aports/main/busybox/src/busybox-1.35.0/libbb/appletlib.c:1126
This is blocking the builders at the moment