On Sun, Dec 16, 2012 at 06:54:08PM +0100, Geert Stappers wrote: > On Sun, Dec 16, 2012 at 02:50:10PM +0400, Michael Tokarev wrote: > > > maybe some minimal reproducer, > > - create a mips chroot tree with multistrap, I have it named 'oa' > - cp /usr/bin/qemu-mips-static oa/usr/bin > - chroot oa > - beng, the segfault > > I'll provide files for easy reproduction.
This script is in the attached tar among other files. #!/bin/bash # # to reproduce 678029 # # depends on the Debian package multistrap # # root privileges required # ARCH=sparc ARCH=armel ARCH=mips # # wipe a possibly previous version rm -rf oa # # setup a chroot tree in "other architure" directory /usr/sbin/multistrap --arch ${ARCH} -f ./multistrap.conf # now there is directory 'oa' # # BINFMTEMUL=/usr/bin/qemu-${ARCH}-static if [ -x ${BINFMTEMUL} ] ; then cp -p ${BINFMTEMUL} oa/usr/bin else echo "E:No binfmt emulator ${BINFMTEMUL}" exit 7 fi ## mkdir -p oa/proc mkdir -p oa/sysfs # l l Cheers Geert Stappers
bts678029.tar
Description: Unix tar archive