Busybox-1.7.2 Spurious "Bus error"

walter harms wharms at bfs.de
Thu Oct 25 13:18:41 UTC 2007


bus-errors point mots time to hardware bugs:
man 7 signal:
    SIGBUS      10,7,10     Core    Bus error (bad memory access)

alternatively you have a problem with you toolchain.

re,
 wh


KokHow.Teh at infineon.com wrote:
> Hi;
> 	I am using busybox-1.7.2 with uclibc-gcc version 3.4.4
> cross-compiler on MIPS24KEC-based system. The busybox is built with ash
> shell support and the rest of other standard applets. The problems that
> always pop up is:
> 
> (1)	"Bus error" always happens randomly in any application after
> init starts.
> (2)	Sometimes "init" process does not execute /etc/inittab sysinit
> script at all.
> 
> 	Any advice and insight is appreciated. Enclosed is the various
> system information.
> 
> Regards,
> KH
> 
> Cross-compiler info:
> [tehkok at linux2:/usr/src/busybox-1.7.2 4]$ $CC --version
> mips-linux-cc (GCC) 3.4.4 20050119 (MIPS SDE)
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is
> NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> PURPOSE.
> 
> [tehkok at linux2:/usr/src/busybox-1.7.2 5]$
> 
> 
> Bysbox-1.7.2 build flags:
>   mips-linux-gcc -Wp,-MD,libbb/.warn_ignoring_args.o.d   -std=gnu99
> -Iinclude -Ilibbb  -I/usr/src/busybox-1.7.2/libbb -include
> include/autoconf.h -D_GNU_SOURCE -DNDEBUG  -D"BB_VER=KBUILD_STR(1.7.2)"
> -DBB_BT=AUTOCONF_TIMESTAMP -D_FORTIFY_SOURCE=2  -Wall -Wshadow
> -Wwrite-strings -Wundef -Wstrict-prototypes  -Wmissing-prototypes
> -Wmissing-declarations -O3 -fpic -fPIC -mabi=32 -march=mips32r2
> -mtune=34kc -mips32r2 -fno-builtin-strlen -finline-limit=1000000
> -fomit-frame-pointer -ffunction-sections -fdata-sections
> -fno-guess-branch-probability -funsigned-char -static-libgcc
> -falign-functions=1 -falign-jumps=1 -falign-labels=1 -falign-loops=1 -g
> -Wdeclaration-after-statement     -D"KBUILD_STR(s)=#s"
> -D"KBUILD_BASENAME=KBUILD_STR(warn_ignoring_args)"
> -D"KBUILD_MODNAME=KBUILD_STR(warn_ignoring_args)" -c -o
> libbb/warn_ignoring_args.o libbb/warn_ignoring_args.c
>   rm -f shell/lib.a; mips-linux-ar  rcs shell/lib.a shell/ash.o
> 
> Spurious "Bus error":
> init started: BusyBox v1.7.2 (2007-10-24 16:55:20 SGT)
> Algorithmics/MIPS FPU Emulator v1.5
> + mount -a
> Bus error
> + cat /etc/hostname
> + hostname Danube
> + mkdir /tmp/run /tmp/pts /tmp/lock
> mkdir: cannot create directory '/tmp/run': File exists
> mkdir: cannot create directory '/tmp/pts': File exists
> mkdir: cannot create directory '/tmp/lock': Read-only file system
> + chmod a=rw /tmp/run
> chmod: /tmp/run: Read-only file system
> + touch /tmp/messages /tmp/messages.0 /tmp/lastlog /tmp/wtmp
> touch: /tmp/messages: Read-only file system
> touch: /tmp/messages.0: Read-only file system
> touch: /tmp/lastlog: Read-only file system
> touch: /tmp/wtmp: Read-only file system
> + syslogd -s 0
> + klogd
> + touch /tmp/ipsec.conf
> touch: /tmp/ipsec.conf: Read-only file system
> + touch /tmp/ipsec.secrets
> touch: /tmp/ipsec.secrets: Read-only file system
> + mkdir /tmp/run/pluto
> mkdir: cannot create directory '/tmp/run/pluto': Read-only file system
> + mount -t devpts -o rw,noexec,nosuid,gid=0 /dev/pts /tmp/pts
> mount: no /etc/mtab
> + [ ! -s /etc/dropbear_rsa_host_key ]
> + echo Starting sshd...
> Starting sshd...
> + dropbear -r /etc/dropbear_rsa_host_key
> + echo System Initialization completes
> System Initialization completes
> 
> "Init" does NOT execute /etc/init.c/rcS due to some unknown reasons:
> init started: BusyBox v1.7.2 (2007-10-24 16:55:20 SGT)
> 
> Welcome to Infineon AP xDSL CPE solutions.
> This is 172.20.80.89. (Linux mips 2.6.20) 00:00:04
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
> 
> 
> 



More information about the busybox mailing list