Skip to content

Massive execv calls to 'task' when 'show-info' enabled #671

@donob4n

Description

@donob4n

Can't debug too deeply but noticed a weird fixed 20mb/s hard disk read (like 200Kb/s amplified due zfs) and finally discovered that 'taskwarrior-tui' was causing it.

It seems that when 'show-info' is shown it calls to task constantly (and tests all dirs on PATH):

[pid 17792] +++ exited with 0 +++
[pid 16582] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17792, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
strace: Process 17793 attached
[pid 17793] execve("/home/donoban/.bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.columns"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17793] execve("/usr/local/sbin/task", ["task", "show", "rc.defaultwidth=0", "report.next.columns"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17793] execve("/usr/local/bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.columns"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17793] execve("/usr/sbin/task", ["task", "show", "rc.defaultwidth=0", "report.next.columns"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17793] execve("/usr/bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.columns"], 0x7ffc68b7dc58 /* 32 vars */) = 0
[pid 17793] +++ exited with 0 +++
[pid 16582] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17793, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
strace: Process 17794 attached
[pid 17794] execve("/home/donoban/.bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.labels"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17794] execve("/usr/local/sbin/task", ["task", "show", "rc.defaultwidth=0", "report.next.labels"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17794] execve("/usr/local/bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.labels"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17794] execve("/usr/sbin/task", ["task", "show", "rc.defaultwidth=0", "report.next.labels"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17794] execve("/usr/bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.labels"], 0x7ffc68b7dc58 /* 32 vars */) = 0
[pid 17794] +++ exited with 0 +++
[pid 16582] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17794, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
strace: Process 17795 attached
[pid 17795] execve("/home/donoban/.bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.dateformat"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17795] execve("/usr/local/sbin/task", ["task", "show", "rc.defaultwidth=0", "report.next.dateformat"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17795] execve("/usr/local/bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.dateformat"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17795] execve("/usr/sbin/task", ["task", "show", "rc.defaultwidth=0", "report.next.dateformat"], 0x7ffc68b7dc58 /* 32 vars */) = -1 ENOENT (No such file or directory)
[pid 17795] execve("/usr/bin/task", ["task", "show", "rc.defaultwidth=0", "report.next.dateformat"], 0x7ffc68b7dc58 /* 32 vars */) = 0
[pid 17795] +++ exited with 0 +++
[pid 16584] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17795, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---

Not sure if it's expected that it reloads so fast or there is some bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions