panic truss'ing linux ls
Kip Macy
kmacy at fsmware.com
Sun Nov 9 13:01:49 PST 2003
On Sat, 1 Nov 2003 qhwt at xxxxxxxxxxxxx wrote:
> Hello.
>
> How to reproduce:
>
> - install linux_base-8-8.0_1 from ports
> - mount /proc, because truss needs it
> - truss /compat/linux/bin/ls -l
>
> `/compat/linux/bin/ls -l' without truss dies with signal 12, not a panic. Maybe
> truss'ing on a linux process is not a good thing?
LOL - I just installed DragonFly on my laptop. XFree86 doesn't support
my graphics card on FreeBSD so I tried copying over a bunch of stuff
from a RH9 machine. Not surprisingly, I got a:
"signal 12 UNKNWOWN SYSCALL 252"
so I tried trussing it. Same panic. It looks like I may be to blame as
it is dying in elf_putfiles, which is code added to core dump for
checkpointing. I'll see if it is anything obvious.
>
> Traceback:
>
> Script started on Sat Nov 1 01:48:09 2003
> GNU gdb 4.18 (FreeBSD)
> Copyright 1998 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-unknown-freebsd"...Deprecated bfd_read called at /home/source/dragonfly/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
> Deprecated bfd_read called at /home/source/dragonfly/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf
>
> 1 cpu [ff800000,32768]
> IdlePTD at phsyical address 0x00452000
> PCB EIP=c018a3fe ESP=ce601864 EBP=ce601870
> initial pcb at physical address 0x002b8f00
> panicstr: page fault
> panic messages:
> ---
> dmesg: kvm_read:
> ---
>
> cannot read proc pointer at c0ed51f0
>
> (kgdb) bt
> #0 dumpsys () at /home/source/dragonfly/src/sys/kern/kern_shutdown.c:499
> #1 0xc018a1ec in boot (howto=256) at /home/source/dragonfly/src/sys/kern/kern_shutdown.c:332
> #2 0xc018a630 in poweroff_wait (junk=0xc02892aa, howto=-1071084402)
> at /home/source/dragonfly/src/sys/kern/kern_shutdown.c:611
> #3 0xc0237603 in trap_fatal (frame=0xce601938, eva=120)
> at /home/source/dragonfly/src/sys/i386/i386/trap.c:1116
> #4 0xc0237209 in trap_pfault (frame=0xce601938, usermode=0, eva=120)
> at /home/source/dragonfly/src/sys/i386/i386/trap.c:1005
> #5 0xc0236ea0 in trap (frame={tf_fs = -841744360, tf_es = -832569328, tf_ds = -841678832,
> tf_edi = -832562668, tf_esi = 3, tf_ebp = -832562808, tf_isp = -832562844,
> tf_ebx = -836177984, tf_edx = 0, tf_ecx = -837513336, tf_eax = 0, tf_trapno = 12,
> tf_err = 0, tf_eip = -1072214485, tf_cs = 8, tf_eflags = 66182, tf_esp = 0,
> tf_ss = -837517312}) at /home/source/dragonfly/src/sys/i386/i386/trap.c:594
> #6 0xc0174e2b in elf_putfiles (p=0xcdd5fc40, dst=0xce148000, off=0xce601a14)
> at /home/source/dragonfly/src/sys/kern/imgact_elf.c:1256
> #7 0xc0174bb3 in elf_puthdr (p=0xcdd5fc40, dst=0xce148000, off=0xce601a14, status=0xc7c91d10,
> fpregset=0xc7c91d78, psinfo=0xc7c91e28, numsegs=10)
> at /home/source/dragonfly/src/sys/kern/imgact_elf.c:1124
> #8 0xc0174aef in elf_corehdr (p=0xcdd5fc40, fp=0xc0ee5910, cred=0xc1087f20, numsegs=10,
> hdr=0xce148000, hdrsize=8192) at /home/source/dragonfly/src/sys/kern/imgact_elf.c:1084
> #9 0xc01747b5 in generic_elf_coredump (p=0xcdd5fc40, fp=0xc0ee5910, limit=9223372036854775807)
> at /home/source/dragonfly/src/sys/kern/imgact_elf.c:866
> #10 0xc01746a1 in elf_coredump (p=0xcdd5fc40, vp=0xce440e40, limit=9223372036854775807)
> at /home/source/dragonfly/src/sys/kern/imgact_elf.c:817
> #11 0xc018c4e7 in coredump (p=0xcdd5fc40) at /home/source/dragonfly/src/sys/kern/kern_sig.c:1475
> #12 0xc018bf22 in sigexit (p=0xcdd5fc40, sig=12)
> at /home/source/dragonfly/src/sys/kern/kern_sig.c:1306
> #13 0xc018bcc0 in postsig (sig=12) at /home/source/dragonfly/src/sys/kern/kern_sig.c:1222
> #14 0xc0236a0b in userret (p=0xcdd5fc40, frame=0xce601d48, oticks=0)
> at /home/source/dragonfly/src/sys/i386/i386/trap.c:278
> #15 0xc0237a1a in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 0, tf_esi = 0,
> tf_ebp = -1077937008, tf_isp = -832561804, tf_ebx = 134567056, tf_edx = 1143, tf_ecx = 11,
> tf_eax = 0, tf_trapno = 7, tf_err = 2, tf_eip = 671798508, tf_cs = 31, tf_eflags = 658,
> tf_esp = -1077937100, tf_ss = 47}) at /home/source/dragonfly/src/sys/i386/i386/trap.c:1370
> #16 0xc0229b6a in Xint0x80_syscall ()
> cannot read proc at 0
> (kgdb) fram 6
> #6 0xc0174e2b in elf_putfiles (p=0xcdd5fc40, dst=0xce148000, off=0xce601a14)
> at /home/source/dragonfly/src/sys/kern/imgact_elf.c:1256
> 1256 cfi->cfi_fh.fh_fsid = vp->v_mount->mnt_stat.f_fsid;
> (kgdb) list
> 1251 cfi = (struct ckpt_fileinfo *)((char *)dst + *off);
> 1252 cfi->cfi_index = i;
> 1253 cfi->cfi_flags = fp->f_flag;
> 1254 cfi->cfi_offset = fp->f_offset;
> 1255 vp = (struct vnode *)fp->f_data;
> 1256 cfi->cfi_fh.fh_fsid = vp->v_mount->mnt_stat.f_fsid;
> 1257 error = VFS_VPTOFH(vp, &cfi->cfi_fh.fh_fid);
> 1258 }
> 1259 *off += sizeof(struct ckpt_fileinfo);
> 1260 }
>
> (kgdb) info locals
> off = (int *) 0xce601a14
> i = 3
> cfh = (struct ckpt_filehdr *) 0xce148f60
> cfi = (struct ckpt_fileinfo *) 0x0
> fp = (struct file *) 0x0
> vp = (struct vnode *) 0x0
> (kgdb) up
> #7 0xc0174bb3 in elf_puthdr (p=0xcdd5fc40, dst=0xce148000, off=0xce601a14, status=0xc7c91d10,
> fpregset=0xc7c91d78, psinfo=0xc7c91e28, numsegs=10)
> at /home/source/dragonfly/src/sys/kern/imgact_elf.c:1124
> 1124 elf_putfiles(p, dst, off);
> (kgdb) fram 5
> #5 0xc0236ea0 in trap (frame={tf_fs = -841744360, tf_es = -832569328, tf_ds = -841678832,
> tf_edi = -832562668, tf_esi = 3, tf_ebp = -832562808, tf_isp = -832562844,
> tf_ebx = -836177984, tf_edx = 0, tf_ecx = -837513336, tf_eax = 0, tf_trapno = 12,
> tf_err = 0, tf_eip = -1072214485, tf_cs = 8, tf_eflags = 66182, tf_esp = 0,
> tf_ss = -837517312}) at /home/source/dragonfly/src/sys/i386/i386/trap.c:594
> 594 (void) trap_pfault(&frame, FALSE, eva);
> (kgdb)
> Script done on Sat Nov 1 01:49:10 2003
>
> $ uname -a
> FreeBSD gzl.local 4.8-STABLE FreeBSD 4.8-STABLE #0: Tue Oct 28 11:11:25 JST 2003 dragonfly at xxxxxxxxx:/usr/obj/home/source/dragonfly/src/sys/GZL i386
>
> Regards.
>
More information about the Bugs
mailing list