iT邦幫忙

0

gitbook serve 產生的 Segmentation fault: 11 錯誤?

想問問近期有遇過 Segmentation fault: 11 錯誤的大大

當我 gitbook 在 serve 時

不定時地會出現 Segmentation fault: 11 錯誤

x @ documentation $ gitbook serve
Live reload server started on port: 35729
Press CTRL+C to quit ...

info: 7 plugins are installed 
info: loading plugin "livereload"... OK 
info: loading plugin "highlight"... OK 
info: loading plugin "search"... OK 
info: loading plugin "lunr"... OK 
info: loading plugin "sharing"... OK 
info: loading plugin "fontsettings"... OK 
info: loading plugin "theme-default"... OK 
info: found 36 pages 
info: found 1 asset files 
info: >> generation finished with success in 4.3s ! 

Starting server ...
Serving book on http://localhost:4000
Stopping server
Segmentation fault: 11

然後我就要重新下 serve 指令

又或是檔案保存時「有時候」不會自己重 serve 的問題

這是我哪裡設定有錯誤嗎?!

x @ gitbook $ node -v
v13.3.0
x @ gitbook $ npm -v
6.13.1
x @ gitbook $ gitbook -V
CLI version: 2.3.2
GitBook version: 3.2.3

2 個回答

1
dragonH
iT邦超人 6 級 ‧ 2020-07-24 16:26:50
最佳解答

把 log 秀出來

看有沒有有用的訊息

連結

看更多先前的回應...收起先前的回應...
松松 iT邦研究生 2 級 ‧ 2020-07-24 16:32:55 檢舉
debug: calling hook "config" 
debug: calling hook "init" 
debug: copy assets from theme /Users/x/.gitbook/versions/3.2.3/node_modules/gitbook-plugin-theme-default/_assets/website 
debug: copy resources from plugin /Users/x/.gitbook/versions/3.2.3/node_modules/gitbook-plugin-fontsettings/assets 
debug: copy resources from plugin /Users/x/.gitbook/versions/3.2.3/node_modules/gitbook-plugin-sharing/assets 
debug: copy resources from plugin /Users/x/.gitbook/versions/3.2.3/node_modules/gitbook-plugin-lunr/assets 
debug: copy resources from plugin /Users/x/.gitbook/versions/3.2.3/node_modules/gitbook-plugin-search/assets 
debug: copy resources from plugin /Users/x/.gitbook/versions/3.2.3/node_modules/gitbook-plugin-highlight/css 
debug: copy asset "css/body.css" 
debug: generate page "README.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page README.md 
debug: generate page "login.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page login.md 
debug: generate page "ums/index.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ums/index.md 
debug: generate page "ums/steps/user.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ums/steps/user.md 
debug: generate page "mms/list.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page mms/list.md 
debug: generate page "mms/steps/add.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page mms/steps/add.md 
debug: generate page "mms/bio.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page mms/bio.md 
debug: generate page "mms/service.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page mms/service.md 
debug: generate page "mms/steps/hours.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page mms/steps/hours.md 
debug: generate page "mms/schedule.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page mms/schedule.md 
debug: generate page "mms/order.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page mms/order.md 
debug: generate page "mms/comment.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page mms/comment.md 
debug: generate page "tms/list.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page tms/list.md 
debug: generate page "tms/steps/add.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page tms/steps/add.md 
debug: generate page "tms/bio.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page tms/bio.md 
debug: generate page "tms/service.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page tms/service.md 
debug: generate page "tms/steps/hours.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page tms/steps/hours.md 
debug: generate page "tms/order.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page tms/order.md 
debug: generate page "tms/comment.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page tms/comment.md 
debug: generate page "pms/index.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page pms/index.md 
debug: generate page "hms/index.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page hms/index.md 
debug: generate page "ups/user.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ups/user.md 
debug: generate page "ups/steps/user.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ups/steps/user.md 
debug: generate page "ups/steps/permission.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ups/steps/permission.md 
debug: generate page "ups/steps/addRole.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ups/steps/addRole.md 
debug: generate page "ups/permission.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ups/permission.md 
debug: generate page "ups/role.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ups/role.md 
debug: generate page "ups/steps/role.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page ups/steps/role.md 
debug: generate page "sys/serviceQuestion.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page sys/serviceQuestion.md 
debug: generate page "sys/masterCategory.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page sys/masterCategory.md 
debug: generate page "sys/templeServiceCategory.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page sys/templeServiceCategory.md 
debug: generate page "sys/masterTag.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page sys/masterTag.md 
debug: generate page "sys/templeTag.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page sys/templeTag.md 
debug: generate page "sys/headlineCategory.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page sys/headlineCategory.md 
debug: generate page "sms/advertise.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page sms/advertise.md 
debug: generate page "sms/feedback.md" 
debug: calling hook "page:before" 
debug: calling hook "page" 
debug: index page sms/feedback.md 
debug: calling hook "finish:before" 
debug: calling hook "finish" 
debug: write search index 
info: >> generation finished with success in 7.4s ! 
松松 iT邦研究生 2 級 ‧ 2020-07-24 16:43:30 檢舉

剛發現有個錯誤

Starting server ...
Serving book on http://localhost:4000
(node:36273) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
dragonH iT邦超人 6 級 ‧ 2020-07-24 17:04:03 檢舉

松松

呃.. . 貼發生錯誤時的訊息才有幫助

那個只是 warning 而已

松松 iT邦研究生 2 級 ‧ 2020-07-24 17:07:02 檢舉

呃 .. 錯誤時的訊息只有這個 Segmentation fault: 11

dragonH iT邦超人 6 級 ‧ 2020-07-24 17:20:09 檢舉

松松

debug mode 底下也是嘛 ?

0
浩瀚星空
iT邦超人 1 級 ‧ 2020-07-24 11:47:57

其實從網路上查到的訊息。

大多數都是指向跟你的程式有關,而非server的問題。
會發生這樣的錯誤大多是記憶體的操作錯誤。

不過還是請比較了解這一塊的人來回答你會比較好
我只是從網路上查到的資料而已,並不是確定的答案。

我要發表回答

立即登入回答