Apache-2.2

Apache 2.2.4:使用 modsecurity 的 chroot 問題

  • June 22, 2013

我已經安裝了 mod_security。如果我只是在 httpd 中包含 mod_security 的配置文件,它會正常啟動。事實上,如果我嘗試添加SecChrootDir /mnt/chr,httpd 將啟動,但在頁面請求時它會返回錯誤404 errorThe connection was resetFirefox)。httpd錯誤日誌不斷報告:

libgcc_s.so.1 must be installed for pthread_cancel to work
libgcc_s.so.1 must be installed for pthread_cancel to work
libgcc_s.so.1 must be installed for pthread_cancel to work
libgcc_s.so.1 must be installed for pthread_cancel to work
[Fri Jun 21 23:29:09.672309 2013] [core:notice] [pid 4591:tid 140152074479488] AH00052: child pid 16365 exit signal Aborted (6)
[Fri Jun 21 23:29:09.672396 2013] [core:notice] [pid 4591:tid 140152074479488] AH00052: child pid 16366 exit signal Aborted (6)
[Fri Jun 21 23:29:09.672423 2013] [core:notice] [pid 4591:tid 140152074479488] AH00052: child pid 16367 exit signal Aborted (6)
[Fri Jun 21 23:29:09.672446 2013] [core:notice] [pid 4591:tid 140152074479488] AH00052: child pid 16369 exit signal Aborted (6)
libgcc_s.so.1 must be installed for pthread_cancel to work
[Fri Jun 21 23:29:11.675957 2013] [core:notice] [pid 4591:tid 140152074479488] AH00052: child pid 16488 exit signal Aborted (6)
libgcc_s.so.1 must be installed for pthread_cancel to work
libgcc_s.so.1 must be installed for pthread_cancel to work
[Fri Jun 21 23:29:12.678989 2013] [core:notice] [pid 4591:tid 140152074479488] AH00052: child pid 16518 exit signal Aborted (6)
[Fri Jun 21 23:29:12.679099 2013] [core:notice] [pid 4591:tid 140152074479488] AH00052: child pid 16519 exit signal Aborted (6)

我檢查了這個文件,我在/lib,/lib32lib64. 如果我有索引頁,我也無法理解 404 錯誤。我該如何解決這些問題?

您可能需要 32 位版本的 64 位版本。請參閱以下內容:

http://forum.teamspeak.com/showthread.php/40875-libgcc_s-so-1-must-be-installed-for-pthread_cancel-to-work

我得到了這個工作。顯然我有那個庫的 64 位版本,而 TS 伺服器想要 32 位版本。我從 rpm.pbone.net 獲得了用於 Fedora 6 的 libgcc 的最後一個 32 位 rpm,然後做了:

rpm -ivh libgcc-4.1.2-13.fc6.i386.rpm

它在我的 64 位版本旁邊並排安裝了 32 位版本。

引用自:https://serverfault.com/questions/517678