1.å¦ä½è§£å³bus error
2.这个是坛源坛php静态论坛源码用什么加密的怎么解密谁能还原成源代码
å¦ä½è§£å³bus error
ä¸ï¼Bus Error究ç«æ¯æä»ä¹
Bus Errorï¼å³æ»çº¿é误ã
å¼ååå ï¼
CPUå¤äºæ§è½æ¹é¢çèèï¼è¦æ±å¯¹æ°æ®è¿è¡è®¿é®æ¶é½å¿ é¡»æ¯å°å对é½çãå¦æåç°è¿è¡çä¸æ¯å°å对é½ç访é®ï¼å°±ä¼åéSIGBUSä¿¡å·ç»è¿ç¨ï¼ä½¿è¿ç¨äº§ç core dumpãRISCå æ¬SPARCï¼ä¸ç§å¾®å¤çå¨æ¶æï¼é½æ¯è¿ç§ç±»åçè¯çãxç³»åCPUé½æ¯æä¸å¯¹é½è®¿é®ï¼ä¹æä¾äºå¼å ³ç¦ç¨è¿ä¸ªæºå¶ãxæ¶æä¸è¦æ±å¯¹é½è®¿é®çæ¶åï¼å¿ å®ä¼ææ§è½ä»£ä»·ãä¾å¦ï¼å¯¹intç访é®åºè¯¥æ¯4åè对é½çï¼å³å°ååºè¯¥æ¯4çåæ°ï¼å¯¹shortåæ¯2åè对é½çï¼å°ååºè¯¥æ¯2çåæ°ã
Bus Errorä¹æå¯è½æ¯å 为æºå¨ç©çé®é¢æè 访é®æ æç©çå°åï¼ä½è¿ç§æ åµé常å°è§ã
Linuxå¹³å°ä¸æ§è¡malloc()ï¼å¦æ没æ足å¤çRAMï¼Linuxä¸æ¯è®©malloc()失败è¿åï¼èæ¯åå½åè¿ç¨ååSIGBUSä¿¡å·ã
注: 对该ç¹æ§æçæ度ï¼ææºä¼å¯èªè¡æµè¯ç¡®è®¤å½åç³»ç»ååºã
SIGBUSä¸SIGSEGVä¿¡å·çä¸è¬åºå«å¦ä¸:
1) SIGBUS(Bus error)æå³çæéæ对åºçå°åæ¯ææå°åï¼ä½æ»çº¿ä¸è½æ£å¸¸ä½¿ç¨è¯¥æéãé常æ¯æªå¯¹é½çæ°æ®è®¿é®æè´ã
2) SIGSEGV(Segment fault)æå³çæéæ对åºçå°åæ¯æ æå°åï¼æ²¡æç©çå å对åºè¯¥å°åã
äºï¼ä¾åç¨åºï¼
1 int main(){
2
3
4
5
6 #if defined(__GNUC__)
7 # if defined(__i__)
8
9 __asm__("pushf/norl $0x,(%esp)/npopf");
# elif defined(__x___)
__asm__("pushf/norl $0x,(%rsp)/npopf");
# endif
#endif
short array[];
int * p = (int *) &array[1];
*p = 1;
return 1;
}
shortç±»å大å°ä¸º2个åèï¼å ¶å°åå¿ æ¯2çåæ°ãè对äºintæéæ¥è¯´ï¼è½å¤ä½¿ç¨ä»¥è®¿é®æ°æ®çå°ååºè¯¥æ¯4çåæ°ï¼è½¬åarrary[1]çå°å为int *并访é®ï¼ç³»ç»ä¼ååºSIGBUSä¿¡å·ï¼å¯¼è´ç¨åºå´©æºã
wikiä¸çä¾åï¼
/img/houyipic//.swf" quality=high width= height= TYPE="application/x-shockwave-flash" PLUGINSPAGE="/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" wmode="opaque"><a href="/baidu.php?fr=tc&e=a2lkPTM3NjAwMCZ1aWQ9MzkxOTg3JmJhaWR1aWQ9RDM5NTU5OTcxMkQ2MDYyMDRFNzFCMDNGOEVBRTI4OUYmcHJpY2U9MzAwJmNudGaWtub3cmcm9mPTImcz1hN2IyYzY5OWI1ZTZmM2JmJmMSZ3PSZ1cmw9aHR0cDovLzU5LjQyLjI1NSOC9nYWFjYWQvYmRfaWFkbXMuYXNwP2FkaWQ9azJwMnozajQxMyUyNmFkenQ9MzAlMjZ1cmw9aHR0cDovL3d3dyY2xraW5nLmNvbS9taW5pc2l0ZS9oNjEv" target="_blank" style="cursor:pointer"><div style="position:relative;filter:alpha(opacity=0);-moz-opacity:0;left:0;top:0; background:#CDEAF6;width:px;height:px;z-index:"></div></a></div></td></tr></table>
</div>