ÔÚ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
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
×î½ü×°ÁËfedora9,ÓÉÓÚÏÔʾÎÊÌâºÜ´ó,ÓÖÍË»ØÁËf8.È»ºóÔÚf9°²×°Ê±¶ÔÎļþµÄ±¸·Ý·ÖÇø¼ÓÁËÃÜ,½á¹ûµ¼ÖÂÎÒ²»Äָܻ´±¸·ÝÎļþÁË,ÄǸöÓôÃÆ°¢,Ò»¹ÒÔØ
¼ÓÃÜ·ÖÇø¾ÍÌáʾÎÒ"mount: unknown filesystem type
'crypt_LUKS'",ÍøÉÏÕÒÁ˰ëÌì²ÅÕÒµ½½â¾ö°ì·¨,˳´øÒ²Á˽âÁËlinux¶ÔÊý¾Ý±£»¤µÄÇ¿´ó
ÕâÀï¾Í¶ÔÈçºÎʹÓÃlinux±£»¤
Ó²ÅÌÀïµÄ ......
ǰÌ᣺ 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 ......
20.1 LinuxÄÚºËÒÆÖ²Òªµã
LinuxµÄ´úÂëÍêÈ«¿ª·ÅÒÔ¼°ÆäÁ¼ºÃµÄ½á¹¹Éè¼Æ·Ç³£ÊÊÓÚǶÈëʽϵͳ¡£ÒÆÖ²Linuxϵͳ°üÀ¨Äںˡ¢³ÌÐò¿âºÍÓ¦ÓóÌÐò£¬ÆäÖÐ×îÖ÷ÒªµÄ¾ÍÊÇÄÚºËÒÆÖ²¡£ÓÉÓÚLinuxÄں˵Ŀª·ÅÐÔ£¬³öÏÖÁËÐí¶àÕë¶ÔǶÈëʽӲ¼þϵͳµÄÄں˰汾£¬ÆäÖÐÖøÃûµÄ°üÀ¨μcLinux¡¢RT-LinuxµÈ¡£
Linux±¾Éí¶ÔÄÚ´æ¹ÜÀí£¨MMU£©ÓкܺõÄÖ§³Ö¡£Ò ......