ToDo:
¤È¤¤¤¦ÃæÄߤ깹ð¤ò¸«¤¿¤±¤É¡¢ ¥¦¥é¥ï¥¶¤À¤«¤éɬ¤º¥â¥Æ¤ë¡ª ¤È¤«¤¤¤¦¤Î¤Ï¤É¤¦¤¤¤¦ÏÀÍýŪµ¢·ë¤Ê¤ó¤À¤í¤¦¡£
(00:11)
http://s2javelin.sandbox.seasar.org/tutorial.html
¤¢¤¦¡¼¡£
¤Ê¤ó¤«¤â¤Î¤¹¤´¤¤¤ó¤À¤±¤É¡¢ ¶Ëü¤ËÃÙ¤¤¸Ä½ê¤¬¤¢¤ë¾ì¹ç¤Ê¤é ¤½¤ó¤Ê¤â¤ó¼«Ê¬¤Ç¤É¤³¤«ÇÄ°®¤·¤Æ¤Ê¤¤¤À¤í¤¦¤«¤È¤«¡Ä ¤¤¤ä¡¢¤½¤³¤Ï¤ä¤Ï¤ê¤¨¤ó¤¿¡¼¤×¤é¤¤¤º¤À¤«¤é¤«¡£
¤¢¤È¤¢¤ó¤Þ¤êÃÙ¤¯¤Ê¤¤¤â¤Î¤ò¥«¥ê¥«¥ê¤Ë¥Á¥å¡¼¥ó¤¹¤ë¾ì¹ç¤Ï ¤ä¤Ã¤Ñ¤ê´Ñ¬¤Ë¤è¤ë´Ñ¬ÂоݤΥ֥ì¤ß¤¿¤¤¤Ê¤Î¤¬ µ¯¤¤Á¤ã¤¤¤½¤¦¤À¤±¤É¡£
(01:45)
¤É¤¦¸«¤Æ¤â Memory map ¤È¤«¤¤¤é¤ó¡£¾Ã¤·¤¿¤¤¡£º£¤¹¤°¡£
i@u ~/src/glibc-2.3.6> find -name *segf* ./sysdeps/unix/sysv/linux/segfault.c ./sysdeps/generic/segfault.c
./sysdeps/generic/segfault.c:
#ifdef HAVE_PROC_SELF /* Now the link map. */ int mapfd = open ("/proc/self/maps", O_RDONLY); if (mapfd != -1) { write (fd, "\nMemory map:\n\n", 14); char buf[256]; ssize_t n; while ((n = TEMP_FAILURE_RETRY (read (mapfd, buf, sizeof (buf)))) > 0) TEMP_FAILURE_RETRY (write (fd, buf, n)); close (mapfd); } #endif
´Ä¶ÊÑ¿ô¤Ç¥ª¥Õ¤È¤«¤µ¤»¤Æ¤¯¤ì¤è¤¦¡£
./sysdeps/unix/sysv/linux/segfault.c:
#define HAVE_PROC_SELF 1 #include <sysdeps/generic/segfault.c>
;·×¤Ê¤³¤È¤ò¡Ä¡Ä¤È¤·¤«¸À¤¨¤Ê¤¤¡£
(02:06)
¤´ÃúÇ«¤Ë²ò½ü¤µ¤ì¤Æ¤ä¤¬¤ë¡Ä
¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡£
¤É¤¦¤·¤¿¤â¤ó¤«¤Ê¡¼¡£ÌµÍý¤Ã¤Ý¤¤¤Ê¡¼¡£
(04:34)
(gdb) bt #0 0xffffe410 in __kernel_vsyscall () #1 0x410de53d in ___newselect_nocancel () from /lib/libc.so.6 #2 0x08060821 in _D3std6socket6Socket6selectFC3std6socket9SocketSetC3std6socket9SocketSetC3std6socket9SocketSetPS3std6socket7timevalZi () #3 0x080608b3 in _D3std6socket6Socket6selectFC3std6socket9SocketSetC3std6socket9SocketSetC3std6socket9SocketSetiZi () #4 0x0804dfdf in _D7gkrellm7Gkrellm3runFDFHAaC6ObjectHAaC6ObjectZvZv () at gkrellm.d:192 #5 0x0804d631 in _Dmain () at minimoni.d:89 #6 0x0804f443 in main ()
¤Ç»É¤µ¤Ã¤Æ¤ë´¶¤¸¡£ ¤à¤¦¡£
(13:57)
Á° | 2006ǯ 5·î |
¼¡ | ||||
Æü | ·î | ²Ð | ¿å | ÌÚ | ¶â | ÅÚ |
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Á´¤Æ¥ê¥ó¥¯¥Õ¥ê¡¼¤Ç¤¹¡£ ¥³¡¼¥ÉÊҤϼ«Í³¤Ë»ÈÍѤ·¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£ ¤½¤Î¾¤Î¤â¤Î¤ÏGPL°·¤¤¤Ç¤¢¤ì¤Ð¤¢¤é¤æ¤ë»ÈÍѤ˴ؤ·¤Æʸ¶ç¤Ï¸À¤¤¤Þ¤»¤ó¡£ ¤Ê¤Ë¤«¤¢¤ì¤Ð²¼µ¥á¡¼¥ë¥¢¥É¥ì¥¹¤Ø¡£