Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

How to interpret a Linux core dump file


Symptom:
 
This technote provides information on how to interpret a Linux core
dump file when an application running on the system, terminates
unexpectedly, due to a segmentation fault and generates a core file.
 
Reason for the problem:
 
A segmentation fault generally occurs when a program attempts to access
a memory location that it is not allowed to, or attempts to access a
memory location in a way that is not allowed. The operating system will
then kill the program and create a core file that programmers can use
to figure out what went wrong. It contains detailed information about
the nature of the crash, such as what caused the crash and what the
program was doing when it happened.
 
Fix / Solution:
 
A core dump can be caused by any number of issues that may or may not
be related to a Dialogic® problem. This technical note describes how to
gather information to determine if a Dialogic® API call may be the
cause of a segmentation fault. Here are the basic steps to take in
determining the cause for the core dump:
 
1.   
To determine what program a core file came from, use the file command:
 
<prompt> file core.1234
 
core.1234: ELF 32-bit LSB core file of “app” (signal 11), Intel 80386, version 1, from “app”
 
Note:
 
The above output shows that program “app”
is the executable which generated the core dump file.
 
2.   
Then run GDB (The GNU Debugger) to view the contents of the core file with the following command line options:
 
<prompt> gdb app core.1234 (where “app” is the application executable and “core.1234” is the core dump file)
 
3.   
Once GDB has loaded up, you can run the “bt” command to display backtrace of the program stack.
 
Example:
 
(gdb) bt
 
#0 0x40c8b6ec in s7_listen () from


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

LinuxÏà¹Ø¹¤×÷5ÄêÄÚÐÂÔö80£¥


Linux»ù½ð»á±íʾ£¬ÔÚ¹ýÈ¥5ÄêÀÓëLinuxÏà¹ØµÄ¹¤×÷¸ÚλÔö¶àÁË80%¡£ÎªÁËÊÊÓ¦²¢Íƶ¯ÕâÖÖÇ÷ÊÆ£¬Linux»ù½ð»á·¢²¼ÁËÒ»¸öLinux¹¤×÷̨£¬ÎªLinuxÏà¹Ø¹¤×÷ÇóÖ°Õߺ͹ÍÖ÷Ìṩһ¸ö½»Á÷µÄƽ̨¡£
Linux»ù½ð»áÈ¥Äê´ÓGeekNetÄÇÀﹺÂòÁËLinux.comÓòÃû£¬Í¨¹ý¸ÃÍøÕ¾ÎªLinuxÓû§ºÍ¿ª·¢ÈËÔ±Ìṩ¸÷ÖÖ¸÷ÑùµÄÄÚÈݺͷþÎñ£¬°üÀ¨ÊDz©¿ÍºÍÉçÇø¼¼ÊõÖ§³ ......

linux /proc/stat Îļþ½éÉܼ°Ó¦ÓÃ


Ò»
°ãÀ´Ëµ¶ÔÓÚÐèÒª´óÁ¿cpu¼ÆËãµÄ½ø³Ì£¬µ±Ç°¶ËѹÁ¦Ô½´óʱ£¬CPUÀûÓÃÂÊÔ½¸ß¡£µ«¶ÔÓÚI/OÍøÂçÃܼ¯Ð͵Ľø³Ì£¬¼´Ê¹ÇëÇóºÜ¶à£¬·þÎñÆ÷µÄCPUÒ²²»Ò»¶¨ºÜµ½£¬
ÕâʱµÄ·þÎñÆ¿¾±Ò»°ãÊÇÔÚ´ÅÅ̵ÄI/OÉÏ¡£±È½Ï³¤¼ûµÄ¾ÍÊÇ£¬´óÎļþƵ·±¶ÁдµÄcpu¿ªÏúԶСÓÚСÎļþƵ·±¶ÁдµÄ¿ªÏú¡£ÒòΪÔÚI/OÍÌÍÂÁ¿Ò»¶¨Ê±£¬Ð¡ÎļþµÄ¶Á
д¸ü¼ÓƵ·±£¬ÐèÒª¸ü¶àµÄc ......

ʹÓÃQemuÀ´µ÷ÊÔlinuxÄÚºË

QemuÊÇÒ»¸öÓÅÐãµÄ¿ªÔ´ISAÄ£ÄâÆ÷£¬Ö§³ÖºÜ¶àÌåϵ½á¹¹£¬µ±È»°üÀ¨x86¡£QemuÌṩµ÷ÊÔ¹¦ÄÜ£¬¿ÉÒÔ¶Ô±»Ä£Äâ½øÐе÷ÊÔ¡£
QemuÖ÷Ò³http://fabrice.bellard.free.fr/qemu/
QemuÏÂÔØÒ³Ãæhttp://fabrice.bellard.free.fr/qemu/download.html °üÀ¨Ô´Â룬¿ÉÖ´ÐÐÎļþ£¬ÒÑÖÆ×÷ºÃµÄdisk fileµÈ
QemuÓÐʹÓÃ˵Ã÷Îĵµhttp://fabrice.bella ......

Linuxϵͳ¹ÜÀíʵ¼ù(10)£ºPPPoEÉÏÍøÅäÖÃ

    µ±Ê¹ÓÃDSLÁ¬½ÓÉÏÍøÊ±£¬Èç¹ûÄãʹÓÃÊÇÓй̶¨»ò¾²Ì¬IPµØÖ·µÄDSLÁ¬½Ó£¬ÄÇôÅäÖò½ÖèºÍÇ°ÃæµÄ“ÍøÂçÅäÖÔÖÐÃèÊöµÄÊÇÒ»ÑùµÄ¡£Äã°ÑÒÔÌ«Íø½Ó¿ÚÁ¬½Óµ½DSL modemÉÏ£¬ÅäÖÃISPÌṩµÄIPµØÖ·£¬×ÓÍøÑÚÂ룬¹ã²¥µØÖ·£¬ºÍÍø¹ØÐÅÏ¢¡£ÖØÆôÍøÂçÉ豸ºóÄã¾ÍÓ¦¸ÃÁ¬ÉÏÍøÁË¡£¼Çס£¬Äã¿ÉÄÜ»¹ÐèÒªÕýÈ·µØÅäÖÃDNS·þÎñÆ÷¡£Èç ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ