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

´ò°ÜLinuxϵͳÖеÄBug

À´Ô´£º http://www.xxlinux.com/linux/article/accidence/technique/20070125/7209.html
User Debug ÈÕÖ¾¼Ç¼

µ÷ÊÔÒ»¸ö±ÀÀ£µÄ³ÌÐòµÄµÚÒ»²½ÊÇŪÇåÄÄÀï³öÁË´í¡£zSeries ÉϵÄLinuxÄں˾ßÓÐÕâÑùÒ»¸öÄÚÖÃÌØÐÔ£¬ËüÔÚÓû§½ø³Ì±ÀÀ£Ê±¼Ç¼һЩ»ù±¾µÄµ÷ÊÔÐÅÏ¢¡£ÒªÆôÓÃÕâ¸öÌØÐÔ£¬ÇëÒÔ root Óû§Éí·ÝÖ´ÐÐÈçÏÂÃüÁ
echo 1 >> /proc/sys/kernel/userprocess_debug
µ±Ä³¸ö½ø³Ì±ÀÀ£Ê±£¬ÈÕÖ¾Îļþ£¨/var/log/messages£©Öоͻá¸ø³ö¸½¼ÓµÄÐÅÏ¢£¬°üÀ¨³ÌÐòÖÕÖ¹Ô­Òò¡¢¹ÊÕϵØÖ·£¬ÒÔ¼°°üº¬³ÌÐò״̬×Ö£¨PSW£©¡¢Í¨ÓüĴæÆ÷ºÍ·ÃÎʼĴæÆ÷µÄ¼òÒª¼Ä´æÆ÷ת´¢¡£
Mar 31 11:34:28 l02 kernel: User process fault: interruption code 0x10
Mar 31 11:34:28 l02 kernel: failing address: 0
Mar 31 11:34:28 l02 kernel: CPU: 1
Mar 31 11:34:28 l02 kernel: Process simple (pid: 30122, stackpage=05889000)
Mar 31 11:34:28 l02 kernel:
Mar 31 11:34:28 l02 kernel: User PSW: 070dc000 c00ab738
Mar 31 11:34:28 l02 kernel: task: 05888000 ksp: 05889f08 pt_regs: 05889f68
Mar 31 11:34:28 l02 kernel: User GPRS:
Mar 31 11:34:28 l02 kernel: 00000000 004019a0 004019a0 00000000
Mar 31 11:34:28 l02 kernel: 00000003 c00ab732 004008f8 00400338
Mar 31 11:34:28 l02 kernel: 40018ffc 0040061c 40018e34 7ffff800
Mar 31 11:34:28 l02 kernel: 00400434 80400624 8040066e 7ffff800
Mar 31 11:34:28 l02 kernel: User ACRS:
Mar 31 11:34:28 l02 kernel: 00000000 00000000 00000000 00000000
Mar 31 11:34:28 l02 kernel: 00000001 00000000 00000000 00000000
Mar 31 11:34:28 l02 kernel: 00000000 00000000 00000000 00000000
Mar 31 11:34:28 l02 kernel: 00000000 00000000 00000000 00000000
Mar 31 11:34:28 l02 kernel: User Code:
Mar 31 11:34:28 l02 kernel: 44 40 50 00 07 fe a7 4a 00 01 18 54 18 43 18 35
a8 24 00 00
ͼ 1 ±íÃ÷³ÌÐò£¨ÃûΪ“simple”£©ÒÔÒ»¸ö³ÌÐòÖжϴúÂë 0x10 ÖÕÖ¹£¨²Ù×÷ϵͳԭÀí±íÃ÷ÕâÊÇÒ»¸ö¶Îת»»´íÎ󣩣¬¶ø¹ÊÕϵØַΪ 0¡£ºÁÎÞÒÉÎÊ£¬ÓÐÈËʹÓÃÁË¿ÕÖ¸Õë¡£ÏÖÔÚÎÒÃÇÖªµÀ·¢ÉúÁËʲô£¬ÏÂÃæÐèҪŪÇåËü·¢ÉúÔںδ¦¡£
»ù±¾µÄÕï¶Ï

User DebugÈÕÖ¾ÌõÄ¿ËùÌṩµÄÐÅÏ¢¿ÉÓÃÓÚÈ·¶¨³ÌÐòµÄ±ÀÀ£Î»Öá£Ò»Ð©¿ÉÓõŤ¾ß¿É°ïÖú½â¾öÄú¿ÉÄÜ»áÓöµ½µÄ¸÷ÖÖ³ÌÐòÖÕÖ¹ÎÊÌâ¡£ÎÒÃǽ


Ïà¹ØÎĵµ£º

LinuxϵͳÓÐÓõÄÒ»¸öÃüÁî

¸ú×ÙϵͳµÄÊä³ö:
     strace
     ÀýÈç:  strace -p 9034  -x -s 2048
     -p   ½ø³ÌºÅ
     -x    ²»ÊÇASCIIµÄÊä³öÓÃHEX±íʾ
     -s    ÿ´ÎÊä³öµ ......

linux ÏÂͨ¹ýwine ÔËÐÐwindows³ÌÐò°üÀ¨IE

Ubuntu9.10 ¾ÙÀý£¨ÒòΪËü·½±ã£¬N¶à¶«Î÷Ò»Ö±½ÓÔÚÏß°²×°£¬Ê¡µÃ±àÒëÁË£©£¬ÆäËûlinux»ù±¾Ïàͬ£¨²»Í¬µÄ¾ÍÊÇÓÐЩҪ½øÐÐÔ´Âë°²×°£¬µ«Óõ½µÄÈí¼þÊÇÒ»ÑùµÄ£©£¬Õû¸ö°²×°ÎÒÒÔ¾­×ö³É½Å±¾·Å·½±ãÏÂÔØ°²×°
°²×°ies4linuxÖв¿·Ö²Î¿¼×Ô£ºhttp://hi.baidu.com/unknown379/blog/item/df70c3ef54742d31adafd506.html
Éæ¼°µÄÈí¼þ
1¡¢wine£¬ÊÇÒ ......

linuxÆô¶¯logoÐÞ¸Ä bootlogo

¸ÄÄ¿±ê£ºÓÃ×Ô¶¨ÒåµÄppmͼƬÌæ´ú/drivers/video/logo/logo_linux_clut224.ppm
ͬʱɾ³ýlogo_linux_clut224.c logo_linux_clut224.oÎļþÕâÑù²ÅÄÜʹ±àÒëµÄʹÓÃlogo_linux_clut224.ppmÖØбàÒë
ppmͼƬµÄÉú³É£º
# pngtopnm logo_linux_clut224.png > logo_linux_clut224.pnm
# pnmquant 224 logo_linux_clut224.pnm > ......

ǶÈëʽLinux±àÒëÆ÷gccʹÓÃ


At first, GCC is used for GNU C Compiler. At present£¬it supports JAVA Ada C++ and so on.
GCC±àÒëÁ÷³Ì·ÖΪ£º
1.Pre-Processing£¨Ô¤´¦Àí£©
   gcc -E -o hello.i hello.c
   Ñ¡Ïî-E  Ê¹µÃ±àÒëÆ÷ÔÚÔ¤´¦Àí½áÊøʱֹͣ±àÒë
   Ñ¡Ïî-o   Ö¸¶¨GCCµÄÊä ......

linux oracle °²×°

linuxÏÂoracle°²×°£º
Oracle¹«Ë¾Ðû³ÆÔÚLinuxÏ°²×°Oracle9iÊý¾Ý¿âÖÁÉÙÒªÓÐ512MBµÄÄÚ´æºÍÖÁÉÙ1GB»òÕßÁ½±¶     
ÄÚ´æ´óСµÄ½»»»¿Õ¼ä£¬¶ÔÓÚϵͳÄÚ´æ´óÓÚ2GBµÄ·þÎñÆ÷£¬½»»»¿Õ¼ä¿ÉÒÔ½éÓÚ2GB—4GBÖ®¼ä¡£     
Èç¹ûÊÇΪÁËÔÚһ̨½öÓÐ256MÄÚ´æµÄÆÕͨPC»úÉÏÊÔÓÃOracle9 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ