📄 linux下的段错误产生的原因及调试方法.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0067)http://blog.csdn.net/baizhiwen_2005/archive/2007/01/10/1478650.aspx -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>Linux下的段错误产生的原因及调试方法 - Technology+Communication+Fashion - CSDNBlog</TITLE>
<META content="MSHTML 6.00.2900.3086" name=GENERATOR>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<SCRIPT src="" type=text/javascript></SCRIPT>
<LINK media=all href="Linux下的段错误产生的原因及调试方法.files/style.css" type=text/css
rel=stylesheet><LINK media=print href="Linux下的段错误产生的原因及调试方法.files/print.css"
type=text/css rel=stylesheet><LINK title=RSS
href="http://blog.csdn.net/baizhiwen_2005/rss.aspx" type=application/rss+xml
rel=alternate>
<SCRIPT language=javascript>
if(!window.attachEvent && window.addEventListener)
{
Window.prototype.attachEvent = HTMLDocument.prototype.attachEvent=
HTMLElement.prototype.attachEvent=function(en, func, cancelBubble)
{
var cb = cancelBubble ? true : false;
this.addEventListener(en.toLowerCase().substr(2), func, cb);
};
}
function scrollPosition()
{
var L, T, w=window, d=document, dd=d.documentElement;
if(w.pageXOffset) L=w.pageXOffset;
else if(dd&&dd.scrollLeft) L=dd.scrollLeft;
else if(d.body) L=d.body.scrollLeft;
if(w.pageYOffset) T=w.pageYOffset;
else if(dd&&dd.scrollTop) T=dd.scrollTop;
else if(d.body) T=d.body.scrollTop;
return {"left": L, "top": T};
}
function CreateWaitElement()
{
var loading = document.getElementById('loading');
if (!loading)
{
var str = "<div id='loading' style='color: #000000; \
background-color: #FFFFAF; \
padding: 0 3px; font-size: 12px; \
font-weight: bold; height: 30px; width: 160px; \
position: absolute; border: #cccccc 1px solid;\
'>正在处理您的请求...</div>";
var s = document.createElement("SPAN");
s.innerHTML = str;
loading = s.firstChild;
document.body.insertBefore(loading, document.body.firstChild);
}
return loading;
}
window.attachEvent("onload", function()
{
var loading = CreateWaitElement();
loading.style.display = "none";
window.attachEvent("onscroll", function(e)
{
var xy = scrollPosition();
loading.style.top = (xy.top + 10) +"px";
loading.style.left = (xy.left + document.body.offsetWidth - 200) +"px";
});
});
function Anthem_PreCallBack() {CreateWaitElement().style.display = ""; }
function Anthem_PostCallBack() {document.getElementById("loading").style.display="none";}
</SCRIPT>
</HEAD>
<BODY>
<SCRIPT language=javascript type=text/javascript>
<!--
function getObject(objectId)
{
if(document.getElementById)
{
return document.getElementById(objectId)
}
else if(document.all&&document.all(objectId))
{
return document.all(objectId)
}
else
{
return false
}
}
function hideObject(objectId)
{
var obj=getObject(objectId);
if(obj&&obj.style)
{
obj.style.display="none";
return true
}
return false
}
function showObject(objectId)
{
var obj=getObject(objectId);
if(obj&&obj.style)
{
obj.style.display="";
return true
}
return false
}
function hideComment(){
hideObject("commentForm");
hideObject("commentform");
return;
}
function showComment(){
return;
}
//-->
</SCRIPT>
<FORM language=javascript id=Form1 name=Form1
onsubmit="javascript:return WebForm_OnSubmit();" action=1478650.aspx
method=post><INPUT id=" __VIEWSTATE" type=hidden name=__VIEWSTATE>
<SCRIPT type=text/javascript>//<![CDATA[var Anthem_DefaultURL = "1478650.aspx?Anthem_CallBack=true";var Anthem_FormID = "Form1";//]]></SCRIPT>
<SCRIPT type=text/javascript>//<![CDATA[// Anthem.js// Updated Nov 13, 2006// Used by encodeURIComponentNew to mimic function encodeURIComponent in // IE 5.5+, Netscape 6+, and Mozillafunction utf8(wide) { var c, s; var enc = ""; var i = 0; while(i<wide.length) { c= wide.charCodeAt(i++); // handle UTF-16 surrogates if (c>=0xDC00 && c<0xE000) continue; if (c>=0xD800 && c<0xDC00) { if (i>=wide.length) continue; s= wide.charCodeAt(i++); if (s<0xDC00 || c>=0xDE00) continue; c= ((c-0xD800)<<10)+(s-0xDC00)+0x10000; } // output value if (c<0x80) enc += String.fromCharCode(c); else if (c<0x800) enc += String.fromCharCode(0xC0+(c>>6),0x80+(c&0x3F)); else if (c<0x10000) enc += String.fromCharCode(0xE0+(c>>12),0x80+(c>>6&0x3F),0x80+(c&0x3F)); else enc += String.fromCharCode(0xF0+(c>>18),0x80+(c>>12&0x3F),0x80+(c>>6&0x3F),0x80+(c&0x3F)); } return enc;}var hexchars = "0123456789ABCDEF";function toHex(n) { return hexchars.charAt(n>>4)+hexchars.charAt(n & 0xF);}var okURIchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-";// Mimics function encodeURIComponent in IE 5.5+, Netscape 6+, and Mozillafunction encodeURIComponentNew(s) { var s = utf8(s); var c; var enc = ""; for (var i= 0; i<s.length; i++) { if (okURIchars.indexOf(s.charAt(i))==-1) enc += "%"+toHex(s.charCodeAt(i)); else enc += s.charAt(i); } return enc;}function Anthem_Encode(s){ if (typeof encodeURIComponent == "function") { // Use JavaScript built-in function // IE 5.5+ and Netscape 6+ and Mozilla return encodeURIComponent(s); } else { // Need to mimic the JavaScript version // Netscape 4 and IE 4 and IE 5.0 return encodeURIComponentNew(s); }}// Primarily used by Anthem.Manager to add an onsubmit event handler// when validators are added to a page during a callback.function Anthem_AddEvent(control, eventType, functionPrefix) { var ev; eval("ev = control." + eventType + ";"); if (typeof(ev) == "function") { ev = ev.toString(); ev = ev.substring(ev.indexOf("{") + 1, ev.lastIndexOf("}")); } else { ev = ""; } var func; if (navigator.appName.toLowerCase().indexOf('explorer') > -1) { func = new Function(functionPrefix + " " + ev); } else { func = new Function("event", functionPrefix + " " + ev); } eval("control." + eventType + " = func;");}function Anthem_GetXMLHttpRequest() { if (window.XMLHttpRequest) { return new XMLHttpRequest(); } else { if (window.Anthem_XMLHttpRequestProgID) { return new ActiveXObject(window.Anthem_XMLHttpRequestProgID); } else { var progIDs = ["Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"]; for (var i = 0; i < progIDs.length; ++i) { var progID = progIDs[i]; try { var x = new ActiveXObject(progID); window.Anthem_XMLHttpRequestProgID = progID; return x; } catch (e) { } } } } return null;}function Anthem_CallBack(url, target, id, method, args, clientCallBack, clientCallBackArg, includeControlValuesWithCallBack, updatePageAfterCallBack) { if (window.Anthem_PreCallBack) { var preCallBackResult = Anthem_PreCallBack(); if (!(typeof preCallBackResult == "undefined" || preCallBackResult)) { if (window.Anthem_CallBackCancelled) { Anthem_CallBackCancelled(); } return null; } } var x = Anthem_GetXMLHttpRequest(); var result = null; if (!x) { result = { "value": null, "error": "NOXMLHTTP" }; Anthem_DebugError(result.error); if (window.Anthem_Error) { Anthem_Error(result); } if (clientCallBack) { clientCallBack(result, clientCallBackArg); } return result; } x.open("POST", url ? url : Anthem_DefaultURL, clientCallBack ? true : false); x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8"); x.setRequestHeader("Accept-Encoding", "gzip, deflate"); if (clientCallBack) { x.onreadystatechange = function() { if (x.readyState != 4) { return; } Anthem_DebugResponseText(x.responseText); result = Anthem_GetResult(x); if (result.error) { Anthem_DebugError(result.error); if (window.Anthem_Error) { Anthem_Error(result); } } if (updatePageAfterCallBack) { Anthem_UpdatePage(result); } Anthem_EvalClientSideScript(result); clientCallBack(result, clientCallBackArg); x = null; if (window.Anthem_PostCallBack) { Anthem_PostCallBack(); } } } var encodedData = ""; if (target == "Page") {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -