The following code makes busybox segfault: export R=""; echo "${R:$((${R}-1)):1}" I don't have a busybox debug version at the moment. $ gdb busybox ... (gdb) run sh -c 'export R="";echo "${R:$((${R}-1)):1}"'^C Starting program: /bin/busybox sh -c 'export R="";echo "${R:$((${R}-1)):1}"'^C Program received signal SIGSEGV, Segmentation fault. 0x0000000000422825 in ?? ()
Fixed in git.