RELENG_6 linux emulation problem on amd64

Arno J. Klaassen arno.at.heho.snv.jussieu.fr at heho.snv.jussieu.fr
Sat Oct 29 13:29:51 PDT 2005


Hello,

I get an easy to reproduce panic on recent RELENG_6/amd64 :

  -su-2.05b# /compat/linux/bin/bash
  bash-2.05b# cd /dev
  bash-2.05b# ls

  panic : kmem_malloc: entry not found or misaligned

Setup is as follows :

  /dev/ad0s3d mounted on /
  /dev/ad0s4d mount on /files
  /usr is a symlink to /files/amd64/usr if ever that might be of
  importance (the rest of ad0s3 is RELENG_5/i386)

uname -a :
  FreeBSD demo 6.0-RC1 FreeBSD 6.0-RC1 #1: Sat Oct 29 17:04:50 CEST 2005     toor at demo:/files/amd64/obj/files/bsd/src6/sys/D470K  amd64

generic config-file with outcommented non-needed drivers and extra options :

  device cpufreq
  device tap
  device atapicam
  device sound
  device smbus
  device iicbus
  device iicsmb

  options NTFS
  options TCP_DROP_SYNFIN

linux_base-8-8.0_7 installed.

NB, please respond preferentially to list; i still need
a good solution to filter important email from my flooding
"misc" procmail-filter output ;(


Arno

##### kgdb trace :  ####

(kgdb) where
#0  doadump () at /files/bsd/src6/sys/kern/kern_shutdown.c:234
#1  0xffffffff8030c10b in boot (howto=260)
    at /files/bsd/src6/sys/kern/kern_shutdown.c:399
#2  0xffffffff8030c5de in panic (
    fmt=0xffffffff805cdea8 "kmem_malloc: entry not found or misaligned")
    at /files/bsd/src6/sys/kern/kern_shutdown.c:555
#3  0xffffffff804ed2cf in kmem_malloc (map=0xffffff003e0b0160, size=0, 
    flags=258) at /files/bsd/src6/sys/vm/vm_kern.c:382
#4  0xffffffff804e00a2 in page_alloc (zone=0x0, bytes=0, 
    pflag=0xffffffffa7aba5e7 "\002\200\202®-", wait=258)
    at /files/bsd/src6/sys/vm/uma_core.c:957
#5  0xffffffff804e3bbb in uma_large_malloc (size=0, wait=258)
    at /files/bsd/src6/sys/vm/uma_core.c:2711
#6  0xffffffff802fc503 in malloc (size=0, mtp=0xffffffff80706880, flags=258)
    at /files/bsd/src6/sys/kern/kern_malloc.c:327
#7  0xffffffff802fc6fe in realloc (addr=0x0, size=18446744073709549576, 
    mtp=0xffffffff80706880, flags=258)
    at /files/bsd/src6/sys/kern/kern_malloc.c:416
#8  0xffffffff80398412 in vfs_read_dirent (ap=0xffffffffa7aba790, 
    dp=0xffffff0000e16298, off=0) at /files/bsd/src6/sys/kern/vfs_subr.c:3877
#9  0xffffffff80290f56 in devfs_readdir (ap=0xffffffffa7aba790)
    at /files/bsd/src6/sys/fs/devfs/devfs_vnops.c:828
#10 0xffffffff805815ec in VOP_READDIR_APV (vop=0xffffffff806fc480, 
    a=0xffffffffa7aba790) at vnode_if.c:1427
#11 0xffffffff8056f559 in VOP_READDIR (vp=0xffffff0002f6e000, 
    uio=0xffffffffa7abaab0, cred=0xffffff002e93c700, 
    eofflag=0xffffffffa7aba854, ncookies=0xffffffffa7aba834, 
    cookies=0xffffffffa7aba840) at vnode_if.h:747
#12 0xffffffff8056efe6 in getdents_common (td=0xffffff002ff22be0, 
    args=0xffffffffa7abab90, is64bit=1)
    at /files/bsd/src6/sys/compat/linux/linux_file.c:328
#13 0xffffffff8056f612 in linux_getdents64 (td=0xffffff002ff22be0, 
    args=0xffffffffa7abab90)
    at /files/bsd/src6/sys/compat/linux/linux_file.c:476
#14 0xffffffff80564f54 in ia32_syscall (frame=
      {tf_rdi = 3, tf_rsi = 0, tf_rdx = 4096, tf_rcx = 134598592, tf_r8 = 0, tf_r9 = 0, tf_rax = 220, tf_rbx = 3, tf_rbp = 4294958168, tf_r10 = 0, tf_r11 = 0, tf_r12 = 0, tf_r13 = 0, tf_r14 = 0, tf_r15 = 0, tf_trapno = 12, tf_addr = 134602692, tf_flags = 0, tf_err = 2, tf_rip = 672250937, tf_cs = 27, tf_rflags = 582, tf_rsp = 4294958092, tf_ss = 35})
    at /files/bsd/src6/sys/amd64/ia32/ia32_syscall.c:186
#15 0xffffffff8050c1ad in Xint0x80_syscall () at ia32_exception.S:64
#16 0x000000002811bc39 in ?? ()
Previous frame inner to this frame (corrupt stack?)
(kgdb) 


-- 

  Arno J. Klaassen

  SCITO S.A.
  8 rue des Haies
  F-75020 Paris, France
  http://scito.com



More information about the freebsd-amd64 mailing list