amd64 host + i386 jail + ls -l = core dumped

From: Boris Samorodov <bsam_at_ipt.ru>
Date: Fri, 04 Dec 2009 18:36:49 +0300
Hello List,

I'm using an amd64 system (r200095):
-----
% uname -srm
FreeBSD 9.0-CURRENT amd64
-----

The i386 jail was build with the same sources. There is a problem
in the jail:
-----
% sudo jail -c path=/export/diskless_root host.hostname=testhostname ip4.addr=127.0.0.10 command=/bin/csh
%uname -m
amd64
%setenv UNAME_m i386
%uname -m
i386
%cd /root
%ls
ls.core         test.txt
%ls -l
total 8191
Bad system call (core dumped)
% %gdb /bin/ls ls.core 
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `ls'.
Program terminated with signal 12, Bad system call.
Reading symbols from /lib/libutil.so.8...(no debugging symbols found)...done.
Loaded symbols for /lib/libutil.so.8
Reading symbols from /lib/libncurses.so.8...(no debugging symbols found)...done.
Loaded symbols for /lib/libncurses.so.8
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x2814316f in __sys___acl_get_link () from /lib/libc.so.7
(gdb) bt
#0  0x2814316f in __sys___acl_get_link () from /lib/libc.so.7
#1  0x2814303c in acl_get_link_np () from /lib/libc.so.7
#2  0x0804c2f9 in ?? ()
#3  0xffffcb83 in ?? ()
#4  0x00000004 in ?? ()
[...]
-----

Additional info from host:
-----
% zfs get all space/diskless_root
NAME                 PROPERTY              VALUE                                                     SOURCE
space/diskless_root  type                  filesystem                                                -
space/diskless_root  creation              чт дек  3 10:14 2009                                 -
space/diskless_root  used                  287M                                                      -
space/diskless_root  available             1,77T                                                     -
space/diskless_root  referenced            287M                                                      -
space/diskless_root  compressratio         1.00x                                                     -
space/diskless_root  mounted               yes                                                       -
space/diskless_root  quota                 none                                                      default
space/diskless_root  reservation           none                                                      default
space/diskless_root  recordsize            128K                                                      default
space/diskless_root  mountpoint            /export/diskless_root                                     local
space/diskless_root  sharenfs              -ro -maproot=0 -network 192.168.3.0 -mask 255.255.255.0  local
space/diskless_root  checksum              on                                                        default
space/diskless_root  compression           off                                                       default
space/diskless_root  atime                 off                                                       inherited from space
space/diskless_root  devices               on                                                        default
space/diskless_root  exec                  on                                                        default
space/diskless_root  setuid                on                                                        default
space/diskless_root  readonly              off                                                       default
space/diskless_root  jailed                off                                                       default
space/diskless_root  snapdir               hidden                                                    default
space/diskless_root  aclmode               groupmask                                                 default
space/diskless_root  aclinherit            restricted                                                default
space/diskless_root  canmount              on                                                        default
space/diskless_root  shareiscsi            off                                                       default
space/diskless_root  xattr                 off                                                       temporary
space/diskless_root  copies                1                                                         default
space/diskless_root  version               3                                                         -
space/diskless_root  utf8only              off                                                       -
space/diskless_root  normalization         none                                                      -
space/diskless_root  casesensitivity       sensitive                                                 -
space/diskless_root  vscan                 off                                                       default
space/diskless_root  nbmand                off                                                       default
space/diskless_root  sharesmb              off                                                       default
space/diskless_root  refquota              none                                                      default
space/diskless_root  refreservation        none                                                      default
space/diskless_root  primarycache          all                                                       default
space/diskless_root  secondarycache        all                                                       default
space/diskless_root  usedbysnapshots       0                                                         -
space/diskless_root  usedbydataset         287M                                                      -
space/diskless_root  usedbychildren        0                                                         -
space/diskless_root  usedbyrefreservation  0                                                         -
-----

-- 
WBR, Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
Received on Fri Dec 04 2009 - 14:36:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:58 UTC