易截截图软件、单文件、免安装、纯绿色、仅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编程(三) HCI层编程

1. HCI层协议概述:
HCI提供一套统一的方法来访问Bluetooth底层。如图所示:
从图上可以看出,Host Controller Interface(HCI)  就是用来沟通Host和Module。Host通常就是PC, Module则是以各种物理连接形式(USB,serial,pc-card等)连接到PC上的bluetooth Dongle。
在Host这一端:application,SDP,L2cap等协议 ......

linux中各种信号介绍

1.SIGHUP信号
     UNIX中进程组织结构为 session (会话)包含一个前台进程组及一个或多个后台进程组,一个进程组包含多个进程。一个session可能会有一个session首进程,而一个session首进程可能会有一个控制终端。一个进程组可能会有一个进程组首进程。进程组首进程的进程ID与该进程组ID相等。这 ......

八个步骤修改linux时区


For ubuntu: [1]http://webonrails.com/2009/07/15/change-timezone-of-ubuntu-machine-from-command-line/
2
Logged in as root, check which timezone your machine is currently using by executing `date`. You'll see something like Mon 17 Jan 2005 12:15:08 PM PST, PST in this case is the cu ......

linux 内核错误代码汇总

1 定义文件
linux/errno.h
#ifndef _LINUX_ERRNO_H
#define _LINUX_ERRNO_H
#include <asm/errno.h>
#ifdef __KERNEL__
/* Should never be seen by user programs */
#define ERESTARTSYS    512
#define ERESTARTNOINTR    513
#define ERESTARTNOHAND    5 ......

Linux系统管理实践(9):DHCP服务器配置

    一般来讲,如果你有一个有线调制解调器或者数字用户线路,你就可以使用家里的电脑获取由你的服务提供商动态分配的IP地址。如果在调制解调器和本地网络之间安装了有线/数字用户线路的路由器,你的电脑很有可能是在启动过程中从路由器获取了IP地址。你也可以选择禁用本地路由器中DHCP服务器的功能,而设置 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号