glibc backtrace - can't redirect output to file

前端 未结 2 1669
陌清茗
陌清茗 2020-12-17 17:12

I\'m in the process of debugging a C program (that I didn\'t write). I have all of the internal debugging tools (a whole bunch of printf\'s) enabled, and I wrote a small PHP

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-17 17:58

    The mailing list that Jason references also suggests some more heavy-duty solutions, as follows:

    IMHO koji (and mock for that matter) ought to be running the builds inside a captive pty whose output it logs anyway, even if they redirect everything. You never know what crazy nonsense some package is going to try. (Roland McGrath, http://www.redhat.com/archives/rhl-devel-list/2009-August/msg00982.html)

    Following posts suggest using the pty python package to accomplish this.

提交回复
热议问题