並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 8 件 / 8件

新着順 人気順

straceの検索結果1 - 8 件 / 8件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

straceに関するエントリは8件あります。 linuxtipsLinux などが関連タグです。 人気エントリには 『第762回 定番のデバッグ・調査ツールであるstraceでエラーインジェクション | gihyo.jp』などがあります。
  • 第762回 定番のデバッグ・調査ツールであるstraceでエラーインジェクション | gihyo.jp

    straceはユーザーランドアプリケーションの挙動の確認やデバッグに使える便利なツールです。どのシステムコールが、どのような引数で呼び出され、その結果どうなったのかをログとして残せます。不可解な挙動をするプログラムを調べる上で覚えておくと損はないツールです。今回はstraceの基本的な使い方に加えて、わざとシステムコールをエラー終了させる、エラーインジェクションについても紹介しましょう。 不可解なプログラムについて この世にあるソフトウェアはすべて何らかの不具合を抱えています。もし不具合のないソフトウェアが存在するとしたら、その事実自体が不具合と言えるかもしれません。そのまま放置しておくと、きっと将来なにがしかの不具合が顕現することでしょう。よってソフトウェアエンジニアと呼ばれる人たちは、日々ソフトウェア様のご機嫌を伺い、こびりついた不具合を削ぎ落とし、場合によってはあえて不具合を埋め込み

      第762回 定番のデバッグ・調査ツールであるstraceでエラーインジェクション | gihyo.jp
    • Linuxの識者がよく使うstrace(1)やopen(2)の数字の意味は?

      いちいち説明されないので知らない人もいるかもいるかもしれません。 Linuxの話をしていると識者が strace(1) とかopen(2)とか後ろに(数字)をつけることがあります。この数字はマニュアルの章の番号です。1がコマンド、2がシステムコール、3がライブラリです。コマンドとライブラリで名前が被っているものがあるために区別します。 例えば、printf(1)はコマンドでprintf(3)はライブラリです。それぞれのman を見るためには章番号を明示して、 man 1 printf や man 3 printf とします。 man man としてmanコマンドのマニュアルを見ると、全ての章の説明があります。 The table below shows the section numbers of the manual followed by the types of pages they

        Linuxの識者がよく使うstrace(1)やopen(2)の数字の意味は?
      • systemdのserviceをstraceする時のtips - 赤帽エンジニアブログ

        Red Hatの森若です。 この記事はRed Hat Advent Calendar 2023 の21日目です。 デバッグなどのためにsystemdのservice unitで起動されるプロセスにstraceを仕掛けたいとき、ちょっとしたハマり所があるのでその説明とワークアラウンドを紹介します。 目次 実行中のserviceをstraceする 実行開始からserviceをstraceする Type=forking 時の問題 参考文献 おまけの宣伝 実行中のserviceをstraceする この場合は特にハマるところはありません。 既に実行中のプロセスへのstraceは、cgroupで関連するプロセス一覧が管理されているので、それを利用します。関連する全てのプロセスを指定し、-fでforkも追跡することで、関連する全プロセスを指定します。 serviceに対応するcgroupを確認する。 $

          systemdのserviceをstraceする時のtips - 赤帽エンジニアブログ
        • GitHub - sectordistrict/intentrace: intentrace is strace with intent, it goes all the way for you instead of half the way. intentrace is currently in beta

          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

            GitHub - sectordistrict/intentrace: intentrace is strace with intent, it goes all the way for you instead of half the way. intentrace is currently in beta
          • シェルスクリプトでstraceとtcpdumpを取るときのTIPS

            curl から nginx への HTTP の通信を tcpdump でパケットキャプチャーしつつ、 strace で nginx のシステムコール呼び出しをトレースしたいということがあって シェルスクリプトを書きました。 その時に試行錯誤していくつか TIPS が出来たのでメモしておきます。 nginx のように複数プロセスの場合は strace の -ff と -o が便利 strace (1) に書いてある話ですが、つい最近まで知らなかったので書いておきます。

              シェルスクリプトでstraceとtcpdumpを取るときのTIPS
            • Backtraces with strace

              I discovered strace somewhere between my first part time web development part time job in 2005 and my first full time “software engineering” job in 2008, and it seemed like a superpower giving me x-ray vision into running infrastructure. When a process was stuck, or existing after a cryptic error message, instead of grepping around I could get a pretty good timeline of what the process was up to.

              • Introducing strace –seccomp-bpf

                News I gave a talk at FOSDEM 2020 on the topic of this blog post, with some additional information on the BPF algorithms used in strace. The slides are hosted on this site and the recording on FOSDEM’s website. Demo The latest strace release (v5.3) has a new (experimental) feature to boost performance. In this post, I’ll explain how it works and some of its limitations. Let’s first try it out on a

                  Introducing strace –seccomp-bpf
                • What problems do people solve with strace?

                  April 3, 2021 Yesterday I asked on Twitter about what problems people are solving with strace and as usual everyone really delivered! I got 200 answers and then spent a bunch of time manually categorizing them into 9 categories of problems. All of the problems are about either finding files a program depends on, figuring out why a program is stuck or slow, or finding out why a program is failing.

                  1

                  新着記事