ÔÚLinuxϲúÉú²¢µ÷ÊÔcoreÎļþ
ÔÚLinuxϲúÉú²¢µ÷ÊÔcoreÎļþ
ÏÈ¿´¿´ÎÒÓõÄÊǸöʲô»úÆ÷£º
$ uname -a
Linux dev 2.4.21-9.30AXsmp #1 SMP Wed May 26 23:37:09 EDT 2004 i686 i686 i386 GNU/Linux
ÔÙ¿´¿´Ä¬ÈϵÄһЩ²ÎÊý£¬×¢Òâcore file sizeÊǸö0£¬³ÌÐò³ö´íʱ²»»á²úÉúcoreÎļþÁË¡£
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 4
max memory size (kbytes, -m) unlimited
open files (-n) 2048
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 7168
virtual memory (kbytes, -v) unlimited
д¸ö¼òµ¥µÄ³ÌÐò£¬¿´¿´coreÎļþÊDz»Êǻᱻ²úÉú¡£
$ more foo.c
#include <stdio.h>
static void sub(void);
int main(void)
{
sub();
return 0;
}
static void sub(void)
{
int *p = NULL;
/* derefernce a null pointer, expect core dump. */
printf("%d", *p);
}
$ gcc -Wall -g foo.c
$ ./a.out
Segmentation fault
$ ls -l core.*
ls: core.*: No such file or directory
ûÓÐÕÒµ½coreÎļþ£¬ÎÒÃǸĸÄulimitµÄÉèÖã¬ÈÃËü²úÉú¡£1024ÊÇËæ±ãÈ¡µÄ£¬ÒªÊÇcoreÎļþ´óÓÚ1024¸ö¿é£¬¾Í²úÉú²»³öÀ´ÁË¡£
$ ulimit -c 1024
$ ulimit -a
core file size (blocks, -c) 1024
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 4
max memory size (kbytes, -m) unlimited
open files (-n) 2048
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 7168
virtual memory (kbytes, -v) unlimited
$ ./a.out
Segmentation fault (core dumped)
$ ls -l core.*
-rw------- 1 uniware uniware 53248 Jun 30 17:10 core.9128
×¢Òâ¿´ÉÏÊöµÄÊä³öÐÅÏ¢£¬¶àÁ˸ö(core dumped)¡£È·Êµ²úÉúÁËÒ»¸öcoreÎļþ£¬9128ÊǸýø³ÌµÄPID¡£ÎÒÃÇÓÃGDBÀ´¿´¿´Õâ¸öcore¡£
$ gdb --core=core.9128
GNU gdb Asianux (6.0post-0.20040223.17.1AX)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the G
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
from:×ÞöεÄרÀ¸
ʲôʱºòÐèÒª´´½¨Ï̳߳ØÄØ£¿¼òµ¥µÄ˵£¬Èç¹ûÒ»¸öÓ¦ÓÃÐèҪƵ·±µÄ´´½¨ºÍÏú»ÙỊ̈߳¬¶øÈÎÎñÖ´ÐеÄʱ¼äÓַdz£¶Ì£¬ÕâÑùÏ̴߳´½¨ºÍÏú»ÙµÄ´øÀ´µÄ¿ªÏú¾Í²»ÈݺöÊÓ£¬ÕâʱҲÊÇÏ̳߳ظóö³¡µÄ»ú»áÁË¡£Èç¹ûÏ̴߳´½¨ºÍÏú»Ùʱ¼äÏà±ÈÈÎÎñÖ´ÐÐʱ¼ä¿ÉÒÔºöÂÔ²»¼Æ£¬ÔòûÓбØҪʹÓÃÏ̳߳ØÁË¡£
&n ......
Ç°Ì᣺ Apache ºÍ MysqlÒѾ°²×°Íê±Ï¡£
php °æ±¾£ºphp-5.2.6.tar.gz
ÏÂÔصØÖ·£º
ZendOptimiter-3.3.3-linux-glibc23-i386.tar.gz
ÏÂÔصØÖ·£º
1. Ê×ÏÈ°²×° GD¿âÈí¼þ
libxml2-2.7.2.tar.gz
ÏÂÔصØÖ·£º
#tar -zxvf libxml2-2.7.2.tar.gz
#cd libxml2-2.7.2
#mkdir /usr/local/modules
#mkdir /usr/loc ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
2009
Ä꣬¼´½«¹ýÈ¥¡£»Ø¹ËÍùÊ£¬ÓиС£
½ñÄêµÚËļ¾¶È£¬¸÷´ó
Linux
·¢Ðа棨ÓÈÆäÊÇ×ÀÃæ°æ£©Ïà¼Ì·¢²¼£¬°Ñ
Linux
×ÀÃæÍƽøµ½Ò»¸öеÄˮƽ£¬Õ¹ÏÖÁË
L ......
1.4 InternetÉϵÄLinux×ÊÔ´
InternetÉÏÓÀÔ¶¶¼²»È±ÉÙLinux×ÊÔ´£¬³ýÁË1.3.1½ÚÁгöµÄ¸÷·¢ÐаæµÄ¹Ù·½ÍøÕ¾Í⣬»¹Óкܶà×éÖ¯ºÍ¸öÈ˽¨Á¢Á˸÷ÖÖLinuxÍøÕ¾ºÍÂÛ̳£¬ÕâЩ×ÊԴΪLinuxÓû§ÌṩÁË´óÁ¿Ö§³Ö¡£¾³£¹â¹ËÕâЩµØ·½²¢¼°Ê±Êµ¼ùÊÇѧϰLinuxµÄ×îºÃ;¾¶¡£±í1.2ºÍ±í1.3·Ö±ðÁгöÁ˹úÍâºÍ¹úÄڵij£ÓÃLinuxÕ¾µã¡£
±í1.2 ³£Ó ......