On Mon, 10 Apr 2017 22:29:49 -0400 Matthew Gabeler-Lee wrote:
> Package: ltrace
> Version: 0.7.3-6+b1
> Severity: normal
>
> ltrace -f ls: crapton of output
> ltrace -f irw: nothing
I can't see the behaviour you are describing. I installed lirc (btw its
daemon crashes on startup, so the package couldn't be configured :-():
jirka@debian:/mnt/extras/src/youtube-dl$ ltrace -f irw
[pid 1414] __libc_start_main(0x4aa160, 1, 0xbf933b34, 0x4aa590 <unfinished ...>
[pid 1414] sigfillset(~<31>)
= 0
[pid 1414] sigaction(SIGUSR1, { 0x4aa570, ~<31>, 0xfffffffe, 0xffffffff }, nil)
= 0
[pid 1414] getopt_long(1, 0xbf933b34, "hv", 0x4ad020, nil)
=
-1
[pid 1414] socket(1, 1, 0)
= 3
[pid 1414] connect(3, 0xbf9338f2, 110, 0xbf9338b0)
= -1
[pid 1414] perrorf(0x4ab05b, 0xbf9338f4, 0, 0Cannot connect to socket
/run/lirc/lircd: No such file or directory
)
= 0
[pid 1414] __errno_location()
= 0xb79e0774
[pid 1414] exit(2 <no return ...>
[pid 1414] +++ exited (status 2) +++
However, you can get more output when specifying you want to trace all
calls not only from the executable, but from the libraries as well (cf.
man ltrace):
jirka@debian:/mnt/extras/src/youtube-dl$ ltrace -f -e '*' irw
[pid 1418] irw->__libc_start_main(0x429160, 1, 0xbfefbe24, 0x429590 <unfinished
...>
[pid 1418] irw->sigfillset(~<31>)
= 0
[pid 1418] irw->sigaction(SIGUSR1, { 0x429570, ~<31>, 0xfffffffe, 0xffffffff },
nil)
= 0
[pid 1418] irw->getopt_long(1, 0xbfefbe24, "hv", 0x42c020, nil)
= -1
[pid 1418] irw->socket(1, 1, 0)
= 3
[pid 1418] irw->connect(3, 0xbfefbbe2, 110, 0xbfefbba0)
= -1
[pid 1418] irw->perrorf(0x42a05b, 0xbfefbbe4, 0, 0 <unfinished ...>
[pid 1418] liblirc.so.0->__vsnprintf_chk(0xbfefbaac, 256, 1, 256)
= 40
[pid 1418] liblirc.so.0->perror("Cannot connect to socket /run/li"...Cannot
connect to socket /run/lirc/lircd: No such file or directory
)
= <void>
[pid 1418] <... perrorf resumed> )
= 0
[pid 1418] irw->__errno_location()
= 0xb7a42774
[pid 1418] irw->exit(2 <unfinished ...>
[pid 1418] libstdc++.so.6->_ZNSt3_V214error_categoryD2Ev(0xb7d0dde0, 0, 2,
0xb7f191f8)
= 0xb7d0dde0
[pid 1418] libstdc++.so.6->_ZNSt3_V214error_categoryD2Ev(0xb7d0dde4, 0, 2,
0xb7f191f8)
= 0xb7d0dde4
[pid 1418] libstdc++.so.6->_ZNSt3_V214error_categoryD2Ev(0xb7d0ddd8, 0, 2,
0xb7f191f8)
= 0xb7d0ddd8
[pid 1418] libstdc++.so.6->_ZNSt14error_categoryD2Ev(0xb7d0de04, 0, 2,
0xb7f191f8)
= 0xb7d0de04
[pid 1418] libstdc++.so.6->_ZNSt14error_categoryD2Ev(0xb7d0de08, 0, 2,
0xb7f191f8)
= 0xb7d0de08
[pid 1418] +++ exited (status 2) +++
Hope that helps. I suggest this bug is closed.
Regards
Jiri Palecek