kmem_malloc crash
Mattias Barthel
mb at stacken.kth.se
Sun Jun 15 11:53:44 CEST 2008
Hej,
Finns det en minnesläcka i FreeBSD kärnan?
Jag kör FreeBSD 7.0 med rtorrent (multitrådad app) mot en smbmountad disk.
Efter några dagar så krashar maskinen med följande core dump:
# ls -l /var/crash/vmcore.0
-rw------- 1 root wheel 461516800 Jun 3 13:11 /var/crash/vmcore.0
# ls -l /var/crash/vmcore.*
-rw------- 1 root wheel 461516800 Jun 3 13:11 /var/crash/vmcore.0
-rw------- 1 root wheel 448233472 Jun 8 16:30 /var/crash/vmcore.1
-rw------- 1 root wheel 644939776 Jun 15 02:29 /var/crash/vmcore.2
# kgdb kernel.debug /var/crash/vmcore.2
[GDB will not be able to debug user-mode threads:
/usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"]
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 "i386-marcel-freebsd".
Unread portion of the kernel message buffer:
panic: kmem_malloc(4096): kmem_map too small: 536870912 total allocated
cpuid = 1
Uptime: 5d2h50m4s
Physical memory: 1515 MB
Dumping 615 MB: 600 584 568 552 536 520 504 488 472 456 440 424 408 392
376 360 344 328 312 296 280 264 248 232 216 200 184 168 152 136 120 104
88 72 56 40 24 8
#0 doadump () at pcpu.h:195
195 __asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0 doadump () at pcpu.h:195
#1 0xc07543c7 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2 0xc0754689 in panic (fmt=Variable "fmt" is not available.
) at /usr/src/sys/kern/kern_shutdown.c:563
#3 0xc097243a in kmem_malloc (map=0xc1c7108c, size=4096, flags=258) at
/usr/src/sys/vm/vm_kern.c:312
#4 0xc0968c07 in page_alloc (zone=0xc1c5dd20, bytes=4096,
pflag=0xf63f5933 "\002\2008??\002", wait=258) at
/usr/src/sys/vm/uma_core.c:955
#5 0xc0967ecc in slab_zalloc (zone=0xc1c5dd20, wait=258) at
/usr/src/sys/vm/uma_core.c:820
#6 0xc09683a4 in uma_zone_slab (zone=0xc1c5dd20, flags=2) at
/usr/src/sys/vm/uma_core.c:2010
#7 0xc096b46a in uma_zalloc_arg (zone=0xc1c5dd20, udata=0x0, flags=2)
at /usr/src/sys/vm/uma_core.c:2111
#8 0xc07bcd8f in cache_enter (dvp=0xc5f83000, vp=0xc5e0acc0,
cnp=0xf63f5b8c) at uma.h:277
#9 0xc9adb276 in ?? ()
#10 0xc5f83000 in ?? ()
#11 0xc5e0acc0 in ?? ()
#12 0xf63f5b8c in ?? ()
#13 0x0000002e in ?? ()
#14 0xc5a1ca04 in ?? ()
#15 0xf63f5bcc in ?? ()
#16 0x0000000f in ?? ()
#17 0xc567a800 in ?? ()
#18 0xc546a000 in ?? ()
#19 0x0000000f in ?? ()
#20 0x0000000f in ?? ()
#21 0x00000000 in ?? ()
#22 0xf63f5a26 in ?? ()
#23 0x0000000f in ?? ()
#24 0x91ffeb11 in ?? ()
#25 0x2e080108 in ?? ()
#26 0x695b5f2e in ?? ()
#27 0x75486f73 in ?? ()
#28 0x205d746e in ?? ()
#29 0x422e6e49 in ?? ()
#30 0x65677572 in ?? ()
#31 0x30325b73 in ?? ()
#32 0x445d3830 in ?? ()
#33 0x69724476 in ?? ()
#34 0x58612d70 in ?? ()
#35 0x742e6f58 in ?? ()
#36 0x6572726f in ?? ()
#37 0x0000746e in ?? ()
#38 0x00000000 in ?? ()
#39 0x00000000 in ?? ()
#40 0x00000000 in ?? ()
#41 0x00000000 in ?? ()
#42 0x00000000 in ?? ()
#43 0x00000000 in ?? ()
#44 0x00000000 in ?? ()
#45 0x00000000 in ?? ()
#46 0x00000000 in ?? ()
#47 0x00000000 in ?? ()
#48 0x00000000 in ?? ()
#49 0x00000000 in ?? ()
#50 0x00000000 in ?? ()
#51 0x00000000 in ?? ()
#52 0x00000000 in ?? ()
#53 0x00000000 in ?? ()
#54 0x00000000 in ?? ()
#55 0x00000000 in ?? ()
#56 0x00000000 in ?? ()
#57 0x00000000 in ?? ()
#58 0x00000000 in ?? ()
#59 0x00000000 in ?? ()
#60 0x00000000 in ?? ()
#61 0x00000000 in ?? ()
#62 0x00000000 in ?? ()
#63 0x00000000 in ?? ()
---Type <return> to continue, or q <return> to quit---q
-------------- next part --------------
En HTML-bilaga skiljdes ut...
URL: http://lists.stacken.kth.se/pipermail/bus/attachments/20080615/e6248c5b/attachment.html
More information about the BUS
mailing list