Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Aug 2009 22:58:37 +0000
From:      Maslan <maslanbsd@gmail.com>
To:        =?ISO-8859-1?Q?Dag=2DErling_Sm=F8rgrav?= <des@des.no>
Cc:        FreeBSD Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: sosend() and mbuf
Message-ID:  <319cceca0908031558h1bd779b1pac3c9454986f5488@mail.gmail.com>
In-Reply-To: <86fxc84ksj.fsf@ds4.des.no>
References:  <319cceca0908030119i3432a495ya60aa431dab0e1b1@mail.gmail.com> <864ospvvkv.fsf@ds4.des.no> <319cceca0908031043x6bfe5771wa73553dce922756a@mail.gmail.com> <86eirs65gb.fsf@ds4.des.no> <319cceca0908031425r3516de29q34807cdf2c7489ed@mail.gmail.com> <86k51k4kvl.fsf@ds4.des.no> <86fxc84ksj.fsf@ds4.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
--00163646be02cdfa00047044b5ba
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I'm running out 7.2-RELEASE-p2

Here is my bt

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 ar=
e
welcome to change it and/or distribute copies of it under certain condition=
s.
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"...

Unread portion of the kernel message buffer:
loaded.


Fatal trap 12: page fault while in kernel mode
cpuid =3D 1; apic id =3D 01
fault virtual address	=3D 0x10
fault code		=3D supervisor read, page not present
instruction pointer	=3D 0x20:0xc085935b
stack pointer	        =3D 0x28:0xe6cd3a28
frame pointer	        =3D 0x28:0xe6cd3aa4
code segment		=3D base 0x0, limit 0xfffff, type 0x1b
			=3D DPL 0, pres 1, def32 1, gran 1
processor eflags	=3D interrupt enabled, resume, IOPL =3D 0
current process		=3D 1354 (test)
trap number		=3D 12
panic: page fault
cpuid =3D 1
Uptime: 4m45s
Physical memory: 1001 MB
Dumping 119 MB: 104 88 72 56 40 24 8

Reading symbols from /boot/kernel/snd_hda.ko...Reading symbols from
/boot/kernel/snd_hda.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/snd_hda.ko
Reading symbols from /boot/kernel/sound.ko...Reading symbols from
/boot/kernel/sound.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/sound.ko
Reading symbols from /boot/kernel/if_wpi.ko...Reading symbols from
/boot/kernel/if_wpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/if_wpi.ko
Reading symbols from /boot/kernel/wpifw.ko...Reading symbols from
/boot/kernel/wpifw.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/wpifw.ko
Reading symbols from /boot/kernel/acpi.ko...Reading symbols from
/boot/kernel/acpi.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/acpi.ko
Reading symbols from /boot/kernel/i915.ko...Reading symbols from
/boot/kernel/i915.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/i915.ko
Reading symbols from /boot/kernel/drm.ko...Reading symbols from
/boot/kernel/drm.ko.symbols...done.
done.
Loaded symbols for /boot/kernel/drm.ko
Reading symbols from ./test.ko...done.
Loaded symbols for ./test.ko
#0  doadump () at pcpu.h:196
196	pcpu.h: No such file or directory.
	in pcpu.h
(kgdb) bt
#0  doadump () at pcpu.h:196
#1  0xc07e25c7 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:4=
18
#2  0xc07e2899 in panic (fmt=3DVariable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:574
#3  0xc0ae3efc in trap_fatal (frame=3D0xe6cd39e8, eva=3D16)
    at /usr/src/sys/i386/i386/trap.c:939
#4  0xc0ae4180 in trap_pfault (frame=3D0xe6cd39e8, usermode=3D0, eva=3D16)
    at /usr/src/sys/i386/i386/trap.c:852
#5  0xc0ae4b2c in trap (frame=3D0xe6cd39e8) at /usr/src/sys/i386/i386/trap.=
c:530
#6  0xc0ac923b in calltrap () at /usr/src/sys/i386/i386/exception.s:159
#7  0xc085935b in namei (ndp=3D0xe6cd3bc8) at /usr/src/sys/kern/vfs_lookup.=
c:191
#8  0xc08706d7 in vn_open_cred (ndp=3D0xe6cd3bc8, flagp=3D0xe6cd3cc4, cmode=
=3D1,
    cred=3D0xc408fc00, fp=3D0xc4b5b344) at /usr/src/sys/kern/vfs_vnops.c:18=
8
#9  0xc08709a3 in vn_open (ndp=3D0xe6cd3bc8, flagp=3D0xe6cd3cc4, cmode=3D1,
    fp=3D0xc4b5b344) at /usr/src/sys/kern/vfs_vnops.c:94
#10 0xc086e0d3 in kern_open (td=3D0xc499dd20, path=3D0xc4c7a978 "/root/test=
.txt",
    pathseg=3DUIO_SYSSPACE, flags=3D1, mode=3D1)
    at /usr/src/sys/kern/vfs_syscalls.c:1042
#11 0xc4c7a805 in f_open () from ./test.ko
#12 0xc4c7a8a1 in thread_main () from ./test.ko
#13 0xc07bd079 in fork_exit (callout=3D0xc4c7a880 <thread_main>, arg=3D0x0,
    frame=3D0xe6cd3d38) at /usr/src/sys/kern/kern_fork.c:810
#14 0xc0ac92b0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:=
264


On Mon, Aug 3, 2009 at 10:03 PM, Dag-Erling Sm=F8rgrav<des@des.no> wrote:
> Dag-Erling Sm=F8rgrav <des@des.no> writes:
>> One thing that springs to mind is that kern_open() will dereference
>> td->td_proc, and AFAIK kthread_create() does not associate the thread
>> with a process.
>
> This is wrong, and contradicts what I wrote further down.  Just ignore
> it.
>
> DES
> --
> Dag-Erling Sm=F8rgrav - des@des.no
>

--00163646be02cdfa00047044b5ba--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?319cceca0908031558h1bd779b1pac3c9454986f5488>