タグ

Dockerに関するemergentのブックマーク (2)

  • Debian

    viewportWidth - 20) { leftPos = viewportWidth - dropdownWidth - 20; } // Prevent going off left edge if (leftPos < 20) { leftPos = 20; } $el.style.top = (rect.bottom + 8) + 'px'; $el.style.left = leftPos + 'px'; }"> { const container = $el; // The div with overflow const item = document.getElementById('sidebar-current-page') if (item) { const containerTop = container.scrollTop; const containerBott

    Debian
  • Docker上でgdbを動かす

    Docker上のcentosでgdbを動かそうとしたら、以下のようなエラーが出たので対応策のメモを書きます。 エラー内容 warning: Error disabling address space randomization: Operation not permitted Cannot create process: Operation not permitted During startup program exited with code 127. 原因 Dockerのコンテナ上で動くプロセスはそのままではptraceが使えないらしいです。 ptraceシステムコールは実行中の他のプロセスの動作をみたり、メモリーを書き換えたりできます。 straceやgdbはptraceシステムコールを使ってデバッグ機能を実装しているみたいです。 対応 コマンド 以下コマンドでdockerを起動し

    Docker上でgdbを動かす
  • 1