Date: Sun, 28 May 2006 00:27:54 +0200 From: Michael Ortmann <mortmann@googlemail.com> Cc: freebsd-sparc64@freebsd.org Subject: Re: panic: trap: memory address not aligned (tap/if_bridge/openvpn -> kgdb information) Message-ID: <4478D26A.8010304@googlemail.com> In-Reply-To: <65dcde740605261009w77a7524ao3db3be74659ffe03@mail.gmail.com> References: <4476C40B.7060709@googlemail.com> <65dcde740605261009w77a7524ao3db3be74659ffe03@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
James Tanis schrieb: > I'd try recompiling with less, or even better, no optimization and see > if your still getting the same error. i thought its enough to compile the kernel with "makeoptions DEBUG=-g" in kernel config file, because its the kernel who crashes not a useland program and then to use the "kernel.debug" file. i even booted directly from that file after renaming it to "kernel". though i recompiled world and kernel now again with "CFLAGS=-g" in "rc.conf" following the procedure in "/usr/src/Makefile". before that i again did "make update" to sync with 6-STABLE. after that i get the exact same kernel panic as soon as i try to start openvpn: any hints of how i can help providing more debug information is welcome! im no kernel hacker, so the only thing i see is "atomic.h" from the sparc64 include directory and symbol "tl0_intr" i cant follow. the whole backtrace i was able to provice so far seems to point only to panic/trap/exception functions in the kernel hiding the real problem? regards, Michael Ortmann == uname -a = FreeBSD server5.q-fin 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat May 27 22:40:17 CEST 2006 eugene@server5.q-fin:/usr/obj/usr/src/sys/SERVER5 sparc64 == kernel conf == machine sparc64 cpu SUN4U ident SERVER5 makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols [...] device if_bridge device tap device pf == kgdb kernel core == server5# kgdb -n 0 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 "sparc64-marcel-freebsd". Unread portion of the kernel message buffer: tap0: Ethernet address: 00:bd:00:02:3c:00 panic: trap: memory address not aligned cpuid = 0 Uptime: 2m27s Dumping 512 MB (1 chunks) chunk at 0xa0000000: 536870912 bytes | #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240 savectx(&dumppcb); (kgdb) bt #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 #1 0x00000000c0143e18 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 #2 0x00000000c0144274 in panic (fmt=0xc03010d0 "trap: %s") at /usr/src/sys/kern/kern_shutdown.c:565 #3 0x00000000c02c2944 in trap (tf=0xd6437130) at /usr/src/sys/sparc64/sparc64/trap.c:369 #4 0x00000000c0058fe0 in tl1_trap () #5 0x00000000c01db208 in tapioctl (dev=0xfffff800b4c1f800, cmd=18446735280407978592, data=0x0, flag=2597064, td=0x7fdffffd0a0) at atomic.h:278 #6 0x00000000c0110eac in dev_refthread (dev=0xfffff800b765e100) at /usr/src/sys/kern/kern_conf.c:124 #7 0x00000000c01112c4 in giant_ioctl (dev=0xfffff800b3ff6a00, cmd=2147772029, data=0xd643753c "", fflag=7, td=0xfffff800a6622260) at /usr/src/sys/kern/kern_conf.c:288 #8 0x00000000c00f17d4 in devfs_ioctl_f (fp=0xfffff800a6668780, com=2147772029, data=0xd643753c, cred=0xfffff800a40bc200, td=0xfffff800a6622260) at /usr/src/sys/fs/devfs/devfs_vnops.c:407 #9 0x00000000c01158dc in kern_fcntl (td=0xfffff800a6622260, fd=6, cmd=4, arg=4) at file.h:258 #10 0x00000000c01150f8 in fcntl (td=0xfffff800a6622260, uap=0xd64378c0) at /usr/src/sys/kern/kern_descrip.c:339 #11 0x00000000c02c2f44 in syscall (tf=0xd6437880) at /usr/src/sys/sparc64/sparc64/trap.c:592 #12 0x00000000c0058dc0 in tl0_intr () #13 0x0000000000000000 in ?? () (kgdb) bt full #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 No locals. #1 0x00000000c0143e18 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409 first_buf_printf = 1 #2 0x00000000c0144274 in panic (fmt=0xc03010d0 "trap: %s") at /usr/src/sys/kern/kern_shutdown.c:565 td = (struct thread *) 0xfffff800a6622260 bootopt = 260 newpanic = 0 ap = 0xd6437038 buf = "trap: memory address not aligned", '\0' <repeats 223 times> #3 0x00000000c02c2944 in trap (tf=0xd6437130) at /usr/src/sys/sparc64/sparc64/trap.c:369 td = (struct thread *) 0xfffff800a6622260 p = (struct proc *) 0x40a77028 sticks = 0 error = -1070591792 sig = -1069997120 #4 0x00000000c0058fe0 in tl1_trap () No symbol table info available. #5 0x00000000c01db208 in tapioctl (dev=0xfffff800b4c1f800, cmd=18446735280407978592, data=0x0, flag=2597064, td=0x7fdffffd0a0) at atomic.h:278 _tid = 18446735280407978592 tp = (struct tap_softc *) 0xfffff800b4c1f800 ifp = (struct ifnet *) 0xfffff800b4c1f800 f = 0 #6 0x00000000c0110eac in dev_refthread (dev=0xfffff800b765e100) at /usr/src/sys/kern/kern_conf.c:124 csw = (struct cdevsw *) 0xc032d5d8 #7 0x00000000c01112c4 in giant_ioctl (dev=0xfffff800b3ff6a00, cmd=2147772029, data=0xd643753c "", fflag=7, td=0xfffff800a6622260) at /usr/src/sys/kern/kern_conf.c:288 retval = -1275106816 #8 0x00000000c00f17d4 in devfs_ioctl_f (fp=0xfffff800a6668780, com=2147772029, data=0xd643753c, cred=0xfffff800a40bc200, td=0xfffff800a6622260) at /usr/src/sys/fs/devfs/devfs_vnops.c:407 dev = (struct cdev *) 0xfffff800b3ff6a00 dsw = (struct cdevsw *) 0xc032d5d8 vp = (struct vnode *) 0x0 vpold = (struct vnode *) 0xfffff800a6668780 error = 0 i = -700222148 p = 0xfffff800a6668780 "ÿÿø" fgn = (struct fiodgname_arg *) 0xfffff800a6622260 #9 0x00000000c01158dc in kern_fcntl (td=0xfffff800a6622260, fd=6, cmd=4, arg=4) at file.h:258 fdp = (struct filedesc *) 0xfffff800b4873200 flp = (struct flock *) 0x4 fp = (struct file *) 0xfffff800a6668780 p = (struct proc *) 0xfffff800a65e1730 pop = 0x0 vp = (struct vnode *) 0x4 newmin = 4 error = 0 flg = 64 tmp = 0 giant_locked = 1 #10 0x00000000c01150f8 in fcntl (td=0xfffff800a6622260, uap=0xd64378c0) at /usr/src/sys/kern/kern_descrip.c:339 fl = {l_start = 4, l_len = 12884901888, l_pid = 0, l_type = 0, l_whence = 0} arg = 4 error = 0 #11 0x00000000c02c2f44 in syscall (tf=0xd6437880) at /usr/src/sys/sparc64/sparc64/trap.c:592 callp = (struct sysent *) 0xc031ad10 td = (struct thread *) 0xfffff800a6622260 args = {3594743745, 3221589432, 3221589052, 3221589048, 658472179200, 100, 0, -9178230156714049532} argp = (register_t *) 0xd64378c0 p = (struct proc *) 0xfffff800a65e1730 sticks = 41 code = 92 tpc = 1084715044 reg = 0 regcnt = 6 narg = 3 error = 0 #12 0x00000000c0058dc0 in tl0_intr () No symbol table info available. #13 0x0000000000000000 in ?? () No symbol table info available.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4478D26A.8010304>