Linux ±à³Ì¶Î´íÎó£¨segmentation error£©×ܽá
×î½üÒ»¶Îʱ¼äÔÚlinuxÏÂÓÃC×öһЩѧϰºÍ¿ª·¢£¬µ«ÊÇÓÉÓÚ¾Ñé²»×㣬ÎÊÌâ¶à¶à¡£¶ø¶Î´íÎó¾ÍÊÇÈÃÎҷdz£Í·Í´µÄÒ»¸öÎÊÌâ¡£²»¹ý£¬Ä¿Ç°Ð´Ò»¸öһǧÐÐ×óÓҵĴúÂ룬ҲºÜÉÙ³öÏֶδíÎ󣬻òÕßÊǼ´Ê¹³öÏÖÁË£¬Ò²ºÜÈÝÒ×ÕÒ³öÀ´£¬²¢ÇÒ´¦Àíµô¡£
ÄÇʲôÊǶδíÎ󣿶δíÎóΪʲôÊǸöÂ鷳ʣ¿ÒÔ¼°Ôõô·¢ÏÖ³ÌÐòÖеĶδíÎóÒÔ¼°ÈçºÎ±ÜÃâ·¢Éú¶Î´íÎóÄØ£¿
Ò»·½ÃæΪÁ˸ø×Ô¼ºµÄѧϰ×ö¸ö×ܽᣬÁíÒ»·½ÃæÓÉÓÚÖÁ½ñûÓÐÕÒµ½Ò»¸ö±È½ÏÈ«Ãæ½éÉÜÕâ¸öËäÈ»ÊÇ“particular problem”µÄÎÊÌ⣬ËùÒÔÎÒÀ´×ö¸öÅ×שÒýÓñ°É¡£ÏÂÃæ¾Í´ÓÉÏÃæµÄ¼¸¸öÎÊÌâ³ö·¢À´Ì½ÌÖһϓSegmentation faults"°É¡£
Ŀ¼
1¡£Ê²Ã´ÊǶδíÎó£¿
2¡£ÎªÊ²Ã´¶Î´íÎóÕâô“Âé·³”£¿
3¡£±à³ÌÖÐͨ³£Åöµ½¶Î´íÎóµÄµØ·½ÓÐÄÄЩ£¿
4¡£ÈçºÎ·¢ÏÖ³ÌÐòÖеĶδíÎó²¢´¦Àíµô£¿
ÕýÎÄ
1¡£Ê²Ã´ÊǶδíÎó£¿
ÏÂÃæÊÇÀ´×ÔAnswers.comµÄ¶¨Ò壺
Quote:
A
segmentation fault (often shortened to segfault) is a particular error
condition that can occur during the operation of computer software. In
short, a segmentation fault occurs when a program attempts to access a
memory location that it is not allowed to access, or attempts to access
a memory location in a way that is not allowed (e.g., attempts to write
to a read-only location, or to overwrite part of the operating system).
Systems based on processors like the Motorola 68000 tend to refer to
these events as Address or Bus errors.
Segmentation is one
approach to memory management and protection in the operating system.
It has been superseded by paging for most purposes, but much of the
terminology of segmentation is still used, "segmentation fault" being
an example. Some operating systems still have segmentation at some
logical level although paging is used as the main memory management
policy.
On Unix-like operating systems, a process that accesses
invalid memory receives the SIGSEGV signal. On Microsoft Windows, a
process that accesses invalid memory receives the
STATUS_ACCESS_VIOLATION exception.
ÁíÍ⣬ÕâÀïÓиö»ù±¾É϶ÔÕÕµÄÖÐÎĽâÊÍ£¬À´×Ôhttp://www.linux999.org/html_sql/3
Ïà¹ØÎĵµ£º
<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......
http://linux.chinaitlab.com/administer/774036.html
[ ÆðÔ´ ]Linux/UnixÏÂÊØ»¤½ø³Ì£¨Daemon£©´ó¼Ò¶¼ÖªµÀ£¬±ÈÈçÎÒÃdz£ÓõÄhttpd¡¢mysqldµÈµÈ£¬¾ÍÊdz£×¤ÄÚ´æÔËÐеijÌÐò£¬ÀàËÆÓÚWindowsϵķþÎñ¡£Ò»°ãÊØ»¤½ø³Ì¶¼ÊÇʹÓÃC/C++À´Ð´£¬¾ÍÊÇͨ¹ýforkÉú³É×Ó½ø³Ì£¬µ±Ç°Ì¨shellϵĸ¸½ø³Ì±»É±µô£¬×Ó½ø³Ì¾Íתµ½ºǫ́ÔËÐУ¬ÎªÁ˲» ......
ºìÆì×ÀÃæLinux4.1Ï°²×°ºÍÅäÖÃJSP·þÎñÆ÷È«¹¥ÂÔ
ÕâÁ½ÌìÊÔ×ÅÔÚºìÆìLinux×ÀÃæ°æ4.1Ï°²×°WEB·þÎñÆ÷£¬Òѳɹ¦°²×°£¬ÏÖ°ÑÎҵݲװ¹ý³Ì½éÉÜÈçÏ£¬ÒÔ¸øÓÐÏàËÆÐèÇóµÄÍøÓѲο¼¡£
ÎҵݲװҪÇóÊÇÖ§³ÖJSP¡¢html¡¢htmÍøÒ³£¬ËùÒÔÑ¡ÓÃJDK1.5.0+Tomcat5.5.4+mySQL4.1.7£¬ÕâЩ¶¼Êǵ±Ç°¸÷Èí¼þ×îеÄÎȶ¨°æ±¾£¨·Ç²âÊ԰棩¡£ÔÝûÓа²×°Apacheº ......
¡¾¼ò½é¡¿ÈçºÎ±àдlinuxÏÂnand flashÇý¶¯-1
version: 1.0
date:20090721
Author£ºcrifan
Mail:green-waste(At)163.com
¡¾±àдÇý¶¯Ö®Ç°ÒªÁ˽âµÄ֪ʶ¡¿
1. Ó²¼þÌØÐÔ£º
¡¾FlashµÄÓ²¼þʵÏÖ»úÖÆ¡¿
FlashÈ«Ãû½Ð×öFlash Memory£¬ÊôÓÚ·ÇÒ×ʧÐÔ´æ´¢É豸(Non-volatile Memory Devi ......
version: 1.0
date:20090721
Author£ºcrifan
Mail:green-waste(At)163.com
ÉϽӣº¡¾¼ò½é¡¿ÈçºÎ±àдlinuxÏÂnand flashÇý¶¯-1
http://green-waste.blog.163.com/blog/static/3267767820096221127554/
¡¾¶Á£¨read£©²Ù×÷¹ý³ÌÏê½â¡¿
ÒÔ×î¼òµ¥µÄread²Ù×÷ΪÀý£¬½âÊÍÈçºÎÀí½âʱÐòͼ£¬ÒÔ¼°½«Ê±Ðòͼ
ÖеÄÒªÇó£¬×ª»¯ ......