娛樂城
使用strace查九州娛樂888 找Emacs啟動壅閉的緣故原由 - 財神娛樂城_捕魚達人_電子遊戲

使用strace查九州娛樂888 找Emacs啟動壅閉的緣故原由

之前就以為我的 Emacs 啟動好慢,查望啟動日記會發明啟動到一般的時辰會有一個比較永劫間的卡頓。 之前一向沒有理會它,本日花了點時間索求了一下,發明禍首罪魁竟然是 exec-path-from-shell 這個包。
現將索求的進程記載以下: 因為使用了 spacemacs 的設置,設置上比較龐大,不太想經由過程試驗縮減設置的方式來試探出成績之處。剛好近來在進修使用 strace 對象,是以決定使用 strace 來望望 Emacs 到底卡在那里。

strace emacs –fg-daemon

輸入的內容分外多,這里只截取卡頓前的部門內容

  1. readlinkat(AT_FDCWD, "/home", 0x7ffd1d3abb50, 1024) = -1 EINVAL (無效的參數)
  2. readlinkat(AT_FDCWD, "/home/lujun9972", 0x7ffd1d3abf00, 1024) = -1 EINVAL (無效的參數)
  3. readlinkat(AT_FDCWD, "/home/lujun9972/.emacs.d", 0x7ffd1d3ac2b0, 1024) = -1 EINVAL (無效的參數)
  4. readlinkat(AT_FDCWD, "/home/lujun9972/.emacs.d/elpa", 0x7ffd1d3ac660, 1024) = -1 EINVAL (無效的參數)
  5. readlinkat(AT_FDCWD, "/home/lujun9972/.emacs.d/elpa/exec-path-from-shell-20180323.1904", 0x7ffd1d3aca10, 1024) = -1 EINVAL (無效的參數)
  6. readlinkat(AT_FDCWD, "/home/lujun9972/.emacs.d/elpa/exec-path-from-shell-20180323.1904/exec-path-from-shell.elc", 0x7ffd1d3acdc0, 1024) = -1 EINVAL (無效的參數)
  7. lseek(7, -2655, SEEK_CUR) = 1441
  8. read(7, "\n(defvar exec-path-from-shell-de"..., 4096) = 4096
  9. lseek(7, 5537, SEEK_SET) = 5537
  10. lseek(7, 5537, SEEK_SET) = 5537
  11. lseek(7, 5537, SEEK_SET) = 5537
  12. lseek(7, 5537, SEEK_SET) = 5537
  13. lseek(7, 5537, SEEK_SET) = 5537
  14. lseek(7, 5537, SEEK_SET) = 5537
  15. brk(0x7507000) = 0x7507000
  16. lseek(7, 5537, SEEK_SET) = 5537
  17. lseek(7, 5537, SEEK_SET) = 5537
  18. lseek(7, 5537, SEEK_SET) = 5537
  19. read(7, "230\\205\26\0\t\22\\307\\310\t!\vC\\\"\\211\24\\2"..., 4096) = 2430
  20. lseek(7, 7967, SEEK_SET) = 7967
  21. lseek(7, 7967, SEEK_SET) = 7967
  22. lseek(7, 7967, SEEK_SET) = 7967
  23. lseek(7, 7967, SEEK_SET) = 7967
  24. read(7, "", 4096) = 0
  25. close(7) = 0
  26. getpid() = 10818
  27. faccessat(AT_FDCWD, "/home/lujun9972/bin/printf", X_OK) = -1 ENOENT (沒有阿誰文件或者目次)
  28. faccessat(AT_FDCWD, "/usr/local/sbin/printf", X_OK) = -1 ENOENT (沒有阿誰文件或者目次)
  29. faccessat(AT_FDCWD, "/usr/local/bin/printf", X_OK) = -1 ENOENT (沒有阿誰文件或者目次)
  30. faccessat(AT_FDCWD, "/usr/bin/printf", X_OK) = 0
  31. stat("/usr/bin/printf", {st_mode=S_IFREG|0755, st_size=51176, ...}) = 0
  32. openat(AT_FDCWD, "/dev/null", O_RDONLY|O_CLOEXEC) = 7
  33. faccessat(AT_FDCWD, "/proc/5070/fd/.", F_OK) = 0
  34. faccessat(AT_FDCWD, "/proc/5070/fd/.", F_OK) = 0
  35. faccessat(AT_FDCWD, "/bin/bash", X_OK) = 0
  36. stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=903440, ...}) = 0
  37. pipe2([8, 9], O_CLOEXEC) = 0
  38. rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
  39. vfork() = 10949
  40. rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
  41. close(9) = 0
  42. close(7) = 0
  43. read(8, "bash: \346\227\240\346\263\225\350\256\276\345\256\232\347\273\210\347\253\257\350\277\233\347\250\213\347\273"..., 16384) = 74
  44. read(8, "bash: \346\255\244 shell \344\270\255\346\227\240\344\273\273\345\212\241\346\216\247\345"..., 16310) = 35
  45. read(8, "setterm: \347\273\210\347\253\257 xterm-256color \344"..., 16275) = 51
  46. read(8, "Couldn't get a file descriptor r"..., 16224) = 56
  47. read(8, "bash: [: \357\274\232\351\234\200\350\246\201\346\225\264\346\225\260\350\241\250\350\276\276\345\274"..., 16168) = 34
  48. read(8, "Your display number is 0\n", 16134) = 25
  49. read(8, "Test whether fcitx is running co"..., 16109) = 53
  50. read(8, "Fcitx is r地下六合彩玩法unning correctly.\n\n==="..., 16056) = 87
  51. read(8, "Launch fbterm...\n", 15969) = 17
  52. read(8, "stdin isn't a tty!\n", 15952) = 19
  53. read(8, "__RESULT\0/home/lujun9972/bin:/ho"..., 15933) = 298
  54. read(8, 0x7ffd1d39ce9d, 15635) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
  55. --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=10949, si_uid=1000, si_status=0, si_utime=10, si_stime=7} ---
  56. rt_sigreturn({mask=[]}) = -1 EINTR (被中止的體系挪用)
  57. read(8, &q539大樂透中獎號碼查詢uot;", 15635) = 0
  58. wait4(10949, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 10949
  59. close(8) = 0
  60. getpid() = 10818
  61. faccessat(AT_FDCWD, "/home/lujun9972/bin/printf", X_OK) = -1 ENOENT (沒有阿誰文件或者目次)
  62. faccessat(AT_FDCWD, "/usr/local/sbin/printf", X_OK) = -1 ENOENT (沒有阿誰文件或者目次)
  63. faccessat(AT_FDC大樂透快速對獎WD, "/usr/local/bin/printf", X_OK) = -1 ENOENT (沒有阿誰文件或者目次)
  64. faccessat(AT_FDCWD, "/usr/bin/printf", X_OK) = 0
  65. stat("/usr/bin/printf", {st_mode=S_IFREG|0755, st_size=51176, ...}) = 0
  66. openat(AT_FDCWD, "/dev/null", O_RDONLY|O_CLOEXEC) = 7
  67. faccessat(AT_FDCWD, "/proc/5070/fd/.", F_OK) = 0
  68. faccessat(AT_FDCWD, "/proc/5070/fd/.", F_OK) = 0
  69. faccessat(AT_FDCWD, "/bin/bash", X_OK) = 0
  70. stat("/bin/bash", {st_mode=S_IFREG|0755, st_size=903440, ...}) = 0
  71. pipe2([8, 9], O_CLOEXEC) = 0
  72. rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
  73. vfork() = 11679
  74. rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
  75. close(9) = 0
  76. close(7) = 0
  77. read(8, "setterm: \347\273\210\347\253\257 xterm-256color \344"..., 16384) = 51
  78. read(8, "Couldn't get a file descriptor r"..., 16333) = 56
  79. read(8, "/home/lujun9972/.bash_profile: \347"..., 16277) = 72
  80. read(8, "Your display number is 0\nTest wh"..., 16205) = 78
  81. read(8, "Fcitx is running correctly.\n\n==="..., 16127) = 104
  82. read(8, "stdin isn't a tty!\n&quot539連碰意思;, 16023) = 19
  83. read(8, "__RESULT\0b269cd09e7ec4e8a115188c"..., 16004) = 298
  84. read(8, 0x7ffd1d39cba6, 15706) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
  85. --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11679, si_uid=1000, si_status=0, si_utime=1, 如何算出你的偏財運si_stime=1} ---
  86. rt_sigreturn({mask=[]}) = -1 EINTR (被中止的體系挪用)
  87. read(8,

很輕易就可以望出,當 Emacs 卡登時,它在測驗考試從 8 號文件句柄中讀取內容。

【免責聲明】本站內容轉載自互聯網,其相關談吐僅代表作者小我私家概念盡非權勢巨子,不偏財運2020偏財運八字代表本站態度。如您發明內容存在版權成績,請提交相關鏈接至郵箱:,咱們將實時予以處置。