Re: unkillable firefox

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Wed, 28 Dec 2016 15:24:39 -0800
On Thu, Dec 29, 2016 at 12:28:36AM +0200, Konstantin Belousov wrote:
> On Wed, Dec 28, 2016 at 12:54:53PM -0800, Steve Kargl wrote:
> > 
> > Firefox is still fubar on freebsd-current.  Following kib's
> > instructions in the thread "Mozilla firefox freezes/zombie on FreeBSD
> > current" thread, here's the requested kernel info
> >   PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME    WCPU COMMAND
> > 96285 kargl        64  40    0  1008M   678M select  0   2:01  18.10% firefox
> > 96256 kargl         2  47    0   834M   304M STOP    0   0:04   0.00% firefox
> 
> Do you have kern.ipc.shm_use_phys set to 1 ?

Yes, I do have this sysctl set to 1.

> Try the following patch, please.
> 

Patch results in a panic when I start X server.

Fatal trap 12: page fault while in kernel mode
cpuid = 7; apic id = 17
fault virtual address   = 0x30
fault code              = supervisor read data, page not present
instruction pointer     = 0x20:0xffffffff807d3999
stack pointer           = 0x0:0xfffffe0238c22720
frame pointer           = 0x0:0xfffffe0238c22750
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         = 790 (fvwm)
trap number             = 12
panic: page fault
cpuid = 7
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0238c223b0
vpanic() at vpanic+0x186/frame 0xfffffe0238c22430
panic() at panic+0x43/frame 0xfffffe0238c22490
trap_fatal() at trap_fatal+0x322/frame 0xfffffe0238c224e0
trap_pfault() at trap_pfault+0x1bc/frame 0xfffffe0238c22540
trap() at trap+0x253/frame 0xfffffe0238c22650
calltrap() at calltrap+0x8/frame 0xfffffe0238c22650
--- trap 0xc, rip = 0xffffffff807d3999, rsp = 0xfffffe0238c22720, rbp = 0xfffffe0238c22750 ---
vm_fault_populate_cleanup() at vm_fault_populate_cleanup+0x39/frame 0xfffffe0238c22750
vm_fault_hold() at vm_fault_hold+0x1a65/frame 0xfffffe0238c22880
vm_fault() at vm_fault+0x78/frame 0xfffffe0238c228c0
trap_pfault() at trap_pfault+0xf6/frame 0xfffffe0238c22920
trap() at trap+0x2ed/frame 0xfffffe0238c22a30
calltrap() at calltrap+0x8/frame 0xfffffe0238c22a30

(kgdb) bt
#0  doadump (textdump=1) at pcpu.h:222
#1  0xffffffff80590002 in kern_reboot (howto=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:386
#2  0xffffffff805904c0 in vpanic (fmt=<value optimized out>, 
    ap=<value optimized out>) at /usr/src/sys/kern/kern_shutdown.c:779
#3  0xffffffff805902f3 in panic (fmt=<value optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:710
#4  0xffffffff808151d2 in trap_fatal (frame=0xfffffe0238c22660, eva=48)
    at /usr/src/sys/amd64/amd64/trap.c:801
#5  0xffffffff8081539c in trap_pfault (frame=0xfffffe0238c22660, usermode=0)
    at /usr/src/sys/amd64/amd64/trap.c:658
#6  0xffffffff80814ab3 in trap (frame=0xfffffe0238c22660)
    at /usr/src/sys/amd64/amd64/trap.c:421
#7  0xffffffff807fb023 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:236
#8  0xffffffff807d3999 in vm_fault_populate_cleanup (
    object=<value optimized out>, first=<value optimized out>, 
    last=<value optimized out>) at pcpu.h:222
#9  0xffffffff807d2105 in vm_fault_hold (map=0xfffff8000999f000, 
    vaddr=8597401600, fault_type=<value optimized out>, fault_flags=0, 
    m_hold=0x0) at /usr/src/sys/vm/vm_fault.c:402
#10 0xffffffff807d0658 in vm_fault (map=0xfffff8000999f000, 
    vaddr=<value optimized out>, fault_type=1 '\001', 
    fault_flags=<value optimized out>) at /usr/src/sys/vm/vm_fault.c:464
#11 0xffffffff808152d6 in trap_pfault (frame=0xfffffe0238c22a40, usermode=1)
    at /usr/src/sys/amd64/amd64/trap.c:708
#12 0xffffffff80814b4d in trap (frame=0xfffffe0238c22a40)
    at /usr/src/sys/amd64/amd64/trap.c:326
#13 0xffffffff807fb023 in calltrap ()
    at /usr/src/sys/amd64/amd64/exception.S:236
#14 0x0000000200b25c33 in ?? ()




-- 
Steve
20161221 https://www.youtube.com/watch?v=IbCHE-hONow
Received on Wed Dec 28 2016 - 22:24:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:09 UTC