Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jul 2007 19:35:13 +0400
From:      Yuri Pankov <yuri@darklight.org.ru>
To:        Roman Divacky <rdivacky@freebsd.org>
Cc:        emulation@freebsd.org
Subject:   Re: panic when using module built in modules directory
Message-ID:  <20070716153513.GA1164@darklight.org.ru>
In-Reply-To: <20070716151058.GA67901@freebsd.org>
References:  <20070716151058.GA67901@freebsd.org>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Mon, Jul 16, 2007 at 05:10:58PM +0200, Roman Divacky wrote:
> hi
> 
> can someone test whether
> 
> buildkernel && cd /sys/modules/linux && make && make install
> kldload linux && chroot /compat/linux /bin/bash
> 
> produces an instant panic? it does for me. ie. when the linux module
> is built with kernel its ok, but when I build it separately in
> sys/modules/linux it panic in turnstiles... it used to work so I'd
> love to know..
> 
> thnx for testing
> 
> roman
> 

Confirmed. :-) CURRENT/amd64 built on Jul, 12.

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x408
fault code              = supervisor write data, page not present
instruction pointer     = 0x8:0xffffffffafe89414
stack pointer           = 0x10:0xffffffffaffdb680
frame pointer           = 0x10:0xffffffffaffdb6b0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = interrupt enabled, resume, IOPL = 0
current process         = 71888 (chroot)
trap number             = 12
panic: page fault
cpuid = 0
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
panic() at panic+0x17a
trap_fatal() at trap_fatal+0x29f
trap_pfault() at trap_pfault+0x294
trap() at trap+0x2ea
calltrap() at calltrap+0x8
--- trap 0xc, rip = 0xffffffffafe89414, rsp = 0xffffffffaffdb680, rbp =
0xffffffffaffdb6b0 ---
linux_proc_init() at linux_proc_init+0x124
linux_proc_exec() at linux_proc_exec+0x4a
exec_new_vmspace() at exec_new_vmspace+0x74
exec_elf32_imgact() at exec_elf32_imgact+0x1bd
kern_execve() at kern_execve+0x2fe
execve() at execve+0x3d
syscall() at syscall+0x254
Xfast_syscall() at Xfast_syscall+0xab
--- syscall (59, FreeBSD ELF64, execve), rip = 0x80069d06c, rsp =
0x7fffffffe5b8, rbp = 0x7fffffffeab0 ---
Uptime: 6h41m18s
Physical memory: 2035 MB
Dumping 354 MB: 339 323 307 291 275 259 243 227 211 195 179 163 147 131
115 99 83 67 51 35 19 3


Yuri

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQBGm5AteoAklVFrLdgRAlnRAJoCqKiSvvfWYVdRqnyIKGb+TNRNQQCfQ893
Ow7elRgbcWq/HIcWofitzYo=
=giv8
-----END PGP SIGNATURE-----
help

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