*** stack smashing detected ***: ./gtkosd terminated
已經終止
這種訊息出來。
去查這個訊息的原因,在 starryalley 的 blog 底下看到可以加上 -fno-stack-protector 就可以看到出問題的行數。
然而... 我一加上去,我的程式就很正常的運作了。
="=?a) 這是怎麼回事?
*** stack smashing detected ***: ./gtkosd terminated
已經終止
daddy (daddy) said:
嗯...何不先試試MALLOC_CHECK_和MALLOC_TRACE?
在執行程式前, 先export MALLOC_CHECK=1, 就會啟動glibc memory management的debug
機制,任何會segmentation fault的地方都會被glibc擋下來, 並秀出error的部分。
MALLOC_TRACE則是用來追memory leak的,會把heap usage log到指定的file。
這二個玩意兒的詳細用法請參閱GNU C library manual。
當然啦, 前提是你們用的是glibc不是uclibc :p
設置環境變量MALLOC_CHECK_。
若將MALLOC_CHECK_設置為0,則在檢查到錯誤時不作任何提示;
若將MALLOC_CHECK_設置為1,則在檢查到錯誤時打印一條信息到標準錯誤輸出(stderr);
若將MALLOC_CHECK_設置為0,則在檢查到錯誤時直接調用abort()中止程序;
正在設定 ttf-oriya-fonts (1:0.5.0-0ubuntu1) ...
正在安裝新版本的設定檔案 /etc/defoma/hints/ttf-oriya-fonts.hints ...
No CIDSupplement specified for Dotum-Regular, defaulting to 0.
No CIDSupplement specified for Batang-Regular, defaulting to 0.
No CIDSupplement specified for KochiMincho-Regular, defaulting to 0.
No CIDSupplement specified for KochiGothic-Regular, defaulting to 0.
No CIDSupplement specified for KochiGothic-Regular-JaH, defaulting to 0.
No CIDSupplement specified for Headline-Regular, defaulting to 0.
No CIDSupplement specified for Gulim-Regular, defaulting to 0.
No CIDSupplement specified for KochiMincho-Regular-JaH, defaulting to 0.
Regenerating fonts cache... done.
正在設定 ttf-punjabi-fonts (1:0.5.0-0ubuntu1) ...
正在安裝新版本的設定檔案 /etc/defoma/hints/ttf-punjabi-fonts.hints ...
Regenerating fonts cache... done.
正在設定 ttf-tamil-fonts (1:0.5.0-0ubuntu1) ...
正在安裝新版本的設定檔案 /etc/defoma/hints/ttf-tamil-fonts.hints ...
Regenerating fonts cache... done.

因為工作轉到 Windows 平台上的關係,所以很多工具改到 Windows 上面運作,跟著在 TortoiseGit 底下使用 git-bash 來維護自己的專案原始碼。結果就是裝了前面提過的 auto-hotkey 使用熱鍵來提昇自己的平台操作速度; 但除了 hotkey...