segfault while sourcing a file
Bastian Bittorf
bittorf at bluebottle.com
Sun Aug 9 12:14:36 UTC 2015
root at OpenWrt:/# cat /tmp/test.sh
#!/bin/sh
/tmp/test2.sh
root at OpenWrt:/# cat /tmp/test2.sh
#!/bin/sh
echo
root at OpenWrt:/# ls -l /tmp/test.sh /tmp/test2.sh
-rw-r--r-- 1 root root 25 Aug 9 11:55 /tmp/test.sh
-rw-r--r-- 1 root root 16 Aug 9 11:50 /tmp/test2.sh
root at OpenWrt:/# . /tmp/test.sh
/bin/ash: /tmp/test.sh: /tmp/test2.sh: Permission denied
root at OpenWrt:/# command . /tmp/test.sh
/bin/ash: /tmp/test.sh: /tmp/test2.sh: Permission denied
[ 796.680000] ash[2720]: segfault at c ip 000000000041bba4 sp
0000007fbfab8790 error 4 in busybox[400000+55000]
Segmentation fault
i can see this only x86_64/UML and _not_ with e.g. mips/ar71xx
root at OpenWrt:/# uname -a
Linux OpenWrt 3.18.18 #12 Sun Aug 9 13:41:31 CEST 2015 x86_64 GNU/Linux
root at OpenWrt:/# busybox --help | head -n1
BusyBox v1.23.2 (2015-07-29 11:54:26 CEST) multi-call binary.
i hope that helps for debugging it. thanks for all your work!
bye, bastian
More information about the busybox
mailing list