Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Feb 2004 15:25:25 -0700 (MST)
From:      "Kris Gale" <kris-fbsd@asn.net>
To:        freebsd-threads@freebsd.org
Subject:   Re: More on MySQL (Crash dump)
Message-ID:  <53059.68.228.211.254.1077747925.squirrel@mail.asn.net>
In-Reply-To: <Pine.GSO.4.10.10402182316210.12150-100000@pcnet5.pcnet.com>
References:  <50189.68.3.131.72.1077123041.squirrel@mail.asn.net> <Pine.GSO.4.10.10402182316210.12150-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks to a recent patch to savecore, I was able to obtain a crash dump
for one of those panics that I've been seeing when MySQL tries to create
lots of threads very quickly.  Here it is.  Let me know if there's any
other information that would be handy.

GNU gdb 5.2.1 (FreeBSD)Copyright 2002 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-undermydesk-freebsd"...
panic: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 07
fault virtual address   = 0xe8993028
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc06b0087
stack pointer           = 0x10:0xe7cb0d74
frame pointer           = 0x10:0xb9d8487c
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 808 (mysqld)
trap number             = 12
panic: page fault
at line 819 in file /usr/src/sys/i386/i386/trap.c
cpuid = 3;
boot() called on cpu#3

syncing disks, buffers remaining... panic: bremfree: removing a buffer not
on a queue
at line 647 in file /usr/src/sys/kern/vfs_bio.ccpuid = 3;
boot() called on cpu#3
Uptime: 6m8s
Dumping 3072 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240 256 272 288 304 320
336 352 368 384 400 416 432 448 464 480 496 512 528 544 560 576 592 608
624 640 656 672 688 704 720 736 752 768 784 800 816 832 848 864 880 896
912 928 944 960 976 992 1008 1024 1040 1056 1072 1088 1104 1120 1136 1152
1168 1184 1200 1216 1232 1248 1264 1280 1296 1312 1328 1344 1360 1376
1392 1408 1424 1440 1456 1472 1488 1504 1520 1536 1552 1568 1584 1600
1616 1632 1648 1664 1680 1696 1712 1728 1744 1760 1776 1792 1808 1824
1840 1856 1872 1888 1904 1920 1936 1952 1968 1984 2000 2016 2032 2048
2064 2080 2096 2112 2128 2144 2160 2176 2192 2208 2224 2240 2256 2272
2288 2304 2320 2336 2352 2368 2384 2400 2416 2432 2448 2464 2480 2496
2512 2528 2544 2560 2576 2592 2608 2624 2640 2656 2672 2688 2704 2720
2736 2752 2768 2784 2800 2816 2832 2848 2864 2880 2896 2912 2928 2944
2960 2976 2992 3008 3024 3040 3056
---
Reading symbols from /boot/kernel/acpi.ko...done.
Loaded symbols for /boot/kernel/acpi.ko
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
240             dumping++;
(kgdb) backtrace
#0  doadump () at /usr/src/sys/kern/kern_shutdown.c:240
#1  0xc056b0e5 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:374
#2  0xc056b39d in __panic () at /usr/src/sys/kern/kern_shutdown.c:552
#3  0xc05a23b1 in bremfreel (bp=0xd4e03a38) at
/usr/src/sys/kern/vfs_bio.c:647
#4  0xc05a22f1 in bremfree (bp=0xd4e03a38) at /usr/src/sys/kern/vfs_bio.c:629
#5  0xc05a5384 in getblk (vp=0xc8d2bb2c, blkno=-399372, size=16384,
slpflag=0, slptimeo=0,
    flags=0) at /usr/src/sys/kern/vfs_bio.c:2466
#6  0xc05a2439 in breadn (vp=0xc8d2bb2c, blkno=-399372, size=16384,
rablkno=0x0,
    rabsize=0x0, cnt=0, cred=0x0, bpp=0x0) at /usr/src/sys/kern/vfs_bio.c:700
#7  0xc05a2404 in bread (vp=0xc8d2bb2c, blkno=-399372, size=16384,
cred=0x0, bpp=0xe7cb09b8)
    at /usr/src/sys/kern/vfs_bio.c:682
#8  0xc0663fd3 in ffs_balloc_ufs2 (vp=0xc8d2bb2c, startoffset=0, size=16384,
    cred=0xc4675200, flags=131072, bpp=0xe7cb0ac4) at
/usr/src/sys/ufs/ffs/ffs_balloc.c:706
#9  0xc066b5ff in ffs_copyonwrite (devvp=0xc8b2ab2c, bp=0xd4f8b680)
    at /usr/src/sys/ufs/ffs/ffs_snapshot.c:1998
#10 0xc053f589 in spec_xstrategy (vp=0xc8b2ab2c, bp=0xd4f8b680)
    at /usr/src/sys/fs/specfs/spec_vnops.c:493
#11 0xc053f671 in spec_specstrategy (ap=0x0) at
/usr/src/sys/fs/specfs/spec_vnops.c:553
#12 0xc053eb63 in spec_vnoperate (ap=0x0) at
/usr/src/sys/fs/specfs/spec_vnops.c:122
#13 0xc05a2a3e in bwrite (bp=0xd4f8b680) at vnode_if.h:1141
#14 0xc05a42eb in vfs_bio_awrite (bp=0xd4f8b680) at
/usr/src/sys/kern/vfs_bio.c:1713
#15 0xc05aa89d in vop_stdfsync (ap=0xe7cb0bfc) at
/usr/src/sys/kern/vfs_default.c:738
#16 0xc053f46f in spec_fsync (ap=0xe7cb0bfc) at
/usr/src/sys/fs/specfs/spec_vnops.c:441
#17 0xc053eb63 in spec_vnoperate (ap=0x0) at
/usr/src/sys/fs/specfs/spec_vnops.c:122
#18 0xc0675f7c in ffs_sync (mp=0xc8a50400, waitfor=2, cred=0xc4675200,
td=0xc07b1240)
    at vnode_if.h:627
#19 0xc05b36e7 in sync (td=0xc07b1240, uap=0x0) at
/usr/src/sys/kern/vfs_syscalls.c:141
#20 0xc056ad47 in boot (howto=256) at /usr/src/sys/kern/kern_shutdown.c:281
#21 0xc056b39d in __panic () at /usr/src/sys/kern/kern_shutdown.c:552
#22 0xc06c1a52 in trap_fatal (frame=0xe7cb0d34, eva=3902353448)
    at /usr/src/sys/i386/i386/trap.c:819
#23 0xc06c1783 in trap_pfault (frame=0xe7cb0d34, usermode=0, eva=3902353448)
    at /usr/src/sys/i386/i386/trap.c:733
#24 0xc06c1461 in trap (frame=
      {tf_fs = 47, tf_es = 47, tf_ds = 175308816, tf_edi = 0, tf_esi =
216568576, tf_ebp = -1177008004, tf_isp = -406123168, tf_ebx =
216568640, tf_edx = 216568620, tf_ecx = 0, tf_eax = -549195776,
tf_trapno = 12, tf_err = 0, tf_eip = -1066729337, tf_cs = 8,
tf_eflags = 65538, tf_esp = 47, tf_ss = 2020}) at
/usr/src/sys/i386/i386/trap.c:420
#25 0xc06b0087 in Xinvlpg () at {standard input}:88
(kgdb) quit



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